Commit fc06369a by xinla

会话存档修改

1 parent c3dff32c
Showing 16 changed files with 266 additions and 238 deletions
import request from '@/utils/request' import request from '@/utils/request'
const getExternalChatList = (params) => {
// 外部联系人 会话列表
const getExternalChatList = (fromId) => {
return request({ return request({
url: '/chat/msg/selectExternalChatList/'+ params.fromId, url: '/chat/msg/selectExternalChatList/' + fromId,
method: 'get' method: 'get'
}) })
} }
// 单聊 会话列表
const selectAloneChatList = (params) => { const selectAloneChatList = (params) => {
return request({ return request({
url: '/chat/msg/selectAloneChatList\n/', url: '/chat/msg/selectAloneChatList',
method: 'get', method: 'get',
params params
}) })
} }
// 内部联系人列表
const getInternalChatList = (params) => { const getInternalChatList = (fromId) => {
return request({ return request({
url: '/chat/msg/selectInternalChatList/'+ params.fromId, url: '/chat/msg/selectInternalChatList/' + fromId,
method: 'get' method: 'get'
}) })
} }
const getGroupChatList = (params) => { const getGroupChatList = (fromId) => {
return request({ return request({
url: '/chat/msg/selectGroupChatList/'+ params.fromId, url: '/chat/msg/selectGroupChatList/' + fromId,
method: 'get' method: 'get'
}) })
} }
const chatList = (params) => { // const chatList = (params) => {
return request({ // return request({
url: '/chat/msg/list', // url: '/chat/msg/list',
method: 'get', // method: 'get',
params, // params
}) // })
} // }
const indexTable = () => { const indexTable = () => {
return request({ return request({
url: '/wecom/page/getCorpBasicData', url: '/wecom/page/getCorpBasicData',
...@@ -49,18 +53,22 @@ const indexEchart = () => { ...@@ -49,18 +53,22 @@ const indexEchart = () => {
}) })
} }
const listByCustomer = (params) => { // 全文检索 会话列表
export const getChatList = (params) => {
return request({ return request({
url: '/wecom/customer/list', url: '/chat/msg/selectFullSearchChatList',
method: 'get', method: 'get',
params, params
}) })
} }
const getFullSearchChatList = (params) => {
// 全文检索 导出列表
export const exportList = (params) => {
return request({ return request({
url: '/chat/msg/selectFullSearchChatList', url: '/chat/msg/selectFullSearchChatList/export',
method: 'get', method: 'get',
params, params
// responseType: 'blob'
}) })
} }
// //
...@@ -71,7 +79,8 @@ export const content = { ...@@ -71,7 +79,8 @@ export const content = {
selectAloneChatList, selectAloneChatList,
getInternalChatList, getInternalChatList,
getGroupChatList, getGroupChatList,
chatList, // chatList,
listByCustomer, getChatList
getFullSearchChatList
} }
export default content
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
<span v-if="chat.receiveWeCustomer"> <span v-if="chat.receiveWeCustomer">
与{{ chat.receiveWeCustomer.name }}的聊天</span 与{{ chat.receiveWeCustomer.name }}的聊天</span
> >
<span class="fr hd_nameRi">下载会话</span> <span class="fr hd_nameRi" @click="exportList()">下载会话</span>
</div> </div>
</div> </div>
<div class=" hd_tabthree"> <div class=" hd_tabthree">
...@@ -78,21 +78,22 @@ ...@@ -78,21 +78,22 @@
v-model="activeNameThree" v-model="activeNameThree"
@tab-click="activeNameThreeClick()" @tab-click="activeNameThreeClick()"
> >
<div class="date-range">
<el-date-picker
v-model="dateRange"
type="daterange"
format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
<el-tab-pane label="全部" name="0"> <el-tab-pane label="全部" name="0">
<div class="ct_box"> <div class="ct_box">
<div class="hds_time">
<el-date-picker
v-model="takeTime"
type="datetimerange"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
<chat <chat
:allChat="allChat" :allChat="allChat"
v-if="allChat && allChat.length >= 1" v-if="allChat && allChat.length >= 1"
...@@ -111,19 +112,6 @@ ...@@ -111,19 +112,6 @@
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="图片及视频" name="1"> <el-tab-pane label="图片及视频" name="1">
<div class="ct_box"> <div class="ct_box">
<div class="hds_time">
<el-date-picker
v-model="takeTime"
type="datetimerange"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
<chat <chat
:allChat="allChatImg" :allChat="allChatImg"
v-if="allChatImg && allChatImg.length >= 1" v-if="allChatImg && allChatImg.length >= 1"
...@@ -135,26 +123,13 @@ ...@@ -135,26 +123,13 @@
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@current-change="currentChange" @current-change="currentChange"
:current-page="currentPage" :current-page.sync="currentPage"
> >
</el-pagination> </el-pagination>
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="文件" name="2"> <el-tab-pane label="文件" name="2">
<div class="ct_box"> <div class="ct_box">
<div class="hds_time">
<el-date-picker
v-model="takeTime"
type="datetimerange"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
<el-table <el-table
:data="allFile" :data="allFile"
stripe stripe
...@@ -192,37 +167,10 @@ ...@@ -192,37 +167,10 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="链接" name="3"> <el-tab-pane label="链接" name="3">
<div class="ct_box"> <div class="ct_box"></div>
<div class="hds_time">
<el-date-picker
v-model="takeTime"
type="datetimerange"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
</div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="语音通话" name="4"> <el-tab-pane label="语音通话" name="4">
<div class="ct_box"> <div class="ct_box">
<div class="hds_time">
<el-date-picker
v-model="takeTime"
type="datetimerange"
format="yyyy-MM-dd"
range-separator="至"
start-placeholder="开始日期"
end-placeholder="结束日期"
align="right"
@change="activeNameThreeClick"
>
</el-date-picker>
</div>
<el-table <el-table
:data="allVoice" :data="allVoice"
stripe stripe
...@@ -265,13 +213,12 @@ ...@@ -265,13 +213,12 @@
</div> </div>
</template> </template>
<script> <script>
import list from '../component/list.vue' import list from './component/list.vue'
import chat from '../component/chat.vue' import chat from './component/chat.vue'
import insideList from '../component/insideList.vue' import insideList from './component/insideList.vue'
import grouplist from '../component/groupList.vue' import grouplist from './component/groupList.vue'
import * as api from '@/api/organization' import * as apiOrg from '@/api/organization'
import { content } from '@/api/conversation/content.js' import api from '@/api/conversation/content.js'
import { yearMouthDay, parseTime } from '@/utils/common.js'
export default { export default {
components: { components: {
...@@ -293,7 +240,7 @@ export default { ...@@ -293,7 +240,7 @@ export default {
}, },
activeName: '0', activeName: '0',
activeNameThree: '0', activeNameThree: '0',
takeTime: '', dateRange: [],
fileData: [], fileData: [],
chat: {}, chat: {},
...@@ -367,7 +314,7 @@ export default { ...@@ -367,7 +314,7 @@ export default {
this.activeNameThreeClick(true) this.activeNameThreeClick(true)
}, },
activeNameThreeClick(page, group) { activeNameThreeClick(page, group) {
console.log(this.chat.receiver, this.fromId, 'this.chat.id') // console.log(this.chat.receiver, this.fromId, 'this.chat.id')
if (!!!this.chat.receiver) { if (!!!this.chat.receiver) {
return //没有选择人 return //没有选择人
} }
...@@ -390,11 +337,16 @@ export default { ...@@ -390,11 +337,16 @@ export default {
let query = { let query = {
msgType, msgType,
pageSize: '10', pageSize: '10',
pageNum: this.currentPage, pageNum: this.currentPage
orderByColumn: 'msg_time', // orderByColumn: 'msg_time',
isAsc: 'asc', // isAsc: 'asc'
beginTime: this.takeTime ? yearMouthDay(this.takeTime[0]) : '', }
endTime: this.takeTime ? yearMouthDay(this.takeTime[1]) : '' if (this.dateRange) {
query.beginTime = this.dateRange[0]
query.endTime = this.dateRange[1]
} else {
query.beginTime = ''
query.endTime = ''
} }
if (this.activeName != '2') { if (this.activeName != '2') {
query.fromId = this.fromId query.fromId = this.fromId
...@@ -402,9 +354,10 @@ export default { ...@@ -402,9 +354,10 @@ export default {
} else { } else {
query.roomId = this.chat.receiver query.roomId = this.chat.receiver
} }
content.chatList(query).then((res) => { this.query = query
api.getChatList(query).then((res) => {
console.log(res.rows, 'ssss') console.log(res.rows, 'ssss')
this.total = Number(res.total) this.total = ~~res.total
this.resortData(res) this.resortData(res)
}) })
} }
...@@ -438,7 +391,7 @@ export default { ...@@ -438,7 +391,7 @@ export default {
this.activeNameThreeClick('', true) this.activeNameThreeClick('', true)
}, },
getTree() { getTree() {
api.getTree().then(({ data }) => { apiOrg.getTree().then(({ data }) => {
this.treeData = this.handleTree(data) this.treeData = this.handleTree(data)
this.handleNodeClick(this.treeData[0], true) this.handleNodeClick(this.treeData[0], true)
}) })
...@@ -452,10 +405,8 @@ export default { ...@@ -452,10 +405,8 @@ export default {
this.loading = true this.loading = true
} }
if (this.activeName == 0) { if (this.activeName == 0) {
content api
.getInternalChatList({ .getInternalChatList(this.fromId)
fromId: this.fromId
})
.then(({ data }) => { .then(({ data }) => {
this.loading = false this.loading = false
this.personList = data this.personList = data
...@@ -464,10 +415,8 @@ export default { ...@@ -464,10 +415,8 @@ export default {
this.loading = false this.loading = false
}) })
} else if (this.activeName == 1) { } else if (this.activeName == 1) {
content api
.getExternalChatList({ .getExternalChatList(this.fromId)
fromId: this.fromId
})
.then(({ data }) => { .then(({ data }) => {
this.loading = false this.loading = false
this.personList = data this.personList = data
...@@ -476,10 +425,8 @@ export default { ...@@ -476,10 +425,8 @@ export default {
this.loading = false this.loading = false
}) })
} else { } else {
content api
.getGroupChatList({ .getGroupChatList(this.fromId)
fromId: this.fromId
})
.then(({ data }) => { .then(({ data }) => {
this.loading = false this.loading = false
this.personList = data this.personList = data
...@@ -502,7 +449,7 @@ export default { ...@@ -502,7 +449,7 @@ export default {
pageSize: '999', pageSize: '999',
department: data.id department: data.id
} }
api.getList(querys).then(({ rows }) => { apiOrg.getList(querys).then(({ rows }) => {
this.$set(data, 'children', []) this.$set(data, 'children', [])
data.children = rows data.children = rows
...@@ -512,6 +459,20 @@ export default { ...@@ -512,6 +459,20 @@ export default {
this.fromId = data.userId this.fromId = data.userId
this.tabClick() this.tabClick()
} }
},
exportList() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
return api.exportList(this.query)
})
.then((response) => {
this.download(response.msg)
})
.catch(function() {})
} }
} }
} }
...@@ -577,15 +538,12 @@ export default { ...@@ -577,15 +538,12 @@ export default {
::-webkit-scrollbar { ::-webkit-scrollbar {
display: none; display: none;
} }
.hds_time {
text-align: left;
width: 100%;
padding: 10px 0;
}
} }
} }
.date-range {
padding: 10px;
background: #fff;
}
.pagination { .pagination {
padding: 10px 0; padding: 10px 0;
height: 30px; height: 30px;
......
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
</div> </div>
</template> </template>
<script> <script>
import employee from './page/employeeTest.vue' import employee from './employeeTest.vue'
import user from './page/userTest.vue' import user from './userTest.vue'
import role from './page/roleTest.vue' import role from './roleTest.vue'
export default { export default {
components: { employee, user, role }, components: { employee, user, role },
data() { data() {
......
<template> <template>
<div> <div>
<el-form :inline="true" :model="form" class="top-serach"> <el-form :inline="true" :model="query" class="top-serach">
<el-form-item label="员工名称"> <el-form-item label="员工名称">
<el-input v-model="form.Ename" placeholder="客户名称"></el-input> <el-input
v-model="query.userName"
clearable
placeholder="客户名称"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="客户名称"> <el-form-item label="客户名称">
<el-input v-model="form.Cname" placeholder="客户名称"></el-input> <el-input
v-model="query.customerName"
clearable
placeholder="客户名称"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="查找内容"> <el-form-item label="查找内容">
<el-input v-model="form.Scontent" placeholder="查找内容"></el-input> <el-input
v-model="query.contact"
clearable
placeholder="查找内容"
></el-input>
</el-form-item> </el-form-item>
<el-form-item label="时间范围"> <el-form-item label="时间范围">
<el-date-picker <el-date-picker
v-model="form.Stime" v-model="dateRange"
type="datetimerange" type="daterange"
format="yyyy-MM-dd" format="yyyy-MM-dd"
value-format="yyyy-MM-dd"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期" end-placeholder="结束日期"
align="right" align="right"
:picker-options="pickerOptions"
> >
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="init">查询</el-button> <el-button type="primary" @click="getList(1)">查询</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button>导出列表</el-button> <el-button @click="exportList()">导出列表</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div> <div>
...@@ -93,29 +107,30 @@ ...@@ -93,29 +107,30 @@
class="pagination" class="pagination"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@current-change="currentChange" @current-change="getList"
:current-page="currentPage" :current-page.sync="query.pageNum"
> >
</el-pagination> </el-pagination>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { content } from '@/api/conversation/content.js' import { getChatList, exportList } from '@/api/conversation/content.js'
import { yearMouthDay, parseTime } from '@/utils/common.js'
import ChatContent from '@/components/ChatContent' import ChatContent from '@/components/ChatContent'
export default { export default {
components: { ChatContent }, components: { ChatContent },
data() { data() {
return { return {
form: { query: {
Ename: '', userName: '',
Cname: '', customerName: '',
Scontent: '', contact: '',
Stime: '' beginTime: '',
endTime: '',
pageNum: 1,
pageSize: 10
}, },
currentPage: 1, dateRange: [],
total: 0, total: 0,
ac: '', ac: '',
fileData: [], fileData: [],
...@@ -141,36 +156,37 @@ export default { ...@@ -141,36 +156,37 @@ export default {
loading: false loading: false
} }
}, },
mounted() { created() {
this.init() this.getList()
}, },
methods: { methods: {
currentChange(e) { getList(page) {
this.currentPage = e if (this.dateRange) {
this.init(true) this.query.beginTime = this.dateRange[0]
}, this.query.endTime = this.dateRange[1]
init(flag) { } else {
this.loading = true this.query.beginTime = ''
if (!!!flag) { this.query.endTime = ''
this.currentPage = 1
}
let query = {
name: this.form.Ename,
customerName: this.form.Cname,
contact: this.form.Scontent,
beginTime: this.form.Stime ? yearMouthDay(this.form.Stime[0]) : '',
endTime: this.form.Stime ? yearMouthDay(this.form.Stime[1]) : '',
pageNum: this.currentPage,
pageSize: 10,
action: this.ac,
orderByColumn: 'msg_time',
isAsc: 'desc'
} }
content page && (this.query.pageNum = page)
.getFullSearchChatList(query) this.loading = true
// let query = {
// name: this.form.userName,
// customerName: this.form.customerName,
// contact: this.form.contact,
// beginTime: this.form.Stime ? yearMouthDay(this.form.Stime[0]) : '',
// endTime: this.form.Stime ? yearMouthDay(this.form.Stime[1]) : '',
// pageNum: this.query.pageNum,
// pageSize: 10,
// action: this.ac,
// orderByColumn: 'msg_time',
// isAsc: 'desc'
// }
getChatList(this.query)
.then((res) => { .then((res) => {
this.fileData = res.rows this.fileData = res.rows
this.total = Number(res.total) this.total = ~~res.total
this.loading = false this.loading = false
}) })
.catch(() => { .catch(() => {
...@@ -192,7 +208,7 @@ export default { ...@@ -192,7 +208,7 @@ export default {
this.ac = 'switch' this.ac = 'switch'
} }
console.log(e, this.ac) console.log(e, this.ac)
this.init() this.getList()
}, },
parseMesContent(data, type) { parseMesContent(data, type) {
let contact = JSON.parse(data) let contact = JSON.parse(data)
...@@ -202,6 +218,20 @@ export default { ...@@ -202,6 +218,20 @@ export default {
text: 'content' text: 'content'
} }
return contact[type] return contact[type]
},
exportList() {
this.$confirm('是否确认导出所有数据项?', '警告', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
return exportList(this.query)
})
.then((response) => {
this.download(response.msg)
})
.catch(function() {})
} }
} }
} }
......
...@@ -3,34 +3,49 @@ ...@@ -3,34 +3,49 @@
<el-row> <el-row>
<el-col :span="6" class="borderR"> <el-col :span="6" class="borderR">
<div class="hd_box"> <div class="hd_box">
<div class="hd_name">客户列表({{ employAmount }})</div> <div class="hd_name">客户列表({{ customerTotal }})</div>
<div class="paddingT10"> <div class="paddingT10">
<el-input <el-input
placeholder="搜索客户" placeholder="搜索客户"
prefix-icon="el-icon-search" prefix-icon="el-icon-search"
v-model="employName" v-model="customerQuery.name"
@keyup.enter.native="customerList" @keyup.enter.native="getCustomerList(1)"
> >
</el-input> </el-input>
</div> </div>
</div> </div>
<div class="ct_box ct_boxFirst" style="height: calc(100vh - 288px)"> <div v-loading="customerLoading" class="ct_box">
<ul> <ul v-infinite-scroll="getCustomerList" class="customer-wrap">
<li <el-row
v-for="(i, t) in CList" v-for="(item, t) in customerList"
:key="t" :key="t"
@click="personCheck(i, t)" tag="li"
@click.native="personCheck(item, t)"
class="customer-li"
:class="{ liActive: t == personIndex }" :class="{ liActive: t == personIndex }"
:gutter="20"
type="flex"
align="middle"
> >
<el-row :gutter="20" style=" padding: 10px 0;margin:0"> <el-col :span="4">
<el-col :span="4"> <img v-if="item.avatar" :src="item.avatar" alt="头像" />
<img v-if="i.avatar" :src="i.avatar" alt="头像" /> </el-col>
</el-col> <el-col :span="10" v-if="item" class="toe">
<el-col :span="20" v-if="i" <span style="line-height:40px">{{ item.name }}</span>
><span style="line-height:40px">{{ i.name }}</span></el-col </el-col>
> <el-col :span="10" class="ar">
</el-row> <span
</li> :style="{ color: item.type === 1 ? '#4bde03' : '#f9a90b' }"
>{{ { 1: '@微信', 2: '@企业微信' }[item.type] }}
</span>
<i
:class="[
'el-icon-s-custom',
{ 1: 'man', 2: 'woman' }[item.gender]
]"
></i>
</el-col>
</el-row>
</ul> </ul>
</div> </div>
</el-col> </el-col>
...@@ -246,11 +261,12 @@ ...@@ -246,11 +261,12 @@
</div> </div>
</template> </template>
<script> <script>
import list from '../component/customerList.vue' import list from './component/customerList.vue'
import chats from '../component/chat.vue' import chats from './component/chat.vue'
import grouplist from '../component/groupList.vue' import grouplist from './component/groupList.vue'
import { content } from '@/api/conversation/content.js' import api from '@/api/conversation/content.js'
import * as apiCustomer from '@/api/customer/index'
import { yearMouthDay } from '@/utils/common.js' import { yearMouthDay } from '@/utils/common.js'
export default { export default {
components: { components: {
...@@ -260,8 +276,14 @@ export default { ...@@ -260,8 +276,14 @@ export default {
}, },
data() { data() {
return { return {
employAmount: 1, customerLoading: false,
employName: '', customerQuery: {
pageNum: 1,
pageSize: 10,
name: ''
},
customerList: [],
customerTotal: 0,
talkName: '', talkName: '',
chatContent: '', chatContent: '',
personIndex: '-1', personIndex: '-1',
...@@ -269,7 +291,6 @@ export default { ...@@ -269,7 +291,6 @@ export default {
activeNameThree: '0', activeNameThree: '0',
takeTime: '', takeTime: '',
fileData: [], fileData: [],
CList: [],
personList: [], personList: [],
loading: false, loading: false,
fromId: '', fromId: '',
...@@ -285,7 +306,9 @@ export default { ...@@ -285,7 +306,9 @@ export default {
total: 0 total: 0
} }
}, },
created() {
// this.customerList()
},
methods: { methods: {
chatFn(data) { chatFn(data) {
this.chatData = data this.chatData = data
...@@ -318,7 +341,7 @@ export default { ...@@ -318,7 +341,7 @@ export default {
} }
this.personList = [] this.personList = []
if (this.activeName == '0') { if (this.activeName == '0') {
content api
.selectAloneChatList({ .selectAloneChatList({
fromId: this.fromId, fromId: this.fromId,
contact: this.chatContent contact: this.chatContent
...@@ -331,7 +354,7 @@ export default { ...@@ -331,7 +354,7 @@ export default {
this.loading = false this.loading = false
}) })
} else { } else {
content api
.getGroupChatList({ .getGroupChatList({
fromId: this.fromId fromId: this.fromId
}) })
...@@ -375,12 +398,12 @@ export default { ...@@ -375,12 +398,12 @@ export default {
query.toList = this.chatData.receiver query.toList = this.chatData.receiver
} }
if (group) { if (group) {
content.chatList(query).then((res) => { api.getChatList(query).then((res) => {
this.total = Number(res.total) this.total = Number(res.total)
this.resortData(res) this.resortData(res)
}) })
} else { } else {
content.chatList(query).then((res) => { api.getChatList(query).then((res) => {
this.total = Number(res.total) this.total = Number(res.total)
this.resortData(res) this.resortData(res)
}) })
...@@ -403,25 +426,23 @@ export default { ...@@ -403,25 +426,23 @@ export default {
return (this.allVoice = res.rows) return (this.allVoice = res.rows)
} }
}, },
customerList() { getCustomerList(page) {
let querys = { this.customerLoading = true
pageNum: 1, if (page) {
pageSize: 999, this.customerQuery.pageNum = page
name: this.employName, this.customerList = []
isOpenChat: '1'
} }
content.listByCustomer(querys).then((res) => { page && (this.customerQuery.pageNum = page)
console.log(res, 'rows') apiCustomer.getList(this.customerQuery).then((res) => {
this.CList = res.rows this.customerList.push(...res.rows)
this.employAmount = res.total this.customerTotal = ~~res.total
this.customerQuery.pageNum++
this.customerLoading = false
}) })
}, },
chatMsgList() { chatMsgList() {
this.getChatList() this.getChatList()
} }
},
mounted() {
this.customerList()
} }
} }
</script> </script>
...@@ -469,32 +490,30 @@ export default { ...@@ -469,32 +490,30 @@ export default {
cursor: pointer; cursor: pointer;
} }
.ct_boxFirst { .customer-wrap {
} position: relative;
height: calc(100vh - 288px);
.ct_box {
background: white; background: white;
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
padding: 10px;
overflow-y: scroll; overflow-y: scroll;
color: #999; color: #999;
text-align: center; text-align: center;
.customer-li {
::-webkit-scrollbar { padding: 10px;
display: none;
} }
}
ul { .ct_box {
margin: 0; // ::-webkit-scrollbar {
padding: 0; // display: none;
} // }
ul li { ul li {
text-align: left; text-align: left;
cursor: pointer; cursor: pointer;
border-bottom: 1px solid #efefef; border-bottom: 1px solid #efefef;
:hover { &:hover {
background: #efefef; background: #efefef;
} }
...@@ -504,8 +523,8 @@ export default { ...@@ -504,8 +523,8 @@ export default {
} }
.liActive { .liActive {
background: lightblue !important; background: #e2e2e2 !important;
color: #199ed8; // color: #fff;
} }
.hds_time { .hds_time {
...@@ -521,4 +540,16 @@ export default { ...@@ -521,4 +540,16 @@ export default {
height: 30px; height: 30px;
float: left; float: left;
} }
.el-icon-s-custom {
font-size: 16px;
margin-left: 4px;
color: #999;
&.man {
color: #13a2e8;
}
&.woman {
color: #f753b2;
}
}
</style> </style>
...@@ -14,9 +14,9 @@ ...@@ -14,9 +14,9 @@
</div> </div>
</template> </template>
<script> <script>
import alarmingSensitive from './securityPage/alarmingSensitive.vue' import alarmingSensitive from './alarmingSensitive.vue'
import sensitiveList from './securityPage/sensitiveList.vue' import sensitiveList from './sensitiveList.vue'
import setSensitiveWord from './securityPage/setSensitiveWord' import setSensitiveWord from './setSensitiveWord'
export default { export default {
components: { components: {
sensitiveList, sensitiveList,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!