From 55bcb9afcd61d062bd61afc81ef6d8ce1622a0cd Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 22 Oct 2022 12:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AE=E7=AD=94=EF=BC=8C=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=88=A0=E9=99=A4=EF=BC=8C=E5=87=8FU=E5=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qa/ManageList.vue | 25 +++++++++---------------- 1 file changed, 9 insertions(+), 16 deletions(-) diff --git a/src/views/qa/ManageList.vue b/src/views/qa/ManageList.vue index a213dbe5..43d6ed53 100644 --- a/src/views/qa/ManageList.vue +++ b/src/views/qa/ManageList.vue @@ -39,7 +39,7 @@
- + 设置精华 取消精华
精华问题
@@ -208,22 +208,14 @@ export default { //接口删除问答单条数据 delQaList(data) { const { id } = data; - apiQa - .del(id) - .then(res => { + apiQa.del(id).then(res => { if (res.status == 200) { - - this.getQaList(); - this.$message({ - type: 'success', - message: '删除成功' - }); - + this.$message({ type: 'success', message: '删除成功' }); let event = { - key: "DeleteQuestion",//后台的事件key 发布文章且审核通过 - title: '删除问题',//事件的标题 - parameters:"",//用户自定义参数 name:value,name:value - content: '删除问题',//事件的内容 + key: "QuestionDelete",//被管理员删除 + title: '被管理员删除问题',//事件的标题 + parameters:"author:"+data.sysCreateAid,//用户自定义参数 name:value,name:value + content: '被管理员删除问题',//事件的内容 objId: data.id,//关联的id objType: "3",//关联的类型 objInfo:data.title, @@ -232,6 +224,7 @@ export default { status: 1 //状态,直接写1 } this.$store.dispatch("userTrigger", event); + this.getQaList(); } }) .catch(err => { @@ -250,7 +243,7 @@ export default { type: 'warning' }).then(() => { this.delQaList(item); - + }); }, //设置单挑数据