界面修改

This commit is contained in:
kerwincui
2022-04-14 20:32:44 +08:00
parent 81f1ca8a23
commit 217f2d2773
2 changed files with 22 additions and 20 deletions

View File

@@ -210,11 +210,14 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const categoryIds = row.categoryId || this.ids;
let msg="";
this.$modal.confirm('是否确认删除新闻分类编号为"' + categoryIds + '"的数据项?').then(function () {
return delNewsCategory(categoryIds);
return delNewsCategory(categoryIds).then(response => {
msg=response.msg;
});
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
this.$modal.msgSuccess(msg);
}).catch(() => {});
},
/** 导出按钮操作 */