fix: 网元安装接口参数变更

This commit is contained in:
TsMask
2024-04-12 17:42:43 +08:00
parent 4aaedf0f77
commit 4d36f9952a
5 changed files with 22 additions and 10 deletions

View File

@@ -152,11 +152,11 @@ type InstallStateType = {
/**步骤 */
setp: 'pkg' | 'preinput' | 'log';
/**步骤日志输出 */
setpLog: string;
setpLog: string;
/**文件操作类型 上传 or 选择 */
optionType: 'upload' | 'option';
/**表单数据 */
from: {
from: {
neType: string;
neId: string;
name: string;
@@ -175,7 +175,7 @@ type InstallStateType = {
/**安装对象信息状态 */
let installState: InstallStateType = reactive({
setp: 'pkg',
setpLog: '',
setpLog: '',
optionType: 'upload',
from: {
neType: '',
@@ -333,11 +333,10 @@ function fnInstall() {
installState.confirmLoading = true;
const hide = message.loading(t('common.loading'), 0);
const from = toRaw(installState.from);
const preinput = toRaw(installState.preinput);
const preinput = toRaw(installState.preinput);
installNeSoftware({
software: from,
preinput: preinput,
action: 'install',
})
.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
@@ -370,8 +369,8 @@ onMounted(() => {
// 读取步骤:网元信息
const stepPrevFrom = stepState.states[1];
if (stepPrevFrom && stepPrevFrom.from) {
installState.from.neType = stepPrevFrom.from.neType;
installState.from.neId = stepPrevFrom.from.neId;
installState.from.neType = stepPrevFrom.from.neType;
installState.from.neId = stepPrevFrom.from.neId;
}
});
</script>