|
|
@@ -45,8 +45,8 @@
|
|
|
<el-table-column prop="add_time" width="160" label="留言时间" ></el-table-column>
|
|
|
<el-table-column prop="content" label="留言内容">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-popover trigger="hover" placement="top">
|
|
|
- <p>{{ scope.row.content }}</p>
|
|
|
+ <el-popover width="800" trigger="hover" placement="top">
|
|
|
+ <p >{{ scope.row.content }}</p>
|
|
|
<div slot="reference" class="name-wrapper">
|
|
|
<el-tag size="medium">{{ scope.row.content }}</el-tag>
|
|
|
</div>
|
|
|
@@ -112,7 +112,8 @@
|
|
|
<el-col class="serive">
|
|
|
<el-input class="serive_text" resize="none" type="textarea"
|
|
|
@blur="widthCheck($event.target, 100)" placeholder="请回复用户留言"
|
|
|
- v-model="leaveInfor"></el-input>
|
|
|
+ maxlength="120" show-word-limit
|
|
|
+ v-model.trim="leaveInfor"></el-input>
|
|
|
</el-col>
|
|
|
<el-col>
|
|
|
<el-upload style="margin:10px;"
|
|
|
@@ -344,27 +345,30 @@
|
|
|
},
|
|
|
//提交留言
|
|
|
sendMessage() {
|
|
|
- // if(!this.isSendMessage) return false;
|
|
|
- this.isUpImg = true;
|
|
|
- this.$refs.upload.submit();
|
|
|
-
|
|
|
- this.isSendMessage = false;
|
|
|
- setTimeout(()=>{
|
|
|
- let parmas = {
|
|
|
- "user_id":this.users.id,
|
|
|
- "message_id":this.uid,
|
|
|
- "reply_content":this.leaveInfor,
|
|
|
- "images":this.imgUrl,
|
|
|
- }
|
|
|
- this.post('/api/service/Message/dealmessage', parmas).then(res => {
|
|
|
- this.$message.success(res.data.msg);
|
|
|
- this.leaveInfor = '';
|
|
|
- this.drawer = false;
|
|
|
- this.getSessionList(1)
|
|
|
- this.$refs.upload.clearFiles();
|
|
|
- this.fileList =[];
|
|
|
- })
|
|
|
- },1500)
|
|
|
+ if(this.leaveInfor){
|
|
|
+ this.isUpImg = true;
|
|
|
+ this.$refs.upload.submit();
|
|
|
+
|
|
|
+ this.isSendMessage = false;
|
|
|
+ setTimeout(()=>{
|
|
|
+ let parmas = {
|
|
|
+ "user_id":this.users.id,
|
|
|
+ "message_id":this.uid,
|
|
|
+ "reply_content":this.leaveInfor,
|
|
|
+ "images":this.imgUrl,
|
|
|
+ }
|
|
|
+ this.post('/api/service/Message/dealmessage', parmas).then(res => {
|
|
|
+ this.$message.success(res.data.msg);
|
|
|
+ this.leaveInfor = '';
|
|
|
+ this.drawer = false;
|
|
|
+ this.getSessionList(1)
|
|
|
+ this.$refs.upload.clearFiles();
|
|
|
+ this.fileList =[];
|
|
|
+ })
|
|
|
+ },1500)
|
|
|
+ }else{
|
|
|
+ this.$message.error(`请输入留言信息`);
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
/*****************获取当前聊天用户信息****************/
|
|
|
@@ -519,14 +523,10 @@
|
|
|
margin-top: 20px;
|
|
|
background: #F5F5F5;
|
|
|
border: 1px solid #EEEEEE;
|
|
|
- padding: 20px;
|
|
|
+ // padding: 20px;
|
|
|
font-size: 14px;
|
|
|
color: #666;
|
|
|
- .el-textarea__inner {
|
|
|
- border: none;
|
|
|
- resize: none;
|
|
|
- height: 300px;
|
|
|
- }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|