Commit 562ae39f by xinla

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

2 parents 9c270ad5 6969e744
......@@ -6,7 +6,7 @@ VUE_APP_BASE_API = 'http://146.56.222.200/api'
# VUE_APP_BASE_API = 'http://n3rpzt.natappfree.cc'
# 开发环境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
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
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 @@
<el-row style="padding:10px">
<el-col :span="3"> <img :src="item.receiveWeCustomer.avatar"></el-col>
<el-col :span="21">
<p>{{item.receiveWeCustomer.name}} <span class="fr gray">{{parseTime(item.finalChatContext.msgtime)}}</span></p>
<p class="gray padt10" v-if="item.finalChatContext.text">{{item.finalChatContext.text.content}}</p>
<!-- {{parseTime(item.finalChatContext.msgtime)}} <span class="fr gray"></span>-->
<p>{{item.receiveWeCustomer.name}} </p>
<!-- <p class="gray padt10" v-if="item.finalChatContext.text">{{item.finalChatContext.text.content}}</p> -->
</el-col>
</el-row>
</li>
......@@ -63,6 +64,7 @@
cursor: pointer;
p{white-space:nowrap;
overflow:hidden;
line-height: 40px;
text-overflow:ellipsis;}
:hover{ background: #efefef;}
img {
......
......@@ -98,7 +98,7 @@
</template>
</el-table-column>
<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>
</template>
......@@ -323,7 +323,6 @@
let querys = {
pageNum: '1',
pageSize: '999',
isActivate: '4',
department: data.id
}
api.getList(querys).then(({
......
......@@ -5,7 +5,7 @@
<div class="hd_box">
<div class="hd_name">客户列表({{employAmount}})</div>
<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>
</div>
</div>
......@@ -26,7 +26,7 @@
<div class="hd_box">
<div class="hd_name">{{talkName}}</div>
<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>
</div>
</div>
......@@ -107,7 +107,7 @@
</template>
</el-table-column>
<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>
</template>
......@@ -172,6 +172,7 @@
employAmount: 1,
employName: '',
talkName: '',
chatContent:"",
personIndex: '-1',
activeName: "0",
activeNameThree: '0',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!