问答,管理删除,减U币

This commit is contained in:
daihh
2022-10-22 12:19:00 +08:00
parent cb9873ceec
commit 55bcb9afcd

View File

@@ -208,22 +208,14 @@ export default {
//接口删除问答单条数据 //接口删除问答单条数据
delQaList(data) { delQaList(data) {
const { id } = data; const { id } = data;
apiQa apiQa.del(id).then(res => {
.del(id)
.then(res => {
if (res.status == 200) { if (res.status == 200) {
this.$message({ type: 'success', message: '删除成功' });
this.getQaList();
this.$message({
type: 'success',
message: '删除成功'
});
let event = { let event = {
key: "DeleteQuestion",//后台的事件key 发布文章且审核通过 key: "QuestionDelete",//被管理员删除
title: '删除问题',//事件的标题 title: '被管理员删除问题',//事件的标题
parameters:"",//用户自定义参数 name:value,name:value parameters:"author:"+data.sysCreateAid,//用户自定义参数 name:value,name:value
content: '删除问题',//事件的内容 content: '被管理员删除问题',//事件的内容
objId: data.id,//关联的id objId: data.id,//关联的id
objType: "3",//关联的类型 objType: "3",//关联的类型
objInfo:data.title, objInfo:data.title,
@@ -232,6 +224,7 @@ export default {
status: 1 //状态直接写1 status: 1 //状态直接写1
} }
this.$store.dispatch("userTrigger", event); this.$store.dispatch("userTrigger", event);
this.getQaList();
} }
}) })
.catch(err => { .catch(err => {