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(() => {}); }, /** 导出按钮操作 */