From 217f2d2773d23668b11c730809983004b62e725b Mon Sep 17 00:00:00 2001 From: kerwincui <164770707@qq.com> Date: Thu, 14 Apr 2022 20:32:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=8C=E9=9D=A2=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue/src/views/iot/news/index.vue | 35 ++++++++++++------------ vue/src/views/iot/newsCategory/index.vue | 7 +++-- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/vue/src/views/iot/news/index.vue b/vue/src/views/iot/news/index.vue index fd475aad..f162a4ac 100644 --- a/vue/src/views/iot/news/index.vue +++ b/vue/src/views/iot/news/index.vue @@ -1,24 +1,25 @@ - + @@ -309,7 +310,7 @@ export default { /** 提交按钮 */ submitForm() { console.log(this.form); - if(this.form.imgUrl==null || this.form.imgUrl==""){ + if (this.form.imgUrl == null || this.form.imgUrl == "") { this.$modal.msgError("请上传图片"); return; } @@ -359,5 +360,3 @@ export default { } }; - - diff --git a/vue/src/views/iot/newsCategory/index.vue b/vue/src/views/iot/newsCategory/index.vue index 3a3a6c4a..da252c54 100644 --- a/vue/src/views/iot/newsCategory/index.vue +++ b/vue/src/views/iot/newsCategory/index.vue @@ -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(() => {}); }, /** 导出按钮操作 */