mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
问答,管理删除,减U币
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user