fix: 网元安装接口参数变更
This commit is contained in:
@@ -108,7 +108,8 @@ function fnCheckInfo() {
|
||||
const validateArr = ['addr', 'port', 'user'];
|
||||
if (form.authMode === '0') {
|
||||
validateArr.push('password');
|
||||
} else {
|
||||
}
|
||||
if (form.authMode === '1') {
|
||||
validateArr.push('privateKey');
|
||||
}
|
||||
|
||||
|
||||
@@ -337,7 +337,6 @@ function fnInstall() {
|
||||
installNeSoftware({
|
||||
software: from,
|
||||
preinput: preinput,
|
||||
action: 'install',
|
||||
})
|
||||
.then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
|
||||
@@ -136,6 +136,7 @@ function fnNeInfo() {
|
||||
content: `${from.neType} 可使用网元标识:${from.neId}`,
|
||||
duration: 3,
|
||||
});
|
||||
from.id = undefined;
|
||||
return false;
|
||||
}
|
||||
})
|
||||
|
||||
@@ -48,6 +48,13 @@ export const stepState: StepStateType = reactive({
|
||||
states: [],
|
||||
});
|
||||
|
||||
/**步骤信息状态复位 */
|
||||
export function fnRestStepState() {
|
||||
stepState.current = 0;
|
||||
stepState.stepNext = false;
|
||||
stepState.states = [];
|
||||
}
|
||||
|
||||
export function fnStepNext() {
|
||||
stepState.current++;
|
||||
stepState.stepNext = false;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script lang="ts" setup>
|
||||
import { PageContainer } from 'antdv-pro-layout';
|
||||
import { message } from 'ant-design-vue/lib';
|
||||
import { defineAsyncComponent, watch, shallowRef } from 'vue';
|
||||
import { stepState, fnStepPrev, fnStepNext } from './hooks/useStep';
|
||||
import { defineAsyncComponent, watch, shallowRef, onMounted } from 'vue';
|
||||
import { stepState, fnStepPrev, fnStepNext, fnRestStepState } from './hooks/useStep';
|
||||
|
||||
// 异步加载组件
|
||||
const StepCheck = defineAsyncComponent(
|
||||
@@ -70,6 +70,10 @@ watch(
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
onMounted(()=>{
|
||||
fnRestStepState()
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user