fix: 网元快速安装页面接口变更
This commit is contained in:
@@ -152,15 +152,13 @@ type InstallStateType = {
|
||||
/**步骤 */
|
||||
setp: 'pkg' | 'preinput' | 'log';
|
||||
/**步骤日志输出 */
|
||||
setpLog: string;
|
||||
/**主机ID */
|
||||
hostId: string;
|
||||
setpLog: string;
|
||||
/**文件操作类型 上传 or 选择 */
|
||||
optionType: 'upload' | 'option';
|
||||
/**表单数据 */
|
||||
from: {
|
||||
/**网元类型 */
|
||||
from: {
|
||||
neType: string;
|
||||
neId: string;
|
||||
name: string;
|
||||
path: string;
|
||||
version: string;
|
||||
@@ -177,11 +175,11 @@ type InstallStateType = {
|
||||
/**安装对象信息状态 */
|
||||
let installState: InstallStateType = reactive({
|
||||
setp: 'pkg',
|
||||
setpLog: '',
|
||||
hostId: '',
|
||||
setpLog: '',
|
||||
optionType: 'upload',
|
||||
from: {
|
||||
neType: '',
|
||||
neId: '',
|
||||
name: '',
|
||||
path: '',
|
||||
version: '',
|
||||
@@ -335,8 +333,7 @@ function fnInstall() {
|
||||
installState.confirmLoading = true;
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
const from = toRaw(installState.from);
|
||||
const preinput = toRaw(installState.preinput);
|
||||
Object.assign(from, { hostId: installState.hostId });
|
||||
const preinput = toRaw(installState.preinput);
|
||||
installNeSoftware({
|
||||
software: from,
|
||||
preinput: preinput,
|
||||
@@ -373,8 +370,8 @@ onMounted(() => {
|
||||
// 读取步骤:网元信息
|
||||
const stepPrevFrom = stepState.states[1];
|
||||
if (stepPrevFrom && stepPrevFrom.from) {
|
||||
installState.from.neType = stepPrevFrom.from.neType;
|
||||
installState.hostId = stepPrevFrom.from.hostIds.split(',')[0];
|
||||
installState.from.neType = stepPrevFrom.from.neType;
|
||||
installState.from.neId = stepPrevFrom.from.neId;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user