From cc0291e8e6ac3adb79691a1fd574fddbce57f765 Mon Sep 17 00:00:00 2001 From: zx <604444282@qq.com> Date: Fri, 8 Jul 2022 09:39:15 +0800 Subject: [PATCH] zx --- src/views/MatManage/_matList/index.vue | 18 +++++++++++++----- src/views/QuestManage/_questDetail/index.vue | 2 +- src/views/QuestManage/_questRelease/index.vue | 2 +- src/views/StarwayInfo/_actDetail/index.vue | 2 +- src/views/StarwayInfo/_actEdit/index.vue | 2 +- src/views/StarwayInfo/_actRelease/index.vue | 2 +- src/views/StarwayInfo/index.vue | 14 +++++++++----- 7 files changed, 27 insertions(+), 15 deletions(-) diff --git a/src/views/MatManage/_matList/index.vue b/src/views/MatManage/_matList/index.vue index 9dafda2..9cb1b6b 100644 --- a/src/views/MatManage/_matList/index.vue +++ b/src/views/MatManage/_matList/index.vue @@ -173,8 +173,12 @@ export default defineComponent({ {type: 'warning'} ).then(() => { this.proxy.$post("/reference/del", {idList: [id]}).then(res => { - this.getData(); - this.$message.success(res.data); + if(res.code == 200) { + this.getData(); + this.$message.success('删除成功'); + } else { + this.$message.error(res.msg); + } }).catch(() => {}); }).catch(() => {}) }, @@ -185,9 +189,13 @@ export default defineComponent({ {type: 'warning'} ).then(() => { this.proxy.$post("/reference/del", {idList: this.selectedKeys}).then(res => { - this.getData(); - this.$message.success(res.data); - this.selectedKeys = []; + if(res.code == 200) { + this.getData(); + this.$message.success('删除成功'); + this.selectedKeys = []; + } else { + this.$message.error(res.msg); + } }).catch(() => {}); }).catch(() => {}) } diff --git a/src/views/QuestManage/_questDetail/index.vue b/src/views/QuestManage/_questDetail/index.vue index 354551e..bef9542 100644 --- a/src/views/QuestManage/_questDetail/index.vue +++ b/src/views/QuestManage/_questDetail/index.vue @@ -15,7 +15,7 @@ - + diff --git a/src/views/QuestManage/_questRelease/index.vue b/src/views/QuestManage/_questRelease/index.vue index ef8c05b..bd5c099 100644 --- a/src/views/QuestManage/_questRelease/index.vue +++ b/src/views/QuestManage/_questRelease/index.vue @@ -20,7 +20,7 @@ - + diff --git a/src/views/StarwayInfo/_actDetail/index.vue b/src/views/StarwayInfo/_actDetail/index.vue index 532992f..7a119e1 100644 --- a/src/views/StarwayInfo/_actDetail/index.vue +++ b/src/views/StarwayInfo/_actDetail/index.vue @@ -3,7 +3,7 @@
- + diff --git a/src/views/StarwayInfo/_actEdit/index.vue b/src/views/StarwayInfo/_actEdit/index.vue index c1ffc8b..aa71a48 100644 --- a/src/views/StarwayInfo/_actEdit/index.vue +++ b/src/views/StarwayInfo/_actEdit/index.vue @@ -3,7 +3,7 @@
- + diff --git a/src/views/StarwayInfo/_actRelease/index.vue b/src/views/StarwayInfo/_actRelease/index.vue index a9a91dc..8cc6fd8 100644 --- a/src/views/StarwayInfo/_actRelease/index.vue +++ b/src/views/StarwayInfo/_actRelease/index.vue @@ -3,7 +3,7 @@
- + diff --git a/src/views/StarwayInfo/index.vue b/src/views/StarwayInfo/index.vue index 6a5c223..d8994dd 100644 --- a/src/views/StarwayInfo/index.vue +++ b/src/views/StarwayInfo/index.vue @@ -153,11 +153,15 @@ export default defineComponent({ handlerChangeSort(value) { let obj = {id: this.activeId,sortWeight: this.sortValue*1} this.proxy.$post("/topicActivity/updSort", obj).then(res => { - this.getData(); - this.isEditing = false; - this.activeId = undefined; - this.sortValue = undefined; - this.$message.success(res.data) + if(res.code == 200) { + this.getData(); + this.isEditing = false; + this.activeId = undefined; + this.sortValue = undefined; + this.$message.success(res.data) + } else { + this.$message.error(res.msg) + } }).catch(() => {}); } }