fix: 网元快速安装页面接口变更
This commit is contained in:
@@ -183,7 +183,7 @@ function fnVerifyTask() {
|
||||
}
|
||||
const { neType, neId } = licenseState.from;
|
||||
stateNeLicense(neType, neId).then(res => {
|
||||
if (res.code === RESULT_CODE_SUCCESS) {
|
||||
if (res.code === RESULT_CODE_SUCCESS && res.data && res.data.sn) {
|
||||
message.success(`${neType} ${neId} 网元激活成功`, 3);
|
||||
verifyState.data = res.data;
|
||||
// 记录当前步骤状态信息
|
||||
|
||||
@@ -140,13 +140,13 @@ function fnCheckInfo() {
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!res.data.sshLink) {
|
||||
message.warning({
|
||||
content: `请配置服务器间免密信任关系,确保服务器间文件传输功能`,
|
||||
duration: 2,
|
||||
});
|
||||
return;
|
||||
}
|
||||
// if (!res.data.sshLink) {
|
||||
// message.warning({
|
||||
// content: `请配置服务器间免密信任关系,确保服务器间文件传输功能`,
|
||||
// duration: 2,
|
||||
// });
|
||||
// return;
|
||||
// }
|
||||
message.success({
|
||||
content: `${form.addr}:${form.port} ${t('views.ne.neHost.testOk')}`,
|
||||
duration: 2,
|
||||
|
||||
@@ -153,14 +153,12 @@ type InstallStateType = {
|
||||
setp: 'pkg' | 'preinput' | 'log';
|
||||
/**步骤日志输出 */
|
||||
setpLog: string;
|
||||
/**主机ID */
|
||||
hostId: string;
|
||||
/**文件操作类型 上传 or 选择 */
|
||||
optionType: 'upload' | 'option';
|
||||
/**表单数据 */
|
||||
from: {
|
||||
/**网元类型 */
|
||||
neType: string;
|
||||
neId: string;
|
||||
name: string;
|
||||
path: string;
|
||||
version: string;
|
||||
@@ -178,10 +176,10 @@ type InstallStateType = {
|
||||
let installState: InstallStateType = reactive({
|
||||
setp: 'pkg',
|
||||
setpLog: '',
|
||||
hostId: '',
|
||||
optionType: 'upload',
|
||||
from: {
|
||||
neType: '',
|
||||
neId: '',
|
||||
name: '',
|
||||
path: '',
|
||||
version: '',
|
||||
@@ -336,7 +334,6 @@ function fnInstall() {
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
const from = toRaw(installState.from);
|
||||
const preinput = toRaw(installState.preinput);
|
||||
Object.assign(from, { hostId: installState.hostId });
|
||||
installNeSoftware({
|
||||
software: from,
|
||||
preinput: preinput,
|
||||
@@ -374,7 +371,7 @@ 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.neId = stepPrevFrom.from.neId;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user