From 9ed44a2ac66e4b105204d22ca92efa5fb158fb01 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Fri, 12 Jan 2024 15:41:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B6=88=E6=81=AF=E6=8F=90=E7=A4=BA0?= =?UTF-8?q?=E6=97=B6=E5=B8=B8=E9=A9=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/configManage/backupManage/index.vue | 2 +- src/views/configManage/configParam/index.vue | 14 +++++++------- src/views/configManage/configParamForm/index.vue | 10 +++++----- src/views/configManage/configParamTree/index.vue | 10 +++++----- .../configManage/configParamTreeTable/index.vue | 10 +++++----- src/views/configManage/license/index.vue | 2 +- src/views/configManage/neManage/index.vue | 4 ++-- src/views/configManage/softwareManage/index.vue | 6 +++--- src/views/faultManage/active-alarm/index.vue | 4 ++-- src/views/faultManage/history-alarm/index.vue | 2 +- src/views/monitor/topologyBuild/index.vue | 4 ++-- src/views/neUser/auth/index.vue | 6 +++--- src/views/neUser/pcf/index.vue | 2 +- src/views/neUser/sub/index.vue | 6 +++--- 14 files changed, 41 insertions(+), 41 deletions(-) diff --git a/src/views/configManage/backupManage/index.vue b/src/views/configManage/backupManage/index.vue index eab61aaa..de488894 100644 --- a/src/views/configManage/backupManage/index.vue +++ b/src/views/configManage/backupManage/index.vue @@ -278,7 +278,7 @@ function fnModalOk() { .then(e => { modalState.confirmLoading = true; const from = toRaw(modalState.from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateBackInfo(from) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue index d9e87168..e2cd84fe 100644 --- a/src/views/configManage/configParam/index.vue +++ b/src/views/configManage/configParam/index.vue @@ -206,7 +206,7 @@ function listEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); let data = { [from['name']]: from['value'], }; @@ -307,7 +307,7 @@ function arrayEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -366,7 +366,7 @@ function arrayDelete(row: Record) { value: from['index']['value'], }), onOk() { - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); delParamConfigInfo({ neType: neTypeSelect.value[0], neId: neTypeSelect.value[1], @@ -507,7 +507,7 @@ function arrayAddOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, @@ -668,7 +668,7 @@ function arrayChildEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -721,7 +721,7 @@ function arrayChildDelete(row: Record) { value: from['index']['value'], }), onOk() { - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); delParamConfigInfo({ neType: neTypeSelect.value[0], neId: neTypeSelect.value[1], @@ -862,7 +862,7 @@ function arrayChildAddOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, diff --git a/src/views/configManage/configParamForm/index.vue b/src/views/configManage/configParamForm/index.vue index 12dcbfbb..906861fd 100644 --- a/src/views/configManage/configParamForm/index.vue +++ b/src/views/configManage/configParamForm/index.vue @@ -170,7 +170,7 @@ function listEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); let data = { [from['name']]: from['value'], }; @@ -292,7 +292,7 @@ function arrayEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -398,7 +398,7 @@ function arrayAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, @@ -570,7 +570,7 @@ function arrayChildEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -676,7 +676,7 @@ function arrayChildAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, diff --git a/src/views/configManage/configParamTree/index.vue b/src/views/configManage/configParamTree/index.vue index 51e71087..0e53578f 100644 --- a/src/views/configManage/configParamTree/index.vue +++ b/src/views/configManage/configParamTree/index.vue @@ -199,7 +199,7 @@ function listEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); let data = { [from['name']]: from['value'], }; @@ -321,7 +321,7 @@ function arrayEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -427,7 +427,7 @@ function arrayAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, @@ -599,7 +599,7 @@ function arrayChildEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -705,7 +705,7 @@ function arrayChildAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, diff --git a/src/views/configManage/configParamTreeTable/index.vue b/src/views/configManage/configParamTreeTable/index.vue index a3a33a58..23e8a5d8 100644 --- a/src/views/configManage/configParamTreeTable/index.vue +++ b/src/views/configManage/configParamTreeTable/index.vue @@ -233,7 +233,7 @@ function listEditOk() { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); let data = { [from['name']]: from['value'], }; @@ -367,7 +367,7 @@ function arrayEditOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -482,7 +482,7 @@ function arrayAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, @@ -694,7 +694,7 @@ function arrayChildEditOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); updateParamConfigInfo( 'array', { @@ -810,7 +810,7 @@ function arrayChildAddOk(from: Record) { } // 发送 - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); addParamConfigInfo( { neType: neType, diff --git a/src/views/configManage/license/index.vue b/src/views/configManage/license/index.vue index 79efb5b6..258a075a 100644 --- a/src/views/configManage/license/index.vue +++ b/src/views/configManage/license/index.vue @@ -223,7 +223,7 @@ function fnModalOk() { formData.append('nfId', from.neType[1]); formData.append('comment', from.comment); formData.append('file', from.file); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); uploadLicense(formData) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/configManage/neManage/index.vue b/src/views/configManage/neManage/index.vue index b9b48ae3..aa9d85ec 100644 --- a/src/views/configManage/neManage/index.vue +++ b/src/views/configManage/neManage/index.vue @@ -349,7 +349,7 @@ function fnModalOk() { modalState.confirmLoading = true; const from = toRaw(modalState.from); const result = from.id ? updateNeInfo(from) : addNeInfo(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -403,7 +403,7 @@ function fnImportModalOk() { .validate(validateName) .then(e => { modalState.confirmLoading = true; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); importFile(from) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/configManage/softwareManage/index.vue b/src/views/configManage/softwareManage/index.vue index 2cd0788e..8607cbbf 100644 --- a/src/views/configManage/softwareManage/index.vue +++ b/src/views/configManage/softwareManage/index.vue @@ -289,7 +289,7 @@ function fnFileModalOk() { } // 发送请求 fileModalState.confirmLoading = true; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); fnType .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -497,7 +497,7 @@ function fnModalOk() { formData.append('comment', from.comment); formData.append('file', from.file); formData.append('cms', from.cms); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); uploadNeSoftware(formData) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -602,7 +602,7 @@ function fnBackModalOk() { const from = toRaw(fileModalState.backFrom); // 发送请求 fileModalState.confirmLoading = true; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); backNeSoftware(from) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/faultManage/active-alarm/index.vue b/src/views/faultManage/active-alarm/index.vue index c8c1a8c4..bbe6f857 100644 --- a/src/views/faultManage/active-alarm/index.vue +++ b/src/views/faultManage/active-alarm/index.vue @@ -448,7 +448,7 @@ function fnModalOk() { return false; } const result = updateConfirm(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -478,7 +478,7 @@ function fnShowModalOk() { modalState.confirmLoading = true; const from = toRaw(modalState.showSetFrom); const result = showPass(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/faultManage/history-alarm/index.vue b/src/views/faultManage/history-alarm/index.vue index c29ed7ef..0ed64e3f 100644 --- a/src/views/faultManage/history-alarm/index.vue +++ b/src/views/faultManage/history-alarm/index.vue @@ -353,7 +353,7 @@ function fnModalOk() { return false; } const result = updateConfirm(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/monitor/topologyBuild/index.vue b/src/views/monitor/topologyBuild/index.vue index d44fe1e5..b68fbe1b 100644 --- a/src/views/monitor/topologyBuild/index.vue +++ b/src/views/monitor/topologyBuild/index.vue @@ -140,7 +140,7 @@ function fnModalOk() { .validate() .then(e => { modalState.confirmLoading = true; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); // 根据类型选择函数 const groupName = from.group.trim() saveGraphData(groupName, graphG6.value.save()) @@ -207,7 +207,7 @@ function fnGraphDataDelete() { group: graphState.group, }), onOk() { - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); delGraphData(graphState.group) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/neUser/auth/index.vue b/src/views/neUser/auth/index.vue index 5478b601..ca20f912 100644 --- a/src/views/neUser/auth/index.vue +++ b/src/views/neUser/auth/index.vue @@ -349,7 +349,7 @@ function fnModalOk() { from.neId = queryParams.neId || '-'; from.algoIndex = `${from.algoIndex}`; const result = from.id ? updateAuth(from) : addAuth(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -390,7 +390,7 @@ function fnBatchModalOk() { from.neID = queryParams.neId || '-'; from.algoIndex = `${from.algoIndex}`; const result = batchAuth(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -433,7 +433,7 @@ function fnBatchDelModalOk() { // const result = from.id ? updateAuth(from) : addAuth(neID, from); from.neID = neID; const result = batchDelAuth(from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { diff --git a/src/views/neUser/pcf/index.vue b/src/views/neUser/pcf/index.vue index cae378e7..374ff2e2 100644 --- a/src/views/neUser/pcf/index.vue +++ b/src/views/neUser/pcf/index.vue @@ -265,7 +265,7 @@ function fnModalOk() { .validate(validateArr) .then(e => { modalState.confirmLoading = true; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); // 根据类型选择函数 let result: any = null; diff --git a/src/views/neUser/sub/index.vue b/src/views/neUser/sub/index.vue index 6aef0020..26ebcb5d 100644 --- a/src/views/neUser/sub/index.vue +++ b/src/views/neUser/sub/index.vue @@ -518,7 +518,7 @@ function fnModalOk() { const neID = queryParams.neId || '-'; const result = from.id ? updateSub(neID, from) : addSub(neID, from); - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); result .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -607,7 +607,7 @@ function fnBatchModalOk() { const neID = queryParams.neId || '-'; from.neID = neID; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); batchAddSub(from) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { @@ -659,7 +659,7 @@ function fnBatchDelModalOk() { modalState.confirmLoading = true; const from = toRaw(modalState.BatchDelForm); from.neID = queryParams.neId || '-'; - const hide = message.loading({ content: t('common.loading') }); + const hide = message.loading(t('common.loading'), 0); batchDelSub(from) .then(res => { if (res.code === RESULT_CODE_SUCCESS) {