|
@@ -113,7 +113,33 @@
|
|
|
<div class="name">快捷回复</div>
|
|
<div class="name">快捷回复</div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
-
|
|
|
|
|
|
|
+ <div class="quick-table">
|
|
|
|
|
+ <div class="quick-search">
|
|
|
|
|
+ <div class="search-input">
|
|
|
|
|
+ <el-input placeholder="搜索一下..." style="width: 100%;" />
|
|
|
|
|
+ <el-button>搜索</el-button>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="search-btn-txt"><el-button type="primary" @click="addQuick">添加</el-button></div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="quick-table-body">
|
|
|
|
|
+ <el-table :data="quickData.list" style="width: 100%" max-height="250" border>
|
|
|
|
|
+ <el-table-column prop="content" label="内容"></el-table-column>
|
|
|
|
|
+ <el-table-column prop="content" label="操作" width="80">
|
|
|
|
|
+ <template #default="scope">
|
|
|
|
|
+ <el-button size="small" @click="table_view(scope.row)">发送</el-button>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
|
|
+ </el-table>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="quick-page">
|
|
|
|
|
+ <el-pagination
|
|
|
|
|
+ small
|
|
|
|
|
+ background
|
|
|
|
|
+ layout="prev, pager, next"
|
|
|
|
|
+ :total="quickData.total"
|
|
|
|
|
+ />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
</el-popover>
|
|
</el-popover>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="emoji-item">
|
|
<!-- <div class="emoji-item">
|
|
@@ -186,6 +212,7 @@
|
|
|
</el-container>
|
|
</el-container>
|
|
|
</el-drawer>
|
|
</el-drawer>
|
|
|
<orderDetail ref="orderDetail" @success="orderSuccess"></orderDetail>
|
|
<orderDetail ref="orderDetail" @success="orderSuccess"></orderDetail>
|
|
|
|
|
+ <quickTxt ref="quickTxt" @success="orderSuccess"></quickTxt>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
@@ -203,12 +230,14 @@ import {
|
|
|
to as tofn
|
|
to as tofn
|
|
|
} from '@/util/index.js';
|
|
} from '@/util/index.js';
|
|
|
import orderDetail from '@/components/imFloat/order';
|
|
import orderDetail from '@/components/imFloat/order';
|
|
|
|
|
+import quickTxt from '@/components/imFloat/quickTxt';
|
|
|
let imageList = [];
|
|
let imageList = [];
|
|
|
export default {
|
|
export default {
|
|
|
name: 'GlobalIM',
|
|
name: 'GlobalIM',
|
|
|
components:{
|
|
components:{
|
|
|
item,
|
|
item,
|
|
|
- orderDetail
|
|
|
|
|
|
|
+ orderDetail,
|
|
|
|
|
+ quickTxt
|
|
|
},
|
|
},
|
|
|
props: {
|
|
props: {
|
|
|
user: { type: Object, default: () => {} }
|
|
user: { type: Object, default: () => {} }
|
|
@@ -261,7 +290,14 @@ export default {
|
|
|
sendId:null,
|
|
sendId:null,
|
|
|
myid: this.user.userId,
|
|
myid: this.user.userId,
|
|
|
userId:null,
|
|
userId:null,
|
|
|
- isSaveing:false
|
|
|
|
|
|
|
+ isSaveing:false,
|
|
|
|
|
+ quickData:{
|
|
|
|
|
+ page:1,
|
|
|
|
|
+ size:10,
|
|
|
|
|
+ list:[],
|
|
|
|
|
+ popState:false,
|
|
|
|
|
+ total:0
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -306,6 +342,11 @@ export default {
|
|
|
this.$refs.messageListRef.removeEventListener('scroll', this.handleScroll)
|
|
this.$refs.messageListRef.removeEventListener('scroll', this.handleScroll)
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ addQuick(){
|
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
|
+ this.$refs.quickTxt.open("add")
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
handleClick(event){
|
|
handleClick(event){
|
|
|
this.activeName = event;
|
|
this.activeName = event;
|
|
|
// this.getConfig();
|
|
// this.getConfig();
|
|
@@ -319,7 +360,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async submitPrice(){
|
|
async submitPrice(){
|
|
|
- var { priceForm,message } = this;
|
|
|
|
|
|
|
+ var { priceForm,$message } = this;
|
|
|
var validate = await this.$refs.priceForm.validate().catch(()=>{});
|
|
var validate = await this.$refs.priceForm.validate().catch(()=>{});
|
|
|
if(!validate){ return false }
|
|
if(!validate){ return false }
|
|
|
this.isSaveing = true;
|
|
this.isSaveing = true;
|
|
@@ -738,6 +779,10 @@ export default {
|
|
|
|
|
|
|
|
<style scoped lang="scss">
|
|
<style scoped lang="scss">
|
|
|
@import '@/style/index.scss';
|
|
@import '@/style/index.scss';
|
|
|
|
|
+.quick-search{display: flex;align-items: center;justify-content: space-between;gap: 10px;}
|
|
|
|
|
+.quick-search .search-input{flex: 1;display: flex;align-items: center;gap: 5px;}
|
|
|
|
|
+.quick-search .search-btn-txt{font-size: 14px;color: #409eff;cursor: pointer;}
|
|
|
|
|
+.quick-table .quick-table-body{margin: 10px 0;}
|
|
|
.border-none{border: 0;}
|
|
.border-none{border: 0;}
|
|
|
.msg-title{font-size: 18px;font-weight: bold;}
|
|
.msg-title{font-size: 18px;font-weight: bold;}
|
|
|
.loading-text{background-color: #f8f8f8;text-align: center;font-size: 12px;}
|
|
.loading-text{background-color: #f8f8f8;text-align: center;font-size: 12px;}
|