v3.5.0 修复关闭confirm提示框控制台报错问题

This commit is contained in:
YunaiV 2022-02-15 21:51:24 +08:00
parent c06a96b768
commit e3c31c353a
36 changed files with 55 additions and 57 deletions

View File

@ -373,7 +373,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -400,7 +400,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '${table.classComment}.xls'); this.downloadExcel(response, '${table.classComment}.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -104,7 +104,7 @@ export default {
this.$store.dispatch('LogOut').then(() => { this.$store.dispatch('LogOut').then(() => {
location.href = '/index'; location.href = '/index';
}) })
}) }).catch(() => {});
} }
} }
} }

View File

@ -72,7 +72,7 @@ service.interceptors.response.use(res => {
// } // }
location.href = '/index'; location.href = '/index';
}) })
}) }).catch(() => {});
} else if (code === 500) { } else if (code === 500) {
Message({ Message({
message: msg, message: msg,

View File

@ -159,7 +159,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -239,7 +239,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
getUserNickname(userId) { getUserNickname(userId) {
for (const user of this.users) { for (const user of this.users) {

View File

@ -434,7 +434,7 @@ export default {
that.getList(); that.getList();
that.msgSuccess("删除成功"); that.msgSuccess("删除成功");
}) })
}) }).catch(() => {});
}, },
/** 部署按钮操作 */ /** 部署按钮操作 */
handleDeploy(row) { handleDeploy(row) {
@ -448,7 +448,7 @@ export default {
that.getList(); that.getList();
that.msgSuccess("部署成功"); that.msgSuccess("部署成功");
}) })
}) }).catch(() => {});
}, },
/** 流程表单的详情按钮操作 */ /** 流程表单的详情按钮操作 */
handleFormDetail(row) { handleFormDetail(row) {
@ -500,7 +500,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess(statusState + "成功"); this.msgSuccess(statusState + "成功");
}) }).catch(() => {});
}, },
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {

View File

@ -212,7 +212,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, 'API 访问日志.xls'); this.downloadExcel(response, 'API 访问日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -214,7 +214,7 @@ export default {
this.msgSuccess("修改成功"); this.msgSuccess("修改成功");
this.getList(); this.getList();
}); });
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -234,7 +234,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, 'API 错误日志.xls'); this.downloadExcel(response, 'API 错误日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -264,7 +264,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -282,7 +282,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '参数配置.xls'); this.downloadExcel(response, '参数配置.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
}, },
} }
}; };

View File

@ -195,7 +195,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
} }
}; };

View File

