fix: 消息提示0时常驻
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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<string, any>) {
|
||||
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<string, any>) {
|
||||
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,
|
||||
|
||||
@@ -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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
addParamConfigInfo(
|
||||
{
|
||||
neType: neType,
|
||||
|
||||
@@ -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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
addParamConfigInfo(
|
||||
{
|
||||
neType: neType,
|
||||
|
||||
@@ -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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
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<string, any>) {
|
||||
}
|
||||
|
||||
// 发送
|
||||
const hide = message.loading({ content: t('common.loading') });
|
||||
const hide = message.loading(t('common.loading'), 0);
|
||||
addParamConfigInfo(
|
||||
{
|
||||
neType: neType,
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user