|
@@ -176,7 +176,7 @@ export default {
|
|
async getBarList() {
|
|
async getBarList() {
|
|
const res = await apiBarTotal();
|
|
const res = await apiBarTotal();
|
|
if (res.code !== 200) return;
|
|
if (res.code !== 200) return;
|
|
- const { replied, wait, total } = res.data;
|
|
|
|
|
|
+ const { replied, wait, total,distribute } = res.data;
|
|
//客户: 已回答 未回答 全部
|
|
//客户: 已回答 未回答 全部
|
|
const customBar = [
|
|
const customBar = [
|
|
{
|
|
{
|
|
@@ -195,12 +195,17 @@ export default {
|
|
num: total,
|
|
num: total,
|
|
},
|
|
},
|
|
];
|
|
];
|
|
- //研究员: 待回答 已回答 全部
|
|
|
|
|
|
+ //研究员: 待回答 未回答 已回答 全部
|
|
const researBar = [
|
|
const researBar = [
|
|
{
|
|
{
|
|
label: "待回答",
|
|
label: "待回答",
|
|
- key: "Wait",
|
|
|
|
- num: wait,
|
|
|
|
|
|
+ key: "Distribute",
|
|
|
|
+ num: distribute,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'未回答',
|
|
|
|
+ key:'Wait',
|
|
|
|
+ num:wait,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
label: "已回答",
|
|
label: "已回答",
|
|
@@ -216,7 +221,7 @@ export default {
|
|
this.barList = this.isUserResearcher ? researBar : customBar;
|
|
this.barList = this.isUserResearcher ? researBar : customBar;
|
|
},
|
|
},
|
|
async getQuestionData() {
|
|
async getQuestionData() {
|
|
- const reply_status = { Wait: 2, Replied: 3, Total: 0 };
|
|
|
|
|
|
+ const reply_status = { Wait: 2, Replied: 3, Total: 0 ,Distribute:4};
|
|
await this.getQuestionList(reply_status[this.selectKey],1);
|
|
await this.getQuestionList(reply_status[this.selectKey],1);
|
|
this.setQuestionsRead()
|
|
this.setQuestionsRead()
|
|
},
|
|
},
|
|
@@ -224,7 +229,8 @@ export default {
|
|
//获取未读的数据,请求未读接口变为已读
|
|
//获取未读的数据,请求未读接口变为已读
|
|
let unReadArr = []
|
|
let unReadArr = []
|
|
this.questionList.forEach(item=>{
|
|
this.questionList.forEach(item=>{
|
|
- let isReadKey = this.isUserResearcher?'replier_is_read':'is_read'
|
|
|
|
|
|
+ /* let isReadKey = this.isUserResearcher?'replier_is_read':'is_read' */
|
|
|
|
+ let isReadKey = item.user_id===this.userInfo.user_id?'replier_is_read':'is_read'
|
|
if(item[isReadKey]===0){
|
|
if(item[isReadKey]===0){
|
|
unReadArr.push(item.community_question_id)
|
|
unReadArr.push(item.community_question_id)
|
|
}
|
|
}
|
|
@@ -249,14 +255,21 @@ export default {
|
|
padding: 30rpx;
|
|
padding: 30rpx;
|
|
.answer-bar {
|
|
.answer-bar {
|
|
display: flex;
|
|
display: flex;
|
|
- justify-content: space-between;
|
|
|
|
|
|
+ /* justify-content: space-between; */
|
|
|
|
+ overflow-x: scroll;
|
|
|
|
+ &::-webkit-scrollbar{
|
|
|
|
+ width: 0;
|
|
|
|
+ display: none;
|
|
|
|
+ }
|
|
.bar-item {
|
|
.bar-item {
|
|
width: 206rpx;
|
|
width: 206rpx;
|
|
|
|
+ min-width: 206rpx;
|
|
color: #666666;
|
|
color: #666666;
|
|
background-color: #f5f5f5;
|
|
background-color: #f5f5f5;
|
|
height: 70rpx;
|
|
height: 70rpx;
|
|
line-height: 70rpx;
|
|
line-height: 70rpx;
|
|
text-align: center;
|
|
text-align: center;
|
|
|
|
+ margin-right: 20rpx;
|
|
&.active {
|
|
&.active {
|
|
background-color: #fdf8f2;
|
|
background-color: #fdf8f2;
|
|
color: #e3b377;
|
|
color: #e3b377;
|