意见反馈,问答

This commit is contained in:
daihh
2022-10-13 12:08:24 +08:00
parent 4e46513030
commit a5d2f3f99b
3 changed files with 25 additions and 18 deletions

View File

@@ -164,13 +164,13 @@ export default {
this.feedbackDlgShow=false; this.feedbackDlgShow=false;
let event = { let event = {
key: "Feedback",//后台的事件key key: "Feedback",//后台的事件key
title: "意见反馈",//事件的标题 title: "意见反馈",//事件的标题
parameters:"",//用户自定义参数 name:value,name:value parameters:"",//用户自定义参数 name:value,name:value
content: '意见反馈',//事件的内容 content: '意见反馈',//事件的内容
// objId: this.data.id,//关联的id objId: res.result.id,//关联的id
// objType: this.type,//关联的类型 objType:'99',//关联的类型
// objInfo: this.data.title, objInfo: "意见反馈",
aid: this.userInfo.aid, //当前登录人的id aid: this.userInfo.aid, //当前登录人的id
aname: this.userInfo.name,//当前人的姓名 aname: this.userInfo.name,//当前人的姓名
status: 1 //状态直接写1 status: 1 //状态直接写1

View File

@@ -32,7 +32,7 @@
<span v-if="item.status==0||item.status==2" style="color: red">{{statusText(item.status)}}</span> <span v-if="item.status==0||item.status==2" style="color: red">{{statusText(item.status)}}</span>
<!-- <div class="article-info-tools-btns"> --> <!-- <div class="article-info-tools-btns"> -->
<!-- <interactBar :data="item" :type="0" class="test" :answers="true" :comments="false" :shares="false" :views="false"></interactBar> --> <!-- <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 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> </div>
<!-- <el-link icon="el-icon-chat-line-round" class="article-info-tools-btn" >回答57</el-link> <!-- <el-link icon="el-icon-chat-line-round" class="article-info-tools-btn" >回答57</el-link>
@@ -78,12 +78,16 @@
<script> <script>
// import interactBar from '@/components/Portal/interactBar'; // import interactBar from '@/components/Portal/interactBar';
import { mapGetters } from "vuex";
import imageUpload from '@/components/ImageUpload/index.vue'; import imageUpload from '@/components/ImageUpload/index.vue';
import apiQa from '@/api/modules/qa.js' import apiQa from '@/api/modules/qa.js'
import interactBar from '@/components/Portal/interactBar.vue'; import interactBar from '@/components/Portal/interactBar.vue';
export default { export default {
name: 'articleItems', name: 'articleItems',
components: { imageUpload,interactBar }, components: { imageUpload,interactBar },
computed: {
...mapGetters(["userInfo"]),
},
props: { props: {
items: { items: {
//name, //name,
@@ -200,7 +204,22 @@ export default {
apiQa.del(item.id).then(res=>{ apiQa.del(item.id).then(res=>{
if(res.status==200){ if(res.status==200){
this.$message({ type: 'success', message: '删除成功!' }); 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);
} }
}) })
}) })

View File

@@ -1,18 +1,6 @@
<template> <template>
<div> <div>
<Remark>
1.我的问答我发的问题列表信息
<br />
2.关于问题标题是否是必须的可以讨论下
<br />
</Remark>
<div style="display: flex;justify-content: space-between;height: 40px;"> <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>
<div style="display: flex;justify-content:space-around;padding: 12px 22px 10px 18px;"> <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>--> <!--<div style="padding: 0px 5px;"><el-cascader clearable v-model="params.type" :options="typeList"></el-cascader></div>-->