fix: 消息提示0时常驻
This commit is contained in:
@@ -278,7 +278,7 @@ function fnModalOk() {
|
|||||||
.then(e => {
|
.then(e => {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const from = toRaw(modalState.from);
|
const from = toRaw(modalState.from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
updateBackInfo(from)
|
updateBackInfo(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
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 = {
|
let data = {
|
||||||
[from['name']]: from['value'],
|
[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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'array',
|
||||||
{
|
{
|
||||||
@@ -366,7 +366,7 @@ function arrayDelete(row: Record<string, any>) {
|
|||||||
value: from['index']['value'],
|
value: from['index']['value'],
|
||||||
}),
|
}),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
delParamConfigInfo({
|
delParamConfigInfo({
|
||||||
neType: neTypeSelect.value[0],
|
neType: neTypeSelect.value[0],
|
||||||
neId: neTypeSelect.value[1],
|
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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'array',
|
||||||
{
|
{
|
||||||
@@ -721,7 +721,7 @@ function arrayChildDelete(row: Record<string, any>) {
|
|||||||
value: from['index']['value'],
|
value: from['index']['value'],
|
||||||
}),
|
}),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
delParamConfigInfo({
|
delParamConfigInfo({
|
||||||
neType: neTypeSelect.value[0],
|
neType: neTypeSelect.value[0],
|
||||||
neId: neTypeSelect.value[1],
|
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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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 = {
|
let data = {
|
||||||
[from['name']]: from['value'],
|
[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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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 = {
|
let data = {
|
||||||
[from['name']]: from['value'],
|
[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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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 = {
|
let data = {
|
||||||
[from['name']]: from['value'],
|
[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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
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(
|
updateParamConfigInfo(
|
||||||
'array',
|
'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(
|
addParamConfigInfo(
|
||||||
{
|
{
|
||||||
neType: neType,
|
neType: neType,
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ function fnModalOk() {
|
|||||||
formData.append('nfId', from.neType[1]);
|
formData.append('nfId', from.neType[1]);
|
||||||
formData.append('comment', from.comment);
|
formData.append('comment', from.comment);
|
||||||
formData.append('file', from.file);
|
formData.append('file', from.file);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
uploadLicense(formData)
|
uploadLicense(formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ function fnModalOk() {
|
|||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const from = toRaw(modalState.from);
|
const from = toRaw(modalState.from);
|
||||||
const result = from.id ? updateNeInfo(from) : addNeInfo(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
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -403,7 +403,7 @@ function fnImportModalOk() {
|
|||||||
.validate(validateName)
|
.validate(validateName)
|
||||||
.then(e => {
|
.then(e => {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
importFile(from)
|
importFile(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -289,7 +289,7 @@ function fnFileModalOk() {
|
|||||||
}
|
}
|
||||||
// 发送请求
|
// 发送请求
|
||||||
fileModalState.confirmLoading = true;
|
fileModalState.confirmLoading = true;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
fnType
|
fnType
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -497,7 +497,7 @@ function fnModalOk() {
|
|||||||
formData.append('comment', from.comment);
|
formData.append('comment', from.comment);
|
||||||
formData.append('file', from.file);
|
formData.append('file', from.file);
|
||||||
formData.append('cms', from.cms);
|
formData.append('cms', from.cms);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
uploadNeSoftware(formData)
|
uploadNeSoftware(formData)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -602,7 +602,7 @@ function fnBackModalOk() {
|
|||||||
const from = toRaw(fileModalState.backFrom);
|
const from = toRaw(fileModalState.backFrom);
|
||||||
// 发送请求
|
// 发送请求
|
||||||
fileModalState.confirmLoading = true;
|
fileModalState.confirmLoading = true;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
backNeSoftware(from)
|
backNeSoftware(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ function fnModalOk() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const result = updateConfirm(from);
|
const result = updateConfirm(from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -478,7 +478,7 @@ function fnShowModalOk() {
|
|||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const from = toRaw(modalState.showSetFrom);
|
const from = toRaw(modalState.showSetFrom);
|
||||||
const result = showPass(from);
|
const result = showPass(from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -353,7 +353,7 @@ function fnModalOk() {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
const result = updateConfirm(from);
|
const result = updateConfirm(from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ function fnModalOk() {
|
|||||||
.validate()
|
.validate()
|
||||||
.then(e => {
|
.then(e => {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
// 根据类型选择函数
|
// 根据类型选择函数
|
||||||
const groupName = from.group.trim()
|
const groupName = from.group.trim()
|
||||||
saveGraphData(groupName, graphG6.value.save())
|
saveGraphData(groupName, graphG6.value.save())
|
||||||
@@ -207,7 +207,7 @@ function fnGraphDataDelete() {
|
|||||||
group: graphState.group,
|
group: graphState.group,
|
||||||
}),
|
}),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
delGraphData(graphState.group)
|
delGraphData(graphState.group)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -349,7 +349,7 @@ function fnModalOk() {
|
|||||||
from.neId = queryParams.neId || '-';
|
from.neId = queryParams.neId || '-';
|
||||||
from.algoIndex = `${from.algoIndex}`;
|
from.algoIndex = `${from.algoIndex}`;
|
||||||
const result = from.id ? updateAuth(from) : addAuth(from);
|
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
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -390,7 +390,7 @@ function fnBatchModalOk() {
|
|||||||
from.neID = queryParams.neId || '-';
|
from.neID = queryParams.neId || '-';
|
||||||
from.algoIndex = `${from.algoIndex}`;
|
from.algoIndex = `${from.algoIndex}`;
|
||||||
const result = batchAuth(from);
|
const result = batchAuth(from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -433,7 +433,7 @@ function fnBatchDelModalOk() {
|
|||||||
// const result = from.id ? updateAuth(from) : addAuth(neID, from);
|
// const result = from.id ? updateAuth(from) : addAuth(neID, from);
|
||||||
from.neID = neID;
|
from.neID = neID;
|
||||||
const result = batchDelAuth(from);
|
const result = batchDelAuth(from);
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
result
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
@@ -265,7 +265,7 @@ function fnModalOk() {
|
|||||||
.validate(validateArr)
|
.validate(validateArr)
|
||||||
.then(e => {
|
.then(e => {
|
||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
|
|
||||||
// 根据类型选择函数
|
// 根据类型选择函数
|
||||||
let result: any = null;
|
let result: any = null;
|
||||||
|
|||||||
@@ -518,7 +518,7 @@ function fnModalOk() {
|
|||||||
|
|
||||||
const neID = queryParams.neId || '-';
|
const neID = queryParams.neId || '-';
|
||||||
const result = from.id ? updateSub(neID, from) : addSub(neID, from);
|
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
|
result
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -607,7 +607,7 @@ function fnBatchModalOk() {
|
|||||||
|
|
||||||
const neID = queryParams.neId || '-';
|
const neID = queryParams.neId || '-';
|
||||||
from.neID = neID;
|
from.neID = neID;
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
batchAddSub(from)
|
batchAddSub(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
@@ -659,7 +659,7 @@ function fnBatchDelModalOk() {
|
|||||||
modalState.confirmLoading = true;
|
modalState.confirmLoading = true;
|
||||||
const from = toRaw(modalState.BatchDelForm);
|
const from = toRaw(modalState.BatchDelForm);
|
||||||
from.neID = queryParams.neId || '-';
|
from.neID = queryParams.neId || '-';
|
||||||
const hide = message.loading({ content: t('common.loading') });
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
batchDelSub(from)
|
batchDelSub(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
|
|||||||
Reference in New Issue
Block a user