Commit 2a166114 by qiyeqing

commit

1 parent 41b1c321
import request from '@/utils/request' import request from '@/utils/request'
const getTree=(params)=>{ const getTree = (params) => {
return request({ return request({
url:'/chat/mapping/list', url: '/chat/mapping/list',
method: 'get', method: 'get',
params, params,
}) })
} }
const chatList=(params)=>{ const chatList = (params) => {
return request({ return request({
url:'/wecom/finance/getChatContactList', url: '/wecom/finance/getChatContactList',
method: 'get', method: 'get',
params, params,
}) })
} }
const chatGrounpList=(params)=>{ const indexTable = () => {
return request({ return request({
url:'/wecom/finance/getChatRoomContactList', url: '/wecom/page/getCorpBasicData',
method: 'get'
})
}
const indexEchart = () => {
return request({
url: '/wecom/page/getCorpRealTimeData',
method: 'get'
})
}
//
const chatGrounpList = (params) => {
return request({
url: '/wecom/finance/getChatRoomContactList',
method: 'get', method: 'get',
params, params,
}) })
} }
const listByCustomer=(params)=>{ const listByCustomer = (params) => {
return request({ return request({
url:'/wecom/customer/list', url: '/wecom/customer/list',
method: 'get', method: 'get',
params, params,
}) })
} }
const getChatAllList=(params)=>{ const getChatAllList = (params) => {
return request({ return request({
url:'/wecom/finance/getChatAllList', url: '/wecom/finance/getChatAllList',
method: 'get', method: 'get',
params, params,
}) })
} }
// //
export const content={ export const content = {
indexEchart,
indexTable,
getTree, getTree,
chatList, chatList,
listByCustomer, listByCustomer,
getChatAllList, getChatAllList,
chatGrounpList chatGrounpList
}
\ No newline at end of file \ No newline at end of file
}
...@@ -6,8 +6,9 @@ ...@@ -6,8 +6,9 @@
<el-row style="padding:10px"> <el-row style="padding:10px">
<el-col :span="3"> <img :src="item.receiveWeCustomer.avatar"></el-col> <el-col :span="3"> <img :src="item.receiveWeCustomer.avatar"></el-col>
<el-col :span="21"> <el-col :span="21">
<p>{{item.receiveWeCustomer.name}} <span class="fr gray">{{parseTime(item.finalChatContext.msgtime)}}</span></p> <!-- {{parseTime(item.finalChatContext.msgtime)}} <span class="fr gray"></span>-->
<p class="gray padt10" v-if="item.finalChatContext.text">{{item.finalChatContext.text.content}}</p> <p>{{item.receiveWeCustomer.name}} </p>
<!-- <p class="gray padt10" v-if="item.finalChatContext.text">{{item.finalChatContext.text.content}}</p> -->
</el-col> </el-col>
</el-row> </el-row>
</li> </li>
...@@ -63,6 +64,7 @@ ...@@ -63,6 +64,7 @@
cursor: pointer; cursor: pointer;
p{white-space:nowrap; p{white-space:nowrap;
overflow:hidden; overflow:hidden;
line-height: 40px;
text-overflow:ellipsis;} text-overflow:ellipsis;}
:hover{ background: #efefef;} :hover{ background: #efefef;}
img { img {
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="action" label="操作"> <el-table-column prop="action" label="操作">
<template slot-scope="scope"> <template >
<el-button type="text" size="small">下载</el-button> <el-button type="text" size="small">下载</el-button>
<el-button type="text" size="small">查看</el-button> <el-button type="text" size="small">查看</el-button>
</template> </template>
...@@ -323,7 +323,6 @@ ...@@ -323,7 +323,6 @@
let querys = { let querys = {
pageNum: '1', pageNum: '1',
pageSize: '999', pageSize: '999',
isActivate: '4',
department: data.id department: data.id
} }
api.getList(querys).then(({ api.getList(querys).then(({
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="hd_box"> <div class="hd_box">
<div class="hd_name">客户列表({{employAmount}})</div> <div class="hd_name">客户列表({{employAmount}})</div>
<div class="paddingT10"> <div class="paddingT10">
<el-input placeholder="搜索客户" prefix-icon="el-icon-search" v-model="employName"> <el-input placeholder="搜索客户" prefix-icon="el-icon-search" v-model="employName" @keyup.enter.native="customerList" >
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="hd_box"> <div class="hd_box">
<div class="hd_name">{{talkName}}</div> <div class="hd_name">{{talkName}}</div>
<div class="paddingT10"> <div class="paddingT10">
<el-input placeholder="搜索聊天记录" prefix-icon="el-icon-search" v-model="employName"> <el-input placeholder="搜索聊天记录" prefix-icon="el-icon-search" v-model="chatContent">
</el-input> </el-input>
</div> </div>
</div> </div>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="action" label="操作"> <el-table-column prop="action" label="操作">
<template slot-scope="scope"> <template >
<el-button type="text" size="small">下载</el-button> <el-button type="text" size="small">下载</el-button>
<el-button type="text" size="small">查看</el-button> <el-button type="text" size="small">查看</el-button>
</template> </template>
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
employAmount: 1, employAmount: 1,
employName: '', employName: '',
talkName: '', talkName: '',
chatContent:"",
personIndex: '-1', personIndex: '-1',
activeName: "0", activeName: "0",
activeNameThree: '0', activeNameThree: '0',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!