mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-21 08:46:44 +08:00
意见反馈,问答
This commit is contained in:
@@ -164,13 +164,13 @@ export default {
|
||||
this.feedbackDlgShow=false;
|
||||
|
||||
let event = {
|
||||
key: "Feedback",//后台的事件key
|
||||
key: "Feedback",//后台的事件key
|
||||
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
|
||||
|
||||
@@ -32,7 +32,7 @@
|
||||
<span v-if="item.status==0||item.status==2" style="color: red">{{statusText(item.status)}}</span>
|
||||
<!-- <div class="article-info-tools-btns"> -->
|
||||
<!-- <interactBar :data="item" :type="0" class="test" :answers="true" :comments="false" :shares="false" :views="false"></interactBar> -->
|
||||
|
||||
|
||||
<div class="button-cla"><interactBar nodeWidth="60px" :readonly="true" :type="4" :data="item" :shares="true" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar></div>
|
||||
</div>
|
||||
<!-- <el-link icon="el-icon-chat-line-round" class="article-info-tools-btn" >回答57</el-link>
|
||||
@@ -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);
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user