mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-14 05:16:43 +08:00
意见反馈,问答
This commit is contained in:
@@ -168,9 +168,9 @@ export default {
|
||||
title: "意见反馈",//事件的标题
|
||||
parameters:"",//用户自定义参数 name:value,name:value
|
||||
content: '意见反馈',//事件的内容
|
||||
// objId: this.data.id,//关联的id
|
||||
// objType: this.type,//关联的类型
|
||||
// objInfo: this.data.title,
|
||||
objId: res.result.id,//关联的id
|
||||
objType:'99',//关联的类型
|
||||
objInfo: "意见反馈",
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
|
||||
@@ -78,12 +78,16 @@
|
||||
|
||||
<script>
|
||||
// import interactBar from '@/components/Portal/interactBar';
|
||||
import { mapGetters } from "vuex";
|
||||
import imageUpload from '@/components/ImageUpload/index.vue';
|
||||
import apiQa from '@/api/modules/qa.js'
|
||||
import interactBar from '@/components/Portal/interactBar.vue';
|
||||
export default {
|
||||
name: 'articleItems',
|
||||
components: { imageUpload,interactBar },
|
||||
computed: {
|
||||
...mapGetters(["userInfo"]),
|
||||
},
|
||||
props: {
|
||||
items: {
|
||||
//name,
|
||||
@@ -200,7 +204,22 @@ export default {
|
||||
apiQa.del(item.id).then(res=>{
|
||||
if(res.status==200){
|
||||
this.$message({ type: 'success', message: '删除成功!' });
|
||||
this.$emit('sure',true)
|
||||
this.$emit('sure',true);
|
||||
//发送删除问题事件
|
||||
let event = {
|
||||
key: "DeleteQuestion",//
|
||||
title: "删除提问",//事件的标题
|
||||
parameters:"author:"+item.sysCreateAid,//作者参数
|
||||
content: "删除提问【"+item.title+"】",//事件的内容
|
||||
source:'page',
|
||||
objId: item.id,//关联的id
|
||||
objType: "2",//关联的类型
|
||||
objInfo: item.title,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -1,18 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<Remark>
|
||||
1.我的问答,我发的问题列表信息
|
||||
<br />
|
||||
2.关于问题标题是否是必须的可以讨论下
|
||||
<br />
|
||||
</Remark>
|
||||
<div style="display: flex;justify-content: space-between;height: 40px;">
|
||||
<!-- <div style="padding-top: 5px;"> -->
|
||||
<!--
|
||||
<el-tag type="primary" style="margin-right: 20px;">最新</el-tag>
|
||||
<el-tag type="info">最热</el-tag>
|
||||
-->
|
||||
<!-- </div> -->
|
||||
<div>
|
||||
<div style="display: flex;justify-content:space-around;padding: 12px 22px 10px 18px;">
|
||||
<!--<div style="padding: 0px 5px;"><el-cascader clearable v-model="params.type" :options="typeList"></el-cascader></div>-->
|
||||
|
||||
Reference in New Issue
Block a user