@ -229,7 +229,7 @@ export default {
return runJob(row.id); return runJob(row.id);
}).then(() => { }).then(() => {
this.msgSuccess("执行成功"); this.msgSuccess("执行成功");
}) }).catch(() => {});
}, },
/** 任务详细信息 */ /** 任务详细信息 */
handleView(row) { handleView(row) {
@ -303,7 +303,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 更新状态操作 */ /** 更新状态操作 */
handleChangeStatus(row, open) { handleChangeStatus(row, open) {
@ -319,7 +319,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess(statusStr + "成功"); this.msgSuccess(statusStr + "成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -334,7 +334,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '定时任务.xls'); this.downloadExcel(response, '定时任务.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -173,7 +173,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '定时任务日志.xls'); this.downloadExcel(response, '定时任务日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -430,7 +430,7 @@ export default {
return exportAppExcel(params); return exportAppExcel(params);
}).then(response => { }).then(response => {
this.downloadExcel(response, '支付应用信息.xls'); this.downloadExcel(response, '支付应用信息.xls');
}) }).catch(() => {});
}, },
/** /**
* 根据商户名称模糊匹配商户信息 * 根据商户名称模糊匹配商户信息

View File

@ -273,7 +273,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -293,7 +293,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '支付商户信息.xls'); this.downloadExcel(response, '支付商户信息.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -473,7 +473,7 @@ export default {
return exportOrderExcel(params); return exportOrderExcel(params);
}).then(response => { }).then(response => {
this.downloadExcel(response, '支付订单.xls'); this.downloadExcel(response, '支付订单.xls');
}) }).catch(() => {});
}, },
/** /**
* 根据商户名称模糊匹配商户信息 * 根据商户名称模糊匹配商户信息

View File

@ -442,7 +442,7 @@ export default {
return exportRefundExcel(params); return exportRefundExcel(params);
}).then(response => { }).then(response => {
this.downloadExcel(response, '退款订单.xls'); this.downloadExcel(response, '退款订单.xls');
}) }).catch(() => {});
}, },
/** /**
* 根据商户名称模糊匹配商户信息 * 根据商户名称模糊匹配商户信息

View File

@ -298,7 +298,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -259,7 +259,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -274,7 +274,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '字典数据.xls'); this.downloadExcel(response, '字典数据.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -240,7 +240,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -260,7 +260,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '字典类型.xls'); this.downloadExcel(response, '字典类型.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -233,7 +233,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -253,7 +253,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '错误码.xls'); this.downloadExcel(response, '错误码.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -137,7 +137,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '登录日志.xls'); this.downloadExcel(response, '登录日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -320,7 +320,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -245,7 +245,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -224,7 +224,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '操作日志.xls'); this.downloadExcel(response, '操作日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -231,7 +231,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -246,7 +246,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '岗位数据.xls'); this.downloadExcel(response, '岗位数据.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -496,7 +496,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -511,7 +511,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '角色数据.xls'); this.downloadExcel(response, '角色数据.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -92,7 +92,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("强退成功"); this.msgSuccess("强退成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -242,7 +242,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
} }
} }
}; };

View File

@ -283,7 +283,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '短信日志.xls'); this.downloadExcel(response, '短信日志.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
}, },
/** 详细按钮操作 */ /** 详细按钮操作 */
handleView(row) { handleView(row) {

View File

@ -324,7 +324,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -344,7 +344,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '短信模板.xls'); this.downloadExcel(response, '短信模板.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
}, },
/** 发送短息按钮 */ /** 发送短息按钮 */
handleSendSms(row) { handleSendSms(row) {

View File

@ -236,7 +236,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -256,7 +256,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '租户.xls'); this.downloadExcel(response, '租户.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };

View File

@ -589,7 +589,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -607,7 +607,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '用户数据.xls'); this.downloadExcel(response, '用户数据.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
}, },
/** 导入按钮操作 */ /** 导入按钮操作 */
handleImport() { handleImport() {

View File

@ -218,8 +218,7 @@ export default {
'提示', '提示',
{ {
type: 'warning' type: 'warning'
} }).catch(() => {});
)
return return
} }
if (astBody[0].type === 'ExportDefaultDeclaration') { if (astBody[0].type === 'ExportDefaultDeclaration') {

View File

@ -381,8 +381,7 @@ export default {
() => { () => {
this.drawingList = [] this.drawingList = []
this.idGlobal = 100 this.idGlobal = 100
} }).catch(() => {});
)
}, },
drawingItemCopy(item, list) { drawingItemCopy(item, list) {
let clone = deepClone(item) let clone = deepClone(item)

View File

@ -213,7 +213,7 @@ export default {
return syncCodegenFromDB(row.id); return syncCodegenFromDB(row.id);
}).then(() => { }).then(() => {
this.msgSuccess("同步成功"); this.msgSuccess("同步成功");
}) }).catch(() => {});
}, },
/** 打开导入表弹窗 */ /** 打开导入表弹窗 */
openImportTable() { openImportTable() {
@ -335,7 +335,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
// //
cancel() { cancel() {

View File

@ -243,7 +243,7 @@ export default {
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.msgSuccess("删除成功"); this.msgSuccess("删除成功");
}) }).catch(() => {});
}, },
/** 导出按钮操作 */ /** 导出按钮操作 */
handleExport() { handleExport() {
@ -263,7 +263,7 @@ export default {
}).then(response => { }).then(response => {
this.downloadExcel(response, '字典类型.xls'); this.downloadExcel(response, '字典类型.xls');
this.exportLoading = false; this.exportLoading = false;
}) }).catch(() => {});
} }
} }
}; };