|
@@ -26,7 +26,6 @@
|
|
|
<view style="flex: 1" class="question-title">
|
|
|
<text
|
|
|
class="item-label"
|
|
|
- v-if="(item.reply_status === 3 || item.replier_user_id == userInfo.user_id) && questionStatus!=2"
|
|
|
>{{ item.variety_tag_name }}</text
|
|
|
>
|
|
|
{{ item.question_content }}
|
|
@@ -189,27 +188,29 @@ export default {
|
|
|
},
|
|
|
//点击bar
|
|
|
changeBar({ key }) {
|
|
|
- if (key === this.selectKey) return;
|
|
|
- this.selectKey = key;
|
|
|
- this.questionList = [];
|
|
|
- this.page = 1;
|
|
|
- // 重新获取数量
|
|
|
- apiBarTotal().then(res=>{
|
|
|
- if(res.code == 200){
|
|
|
- const { replied, wait, total,distribute } = res.data;
|
|
|
- for (const bar of this.barList) {
|
|
|
- if(bar.label == '已回答'){
|
|
|
- bar.num = replied
|
|
|
- }else if(bar.label == '未回答'){
|
|
|
- bar.num = wait
|
|
|
- }else if(bar.label == '全部'){
|
|
|
- bar.num = total
|
|
|
- }else if(bar.label == '待回答'){
|
|
|
- bar.num = distribute
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+ if (key === this.selectKey) return;
|
|
|
+ this.selectKey = key;
|
|
|
+ this.questionList = [];
|
|
|
+ this.page = 1;
|
|
|
+ // 重新获取数量
|
|
|
+ apiBarTotal().then(res=>{
|
|
|
+ if(res.code == 200){
|
|
|
+ const { replied, wait, total,distribute,stop } = res.data;
|
|
|
+ for (const bar of this.barList) {
|
|
|
+ if(bar.label == '已回答'){
|
|
|
+ bar.num = replied
|
|
|
+ }else if(bar.label == '未回答'){
|
|
|
+ bar.num = wait
|
|
|
+ }else if(bar.label == '全部'){
|
|
|
+ bar.num = total
|
|
|
+ }else if(bar.label == '待回答'){
|
|
|
+ bar.num = distribute
|
|
|
+ }else if(bar.label=='已终止'){
|
|
|
+ bar.num=stop
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
this.resetAudio();
|
|
|
this.getQuestionData();
|
|
|
},
|
|
@@ -223,7 +224,7 @@ export default {
|
|
|
async getBarList() {
|
|
|
const res = await apiBarTotal();
|
|
|
if (res.code !== 200) return;
|
|
|
- const { replied, wait, total,distribute } = res.data;
|
|
|
+ const { replied, wait, total,distribute,stop } = res.data;
|
|
|
//客户: 已回答 未回答 全部
|
|
|
const customBar = [
|
|
|
{
|
|
@@ -259,6 +260,11 @@ export default {
|
|
|
key: "Replied",
|
|
|
num: replied,
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "已终止",
|
|
|
+ key: "Stop",
|
|
|
+ num: stop,
|
|
|
+ },
|
|
|
{
|
|
|
label: "全部",
|
|
|
key: "Total",
|
|
@@ -268,7 +274,7 @@ export default {
|
|
|
this.barList = this.isUserResearcher ? researBar : customBar;
|
|
|
},
|
|
|
async getQuestionData() {
|
|
|
- const reply_status = { Wait: 2, Replied: 3, Total: 0 ,Distribute:4};
|
|
|
+ const reply_status = { Wait: 2, Replied: 3, Total: 0 ,Distribute:4,Stop:5};
|
|
|
this.questionStatus = reply_status[this.selectKey]
|
|
|
await this.getQuestionList(reply_status[this.selectKey],1);
|
|
|
this.setQuestionsRead()
|