|
@@ -248,6 +248,7 @@
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
import "@/css/index.css";
|
|
import "@/css/index.css";
|
|
|
|
|
+ import {mapState,mapGetters} from 'vuex'; //先要引入
|
|
|
import leftNav from "@/components/leftNav";
|
|
import leftNav from "@/components/leftNav";
|
|
|
import hader from "@/components/hader";
|
|
import hader from "@/components/hader";
|
|
|
import messageCenter from "@/components/messageCenter";
|
|
import messageCenter from "@/components/messageCenter";
|
|
@@ -260,8 +261,8 @@
|
|
|
inputValue: "", //输入框内容
|
|
inputValue: "", //输入框内容
|
|
|
isFrce: false, //表情包开关
|
|
isFrce: false, //表情包开关
|
|
|
frceArr: [], //表情包数组
|
|
frceArr: [], //表情包数组
|
|
|
- data: [], //当前对话数据
|
|
|
|
|
- dataIndex:0,//定位当前会话,默认是0
|
|
|
|
|
|
|
+ // data: [], //当前对话数据
|
|
|
|
|
+ // dataIndex:0,//定位当前会话,默认是0
|
|
|
FastReply: "", //快捷回复
|
|
FastReply: "", //快捷回复
|
|
|
FastReplySwitch: "one", //快捷回复开关
|
|
FastReplySwitch: "one", //快捷回复开关
|
|
|
user_info:'',//用户信息
|
|
user_info:'',//用户信息
|
|
@@ -270,10 +271,10 @@
|
|
|
sessionList:[],//会话列表
|
|
sessionList:[],//会话列表
|
|
|
offlineList:[],//离线列表
|
|
offlineList:[],//离线列表
|
|
|
transferList:[],//转接列表
|
|
transferList:[],//转接列表
|
|
|
- sessionType:1,//选择列表状态默认未1(1是会话中,2是离线)
|
|
|
|
|
|
|
+ // sessionType:1,//选择列表状态默认未1(1是会话中,2是离线)
|
|
|
lineUp:[],//排队列表
|
|
lineUp:[],//排队列表
|
|
|
conversationId:'',//会话工单
|
|
conversationId:'',//会话工单
|
|
|
- sessionName:'',//当前会话用户名字
|
|
|
|
|
|
|
+ // sessionName:'',//当前会话用户名字
|
|
|
session_user_info:{},//当前会话用户信息
|
|
session_user_info:{},//当前会话用户信息
|
|
|
img_http:'http://kfadmin.bocai186.com',//图片路径域
|
|
img_http:'http://kfadmin.bocai186.com',//图片路径域
|
|
|
//img_http:'http://192.168.2.186:8090',//图片路径域
|
|
//img_http:'http://192.168.2.186:8090',//图片路径域
|
|
@@ -284,6 +285,7 @@
|
|
|
session_marked:'',//客服当前会话标记
|
|
session_marked:'',//客服当前会话标记
|
|
|
sensitive:[],//客服敏感词数据
|
|
sensitive:[],//客服敏感词数据
|
|
|
userSensitiveWords:[],//用户敏感词
|
|
userSensitiveWords:[],//用户敏感词
|
|
|
|
|
+ sensitiveNumber:0,//关键词次数
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
@@ -323,14 +325,10 @@
|
|
|
//离线匹配列表访客链接回调
|
|
//离线匹配列表访客链接回调
|
|
|
_this.$store.dispatch("SET_OFFLINE",data);
|
|
_this.$store.dispatch("SET_OFFLINE",data);
|
|
|
},function(data,list,offline,type,num,dataList,name){
|
|
},function(data,list,offline,type,num,dataList,name){
|
|
|
|
|
+ // console.log(name)
|
|
|
//新访客链接回调
|
|
//新访客链接回调
|
|
|
_this.sessionType = type;
|
|
_this.sessionType = type;
|
|
|
_this.dataIndex = num;
|
|
_this.dataIndex = num;
|
|
|
- _this.data = [];
|
|
|
|
|
- if( dataList.length >0 ){
|
|
|
|
|
- _this.data = dataList;
|
|
|
|
|
- }
|
|
|
|
|
- _this.sessionName = name;
|
|
|
|
|
//将用户添加到会话列表中
|
|
//将用户添加到会话列表中
|
|
|
_this.sessionList.push(data.user_info);
|
|
_this.sessionList.push(data.user_info);
|
|
|
//获取接入的用户信息
|
|
//获取接入的用户信息
|
|
@@ -338,6 +336,12 @@
|
|
|
//获取接入的用户信息写入vuex
|
|
//获取接入的用户信息写入vuex
|
|
|
_this.$store.dispatch("SET_SESSION",list);
|
|
_this.$store.dispatch("SET_SESSION",list);
|
|
|
_this.$store.dispatch("SET_OFFLINE",offline);
|
|
_this.$store.dispatch("SET_OFFLINE",offline);
|
|
|
|
|
+ _this.$store.dispatch("SET_TYPE",type);//选择类型(会话/离线)
|
|
|
|
|
+ _this.$store.dispatch("SET_NUM",num);//列表下标
|
|
|
|
|
+ _this.$store.dispatch("SET_CURRENT",dataList);//当前会话数据
|
|
|
|
|
+ if(name){
|
|
|
|
|
+ _this.$store.dispatch("SET_SESSION_NAME",name);//当前会话对象名
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -361,9 +365,7 @@
|
|
|
_this.offlineList = offline;
|
|
_this.offlineList = offline;
|
|
|
_this.sessionType = type;
|
|
_this.sessionType = type;
|
|
|
_this.dataIndex = index;
|
|
_this.dataIndex = index;
|
|
|
- _this.sessionName = name;
|
|
|
|
|
- _this.data = [];
|
|
|
|
|
- _this.data = list;
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",list);//当前会话数据
|
|
|
_this.$store.dispatch("SET_NUM",index);
|
|
_this.$store.dispatch("SET_NUM",index);
|
|
|
_this.$store.dispatch("SET_TYPE",type);
|
|
_this.$store.dispatch("SET_TYPE",type);
|
|
|
_this.$store.dispatch("SET_SESSION",session);
|
|
_this.$store.dispatch("SET_SESSION",session);
|
|
@@ -392,8 +394,7 @@
|
|
|
_this.offlineList = offline;
|
|
_this.offlineList = offline;
|
|
|
_this.sessionType = type;
|
|
_this.sessionType = type;
|
|
|
_this.dataIndex = index;
|
|
_this.dataIndex = index;
|
|
|
- _this.sessionName = name;
|
|
|
|
|
- _this.data = [];
|
|
|
|
|
|
|
+ _this.$store.dispatch("SET_CURRENT",list);//当前会话数据
|
|
|
_this.$store.dispatch("SET_NUM",index);
|
|
_this.$store.dispatch("SET_NUM",index);
|
|
|
_this.$store.dispatch("SET_TYPE",type);
|
|
_this.$store.dispatch("SET_TYPE",type);
|
|
|
_this.$store.dispatch("SET_SESSION",session);
|
|
_this.$store.dispatch("SET_SESSION",session);
|
|
@@ -402,29 +403,30 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- //接收用户消息数据
|
|
|
|
|
- if(redata.message_type == "chatMessage"){
|
|
|
|
|
- let _this =this;
|
|
|
|
|
- this.$public.receivesMessage(redata.data,this.sessionList,this.$frce,
|
|
|
|
|
- function(data,chatList,dataIndex){
|
|
|
|
|
-
|
|
|
|
|
- //判断是否是当前对话信息
|
|
|
|
|
- if(dataIndex == _this.dataIndex){
|
|
|
|
|
- _this.data =[];
|
|
|
|
|
- _this.data = chatList.data;
|
|
|
|
|
- }else{
|
|
|
|
|
- let num = Number.isInteger(chatList.num) ? chatList.num : 0;
|
|
|
|
|
- _this.$set(chatList,'num',num+1)
|
|
|
|
|
- }
|
|
|
|
|
- //更新会话时间
|
|
|
|
|
- _this.$set(chatList,'intime',data.time);
|
|
|
|
|
|
|
+ // //接收用户消息数据
|
|
|
|
|
+ // if(redata.message_type == "chatMessage"){
|
|
|
|
|
+ // let _this =this;
|
|
|
|
|
+ // this.$public.receivesMessage(redata.data,this.sessionList,this.$frce,
|
|
|
|
|
+ // function(data,chatList,dataIndex){
|
|
|
|
|
+
|
|
|
|
|
+ // //判断是否是当前对话信息
|
|
|
|
|
+ // if(dataIndex == _this.dataIndex){
|
|
|
|
|
+ // _this.data =[];
|
|
|
|
|
+ // _this.data = chatList.data;
|
|
|
|
|
+ // }else{
|
|
|
|
|
+ // let num = Number.isInteger(chatList.num) ? chatList.num : 0;
|
|
|
|
|
+ // _this.$set(chatList,'num',num+1)
|
|
|
|
|
+ // }
|
|
|
|
|
+ // //更新会话时间
|
|
|
|
|
+ // _this.$set(chatList,'intime',data.time);
|
|
|
|
|
|
|
|
- //更新会话列表中最新回复消息
|
|
|
|
|
- if(data.content.text){
|
|
|
|
|
- _this.$set(chatList,'text',data.content.text)
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // //更新会话列表中最新回复消息
|
|
|
|
|
+ // if(data.content.text){
|
|
|
|
|
+ // _this.$set(chatList,'text',data.content.text)
|
|
|
|
|
+ // }
|
|
|
|
|
+ // })
|
|
|
|
|
+ // console.log(_this.data);
|
|
|
|
|
+ // }
|
|
|
|
|
|
|
|
//接收系统操作信息状态在线客服列表
|
|
//接收系统操作信息状态在线客服列表
|
|
|
if(redata.message_type == "onlinekfs"){
|
|
if(redata.message_type == "onlinekfs"){
|
|
@@ -434,7 +436,6 @@
|
|
|
|
|
|
|
|
//接收会话时间
|
|
//接收会话时间
|
|
|
if(redata.message_type == "webTime"){
|
|
if(redata.message_type == "webTime"){
|
|
|
- // this.webTime = redata.data.webTime
|
|
|
|
|
this.$set(this.data[this.session_marked],'time',redata.data.webTime);
|
|
this.$set(this.data[this.session_marked],'time',redata.data.webTime);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -451,15 +452,9 @@
|
|
|
// this.data = []
|
|
// this.data = []
|
|
|
|
|
|
|
|
}else{
|
|
}else{
|
|
|
- this.data = [];
|
|
|
|
|
- this.sessionName ='';
|
|
|
|
|
- // if(this.offlineList.length >0){
|
|
|
|
|
- // this.data = [];
|
|
|
|
|
- // this.sessionName ='';
|
|
|
|
|
- // }else{
|
|
|
|
|
- // this.data = [];
|
|
|
|
|
- // this.sessionName ='';
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ // this.data = [];
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",[]);//当前会话数据
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",'');
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
this.automaticRolling();
|
|
this.automaticRolling();
|
|
@@ -495,7 +490,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
let obj = {
|
|
let obj = {
|
|
|
text:'',
|
|
text:'',
|
|
|
img:res.data.data.src,
|
|
img:res.data.data.src,
|
|
@@ -576,13 +570,14 @@
|
|
|
data = this.sessionList[index].data;
|
|
data = this.sessionList[index].data;
|
|
|
this.session_user_info = this.sessionList[index];
|
|
this.session_user_info = this.sessionList[index];
|
|
|
this.$set(this.sessionList[index],'num',0);
|
|
this.$set(this.sessionList[index],'num',0);
|
|
|
- this.sessionName = this.sessionList[index].name
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",this.sessionList[index].name);
|
|
|
}else if(type == 2){
|
|
}else if(type == 2){
|
|
|
data = this.offlineList[index].data;
|
|
data = this.offlineList[index].data;
|
|
|
- this.sessionName = this.offlineList[index].name;
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",this.offlineList[index].name);
|
|
|
this.session_user_info = this.offlineList[index];
|
|
this.session_user_info = this.offlineList[index];
|
|
|
}
|
|
}
|
|
|
- this.data = data;
|
|
|
|
|
|
|
+ //this.data = data;
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",data);//当前会话数据
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/***************关闭当前和用户聊天对话***************/
|
|
/***************关闭当前和用户聊天对话***************/
|
|
@@ -612,16 +607,16 @@
|
|
|
if(this.sessionType == 1){
|
|
if(this.sessionType == 1){
|
|
|
this.sessionList.splice(this.dataIndex,1);
|
|
this.sessionList.splice(this.dataIndex,1);
|
|
|
if(this.sessionList.length> 0){
|
|
if(this.sessionList.length> 0){
|
|
|
- this.data = this.sessionList[0];
|
|
|
|
|
- this.sessionName = this.sessionList[0].name;
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",this.sessionList[0]);//当前会话数据
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",this.sessionList[0].name);
|
|
|
}else{
|
|
}else{
|
|
|
- this.data = [];
|
|
|
|
|
- this.sessionName = '';
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",[]);//当前会话数据
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",'');
|
|
|
}
|
|
}
|
|
|
}else{
|
|
}else{
|
|
|
this.offlineList.splice(this.dataIndex,1);
|
|
this.offlineList.splice(this.dataIndex,1);
|
|
|
- this.data = [];
|
|
|
|
|
- this.sessionName = '';
|
|
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",[]);//当前会话数据
|
|
|
|
|
+ this.$store.dispatch("SET_SESSION_NAME",'');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
this.websocketsend(JSON.stringify(data))
|
|
this.websocketsend(JSON.stringify(data))
|
|
@@ -641,7 +636,6 @@
|
|
|
|
|
|
|
|
/*********************发送消息*********************/
|
|
/*********************发送消息*********************/
|
|
|
sendMessage(){
|
|
sendMessage(){
|
|
|
- console.log();
|
|
|
|
|
if(!this.inputValue) return
|
|
if(!this.inputValue) return
|
|
|
if(this.sessionList.length == 0) {
|
|
if(this.sessionList.length == 0) {
|
|
|
this.$message({
|
|
this.$message({
|
|
@@ -662,48 +656,49 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- //判断客服敏感词报警次数
|
|
|
|
|
- let obj = {
|
|
|
|
|
- text: this.inputValue,
|
|
|
|
|
- img:'',
|
|
|
|
|
- type:false,
|
|
|
|
|
- }
|
|
|
|
|
- let type ='chatMessage';
|
|
|
|
|
|
|
+ //检测发送信息是否含有敏感词
|
|
|
|
|
+ let sensitive_data= this.$public.shieldingKeyword(this.$public.turnFace(this.inputValue,this.$frce),this.sensitive);
|
|
|
|
|
+ //组合发送数据
|
|
|
let data = {
|
|
let data = {
|
|
|
from_name:this.user_info.user_name,//发送者
|
|
from_name:this.user_info.user_name,//发送者
|
|
|
from_avatar:this.user_info.avatar,//发送者头像
|
|
from_avatar:this.user_info.avatar,//发送者头像
|
|
|
from_id:"KF"+this.user_info.id,//发送者id
|
|
from_id:"KF"+this.user_info.id,//发送者id
|
|
|
- content:JSON.stringify(obj),
|
|
|
|
|
|
|
+ content:JSON.stringify({
|
|
|
|
|
+ text: this.inputValue,
|
|
|
|
|
+ img:'',
|
|
|
|
|
+ }),
|
|
|
to_id: this.sessionList[this.dataIndex].id,
|
|
to_id: this.sessionList[this.dataIndex].id,
|
|
|
to_name:this.sessionList[this.dataIndex].name,
|
|
to_name:this.sessionList[this.dataIndex].name,
|
|
|
conversationId:this.sessionList[this.dataIndex].conversationId,
|
|
conversationId:this.sessionList[this.dataIndex].conversationId,
|
|
|
isFirst:isFirst,//是否是第一句话
|
|
isFirst:isFirst,//是否是第一句话
|
|
|
- sensitiveNumber:sensitiveNumber,//敏感词次数
|
|
|
|
|
|
|
+ sensitiveNumber:this.sensitiveNumber,//敏感词次数
|
|
|
}
|
|
}
|
|
|
let chatList = this.sessionList[this.dataIndex];
|
|
let chatList = this.sessionList[this.dataIndex];
|
|
|
- //检测发送信息是否含有敏感词
|
|
|
|
|
- let sensitive_data= this.$public.shieldingKeyword(this.$public.turnFace(this.inputValue,this.$frce),this.sensitive);
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
//有敏感词提示并且禁止发送
|
|
//有敏感词提示并且禁止发送
|
|
|
if(sensitive_data.num == 0 ){
|
|
if(sensitive_data.num == 0 ){
|
|
|
// 本地储存
|
|
// 本地储存
|
|
|
chatList.data.push({type:'service', content:{
|
|
chatList.data.push({type:'service', content:{
|
|
|
- text:this.$public.turnFace(this.inputValue,this.$frce),
|
|
|
|
|
- img:'',
|
|
|
|
|
- type:false,
|
|
|
|
|
- } ,time:this.time[1]});
|
|
|
|
|
|
|
+ text:this.$public.turnFace(this.inputValue,this.$frce),
|
|
|
|
|
+ img:'',
|
|
|
|
|
+ } ,time:this.time[1]});
|
|
|
|
|
|
|
|
- this.data = [];
|
|
|
|
|
|
|
+ //this.data = [];
|
|
|
//标记当前会话位置
|
|
//标记当前会话位置
|
|
|
this.session_marked = chatList.data.length -1;
|
|
this.session_marked = chatList.data.length -1;
|
|
|
- this.data = chatList.data;
|
|
|
|
|
- this.websocketsend(JSON.stringify({type,data}))
|
|
|
|
|
|
|
+ //this.data = chatList.data;
|
|
|
|
|
+ this.$store.dispatch("SET_CURRENT",chatList.data);//当前会话数据
|
|
|
|
|
+ this.websocketsend(JSON.stringify({type:'chatMessage',data}))
|
|
|
this.inputValue = '';
|
|
this.inputValue = '';
|
|
|
|
|
+ this.sensitiveNumber = 0;
|
|
|
}else{
|
|
}else{
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: '敏感词'+sensitive_data.text,
|
|
message: '敏感词'+sensitive_data.text,
|
|
|
type: 'warning'
|
|
type: 'warning'
|
|
|
});
|
|
});
|
|
|
|
|
+ //计算关键词次数
|
|
|
|
|
+ this.sensitiveNumber = this.sensitiveNumber +sensitive_data.num;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -716,7 +711,6 @@
|
|
|
|
|
|
|
|
/*******************发送评价指令*******************/
|
|
/*******************发送评价指令*******************/
|
|
|
evaluation(){
|
|
evaluation(){
|
|
|
- console.log(this.sessionList[this.dataIndex]);
|
|
|
|
|
if(!this.is_eva_btn && this.sessionType == 1){
|
|
if(!this.is_eva_btn && this.sessionType == 1){
|
|
|
this.$message({
|
|
this.$message({
|
|
|
message: '评价指令已发送',
|
|
message: '评价指令已发送',
|
|
@@ -773,10 +767,9 @@
|
|
|
get_user_info(type){
|
|
get_user_info(type){
|
|
|
if(type.length > 0 ){
|
|
if(type.length > 0 ){
|
|
|
this. session_user_info = {};
|
|
this. session_user_info = {};
|
|
|
- if(this.dataIndex !=100){
|
|
|
|
|
|
|
+ if(this.dataIndex <= type.length){
|
|
|
this.session_user_info = type[this.dataIndex];
|
|
this.session_user_info = type[this.dataIndex];
|
|
|
}
|
|
}
|
|
|
- // console.log(this.session_user_info);
|
|
|
|
|
}else{
|
|
}else{
|
|
|
this.session_user_info = {};
|
|
this.session_user_info = {};
|
|
|
}
|
|
}
|
|
@@ -826,22 +819,30 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ /********************获取vuex数据***********************/
|
|
|
|
|
+ get_vuex_info(){
|
|
|
|
|
+ let getters = this.$store.getters
|
|
|
|
|
+ this.token =getters.get_user_info.token ;//token
|
|
|
|
|
+ this.user_info = getters.get_user_info;//用户消息
|
|
|
|
|
+ this.sessionList = getters.get_session ;//会话
|
|
|
|
|
+ this.offlineList = getters.get_offline ;//离线
|
|
|
|
|
+ this.dataIndex = getters.get_num; //getters.get_num;列表下标
|
|
|
|
|
+ this.sessionType = getters.get_type;//选择类型
|
|
|
|
|
+ // this.data = getters.get_current;//当前会话数据
|
|
|
|
|
+ // this.sessionName = getters.get_session_name;//会话对象名字
|
|
|
|
|
+ this.time =JSON.parse(sessionStorage.getItem("time"));
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
/**
|
|
/**
|
|
|
* 挂载前执行
|
|
* 挂载前执行
|
|
|
*/
|
|
*/
|
|
|
mounted() {
|
|
mounted() {
|
|
|
- //获取vuex数据
|
|
|
|
|
- let getters = this.$store.getters
|
|
|
|
|
- this.sessionList = getters.get_session ? getters.get_session :[] ;
|
|
|
|
|
- this.offlineList = getters.get_offline ? getters.get_offline :[] ;
|
|
|
|
|
- this.token =getters.get_user_info.token ;
|
|
|
|
|
- this.user_info = getters.get_user_info;
|
|
|
|
|
- this.dataIndex =100; //getters.get_num;
|
|
|
|
|
- this.sessionType = getters.get_type;
|
|
|
|
|
- this.time =JSON.parse(sessionStorage.getItem("time"));
|
|
|
|
|
|
|
+ //获取vuex里面数据
|
|
|
|
|
+ this.get_vuex_info();
|
|
|
let _this = this;
|
|
let _this = this;
|
|
|
this.get_config_info();
|
|
this.get_config_info();
|
|
|
|
|
+
|
|
|
|
|
+ //客服人员登陆会话
|
|
|
if(this.$store.getters.get_is_init){
|
|
if(this.$store.getters.get_is_init){
|
|
|
// this.$websocket.onmessage = this.;
|
|
// this.$websocket.onmessage = this.;
|
|
|
_this.websocketsend(JSON.stringify({
|
|
_this.websocketsend(JSON.stringify({
|
|
@@ -870,7 +871,6 @@
|
|
|
get_session_message(e){
|
|
get_session_message(e){
|
|
|
this.chatMessage(e)
|
|
this.chatMessage(e)
|
|
|
},
|
|
},
|
|
|
-
|
|
|
|
|
/*****************评价按钮显示隐藏处理*****************/
|
|
/*****************评价按钮显示隐藏处理*****************/
|
|
|
get_is_eva_btn(data){
|
|
get_is_eva_btn(data){
|
|
|
if(this.sessionType != 2){
|
|
if(this.sessionType != 2){
|
|
@@ -894,9 +894,16 @@
|
|
|
* 计算属性
|
|
* 计算属性
|
|
|
*/
|
|
*/
|
|
|
computed:{
|
|
computed:{
|
|
|
|
|
+ ...mapGetters({
|
|
|
|
|
+ data:'get_current',
|
|
|
|
|
+ sessionName:'get_session_name',
|
|
|
|
|
+ }),
|
|
|
|
|
+
|
|
|
get_session_message(){
|
|
get_session_message(){
|
|
|
return this.$store.getters.get_session_message;
|
|
return this.$store.getters.get_session_message;
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
/****************判断是否可以点击评价*****************/
|
|
/****************判断是否可以点击评价*****************/
|
|
|
get_is_eva_btn(){
|
|
get_is_eva_btn(){
|
|
|
return this.data;
|
|
return this.data;
|