|
|
@@ -210,7 +210,7 @@
|
|
|
v-for="item in FastReply.sysWords" :key="item.id" v-if="FastReplySwitch == 'one'">
|
|
|
<el-tooltip class="title_span" effect="light" placement="bottom-start">
|
|
|
<div slot="content">{{item.content}}</div>
|
|
|
- <span class="title_span" style=" width: 100%">#{{item.title}}</span>
|
|
|
+ <span class="title_span ellipsis" style=" width: 100%">#{{item.title}}</span>
|
|
|
</el-tooltip>
|
|
|
|
|
|
<!-- <div class="ellipsis" style=" width: 70%">
|
|
|
@@ -225,7 +225,7 @@
|
|
|
v-for="item in FastReply.userWords" :key="item.id" v-if="FastReplySwitch == 'tow'">
|
|
|
<el-tooltip class="title_span" effect="light" placement="bottom-start">
|
|
|
<div slot="content">{{item.content}}</div>
|
|
|
- <span class="title_span" style=" width: 100%">#{{item.title}}</span>
|
|
|
+ <span class="title_span ellipsis" style=" width: 100%">#{{item.title}}</span>
|
|
|
</el-tooltip>
|
|
|
<!-- <div class="ellipsis" style=" width: 70%">
|
|
|
|
|
|
@@ -256,7 +256,6 @@
|
|
|
<p>来源终端:{{terminal_IP.system}}</p>
|
|
|
<p>来源地区:{{terminal_IP.source}}</p>
|
|
|
</div>
|
|
|
-
|
|
|
<div style="color:#666;font-weight:bold;font-size:14px; margin-top:30px;">用户信息</div>
|
|
|
<div id="user_info_box" style="margin-top:10px;color:#999;font-size:14px;" class="userData wrap">
|
|
|
<div class="user_info_box">
|
|
|
@@ -355,8 +354,7 @@
|
|
|
lineUp: [],//排队列表
|
|
|
conversationId: '',//会话工单
|
|
|
session_user_info: {},//当前会话用户信息
|
|
|
- img_http: 'https://manage.281570.com',//图片路径域
|
|
|
- // img_http: 'http://192.168.2.187:8090',//图片路径域
|
|
|
+ img_http: window.url_https_ajax,//图片路径域
|
|
|
fit: 'scale-down',//图片渲染样式
|
|
|
is_eva_btn: true,//
|
|
|
trigger_condition: 0,//评价触发条件
|
|
|
@@ -537,6 +535,21 @@
|
|
|
/*********************图片发送*********************/
|
|
|
uploadIMG(e) {
|
|
|
//console.log(e);
|
|
|
+ if (this.sessionType == 2) {
|
|
|
+ this.$message({
|
|
|
+ message: '只能给在线用户发送消息哦...',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.sessionType == 1 && this.sessionList.length <= 0){
|
|
|
+ this.$message({
|
|
|
+ message: '只能给在线用户发送消息哦...',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
let self = this;
|
|
|
let files = e.target.files || e.dataTransfer.files;
|
|
|
if (!files.length) return;
|
|
|
@@ -570,6 +583,12 @@
|
|
|
upImg(formData) {
|
|
|
let self = this;
|
|
|
// 数据结构请求
|
|
|
+ let loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '图片发送中...',
|
|
|
+ spinner: 'el-icon-loading',
|
|
|
+ background:'rgba(0, 0, 0, 0.8)',
|
|
|
+ });
|
|
|
self.$http.uploadPost('/index/upload/uploadImg', formData).then(res => {
|
|
|
//console.log(res.data.data.src)
|
|
|
|
|
|
@@ -610,8 +629,7 @@
|
|
|
sensitiveNumber: 0,//敏感词次数
|
|
|
}
|
|
|
self.websocketsend(JSON.stringify({type, data}))
|
|
|
-
|
|
|
-
|
|
|
+ loading.close()
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
@@ -656,7 +674,6 @@
|
|
|
},
|
|
|
getPlatformCN(name){
|
|
|
let platforms={'android':'安卓','ios':'苹果','pc':'电脑'};
|
|
|
-
|
|
|
return platforms[name];
|
|
|
},
|
|
|
|
|
|
@@ -938,10 +955,12 @@
|
|
|
if(this.session_user_info.nick_name){
|
|
|
if(this.sessionList[index]){
|
|
|
this.sessionList[index].name = this.session_user_info.nick_name;
|
|
|
+ }else{
|
|
|
+
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
this.$store.dispatch("SET_SESSION",this.sessionList);
|
|
|
+
|
|
|
this.$store.dispatch("SET_SESSION_NAME",this.sessionList[index].name);
|
|
|
}else if(type == 2){
|
|
|
if(this.session_user_info.nick_name){
|
|
|
@@ -1108,6 +1127,19 @@
|
|
|
|
|
|
/**********************qq截图粘贴---发送截图*****************/
|
|
|
handleClose(done) {
|
|
|
+ if (this.sessionType == 2) {
|
|
|
+ this.$message({
|
|
|
+ message: '只能给在线用户发送消息哦...',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }else if(this.sessionType == 1 && this.sessionList.length <= 0){
|
|
|
+ this.$message({
|
|
|
+ message: '只能给在线用户发送消息哦...',
|
|
|
+ type: 'warning'
|
|
|
+ });
|
|
|
+ return false;
|
|
|
+ }
|
|
|
this.dialogPaste = false;
|
|
|
let blob = this.$public.dataURItoBlob(this.pasteUrl)
|
|
|
let self = this;
|
|
|
@@ -1159,6 +1191,8 @@
|
|
|
// 释放内存
|
|
|
clipboard.destroy()
|
|
|
})
|
|
|
+
|
|
|
+
|
|
|
},
|
|
|
|
|
|
/****************访问信息和评价状态***************/
|
|
|
@@ -1195,6 +1229,7 @@
|
|
|
}
|
|
|
} else {
|
|
|
this.terminal_IP = {}
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
} else if (this.sessionType == 2) {
|
|
|
@@ -1297,6 +1332,8 @@
|
|
|
* 挂载前执行
|
|
|
*/
|
|
|
mounted() {
|
|
|
+ // console.log('来了',window.url_https_ajax);
|
|
|
+ // this.img_http = window.url_https_ajax;
|
|
|
//获取vuex里面数据
|
|
|
this.get_vuex_info();
|
|
|
let _this = this;
|
|
|
@@ -1332,7 +1369,6 @@
|
|
|
get_session_message(e) {
|
|
|
this.chatMessage(e)
|
|
|
},
|
|
|
-
|
|
|
// sessionList(e) {
|
|
|
// this.accessTerminal(e)
|
|
|
// },
|
|
|
@@ -1819,4 +1855,4 @@
|
|
|
text-align: center;
|
|
|
margin-top: 5px;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|