Commit 701ffb91 by xinla

Merge branch 'front_end_dev' of https://gitee.com/LinkWeChat/link-wechat into front_end_dev

2 parents ceb19374 daaf8ab3
...@@ -6,7 +6,7 @@ VUE_APP_BASE_API = 'http://146.56.222.200/api' ...@@ -6,7 +6,7 @@ VUE_APP_BASE_API = 'http://146.56.222.200/api'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc' # VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境IP # 开发环境IP
VUE_APP_BASE_URL = 'http://192.168.0.101' VUE_APP_BASE_URL = 'http://146.56.222.200:8090'
# 路由懒加载 # 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true VUE_CLI_BABEL_TRANSPILE_MODULES = true
import request from '@/utils/request' import request from '@/utils/request'
const getTree=(params)=>{
return request({
url:'/chat/mapping/list',
method: 'get',
params,
})
}
const chatList=(params)=>{
return request({
url:'/wecom/finance/getChatContactList',
method: 'get',
params,
})
}
const chatGrounpList=(params)=>{
return request({
url:'/wecom/finance/getChatRoomContactList',
method: 'get',
params,
})
}
const listByCustomer=(params)=>{
return request({
url:'/wecom/customer/list',
method: 'get',
params,
})
}
const getChatAllList=(params)=>{
return request({
url:'/wecom/finance/getChatAllList',
method: 'get',
params,
})
}
//
export const content={
getTree,
chatList,
listByCustomer,
getChatAllList,
chatGrounpList
}
\ No newline at end of file \ No newline at end of file
const getTree = (params) => {
return request({
url: '/chat/mapping/list',
method: 'get',
params,
})
}
const chatList = (params) => {
return request({
url: '/wecom/finance/getChatContactList',
method: 'get',
params,
})
}
const indexTable = () => {
return request({
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',
params,
})
}
const listByCustomer = (params) => {
return request({
url: '/wecom/customer/list',
method: 'get',
params,
})
}
const getChatAllList = (params) => {
return request({
url: '/wecom/finance/getChatAllList',
method: 'get',
params,
})
}
//
export const content = {
indexEchart,
indexTable,
getTree,
chatList,
listByCustomer,
getChatAllList,
chatGrounpList
}
...@@ -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!