Commit f81692bf by xinla

Merge remote-tracking branch 'origin/front_end_dev_1.5'

2 parents 5bd0a8c9 4d62d425
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'
# 塬微管理系统/开发环境 # 基础api(根据实际情况,自行配置,下为示例)
VUE_APP_BASE_API = 'http://146.56.222.200/api' VUE_APP_BASE_API = 'http://demo.linkwechat.cn'
# VUE_APP_BASE_API = 'http://3x2d6z.natappfree.cc'
# 开发环境IP
VUE_APP_BASE_URL = 'http://192.168.0.101'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'
# 塬微管理系统/生产环境api # 基础api
# VUE_APP_BASE_API = 'http://106.13.201.219' VUE_APP_BASE_API = 'http://demo.linkwechat.cn'
VUE_APP_BASE_API = 'http://146.56.222.200/api'
# 生产环境IP # 路由基础路径
# VUE_APP_BASE_URL = 'http://106.13.201.219' VUE_APP_BASE_URL = '/'
VUE_APP_BASE_URL = 'http://146.56.222.200/api'
\ No newline at end of file \ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
"core-js": "^3.6.5", "core-js": "^3.6.5",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"vant": "^2.12.2", "vant": "^2.12.2",
"vconsole": "^3.4.0", "vconsole": "^3.9.1",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-router": "^3.2.0", "vue-router": "^3.2.0",
"vuex": "^3.4.0" "vuex": "^3.4.0"
......
...@@ -3,10 +3,13 @@ ...@@ -3,10 +3,13 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1, user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title>
<%= htmlWebpackPlugin.options.title %>
</title>
<script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script> <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
</head> </head>
...@@ -14,7 +17,7 @@ ...@@ -14,7 +17,7 @@
<body> <body>
<noscript> <noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled.
Please enable it to continue.</strong> Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
......
...@@ -7,11 +7,10 @@ ...@@ -7,11 +7,10 @@
loading-text="上划加载更多" loading-text="上划加载更多"
> >
<van-cell v-for="(item, index) in wList" :key="index"> <van-cell v-for="(item, index) in wList" :key="index">
<!-- {{item[0].createDate}} -->
<!-- 时间 --> <!-- 时间 -->
<p class="f12" style="position:relative; "> <p class="f12" style="position:relative; ">
{{ getTime1(item[0].createDate) }} {{ dateFormat(item[0].createTime, 'yyyy-MM-dd') }}
{{ getTime3(getTime1(item[0].createDate)) }} {{ dateFormat(item[0].createTime, 'ww') }}
<!-- {{item1.trajectoryType}} --> <!-- {{item1.trajectoryType}} -->
</p> </p>
<!-- <van-cell> --> <!-- <van-cell> -->
...@@ -24,7 +23,7 @@ ...@@ -24,7 +23,7 @@
> >
<van-step class="msg"> <van-step class="msg">
<span class="f12 po"> <span class="f12 po">
{{ getTime2(getTime1(item1.createDate)) }}</span {{ dateFormat(item[0].createTime, 'hh:mm') }}</span
> >
<span class="fs14">{{ chargeType(item1.trajectoryType) }}</span> <span class="fs14">{{ chargeType(item1.trajectoryType) }}</span>
<span class="finish-box"> <span class="finish-box">
...@@ -47,13 +46,14 @@ ...@@ -47,13 +46,14 @@
</van-step> --> </van-step> -->
</van-steps> </van-steps>
</van-cell> </van-cell>
<van-divider /> <!-- <van-divider /> -->
</van-list> </van-list>
</div> </div>
</template> </template>
<script> <script>
import { removeTrajectory, handleWait } from '@/api/portrait' import { removeTrajectory, handleWait } from '@/api/portrait'
import { dateFormat } from '@/utils'
export default { export default {
props: ['stepList'], props: ['stepList'],
inject: ['reload'], inject: ['reload'],
...@@ -63,9 +63,6 @@ export default { ...@@ -63,9 +63,6 @@ export default {
active: -1, active: -1,
// 轨迹外层按时间 // 轨迹外层按时间
wlist: [], wlist: [],
// 轨迹内层
nlist: [],
oldele: [],
content: '', content: '',
type: 0, type: 0,
wList: [], wList: [],
...@@ -76,54 +73,49 @@ export default { ...@@ -76,54 +73,49 @@ export default {
watch: { watch: {
stepList(newVal, oldVal) { stepList(newVal, oldVal) {
// console.log(newVal, oldVal); // console.log(newVal, oldVal);
if (newVal != oldVal) { this.wList = []
// debugger let dayList = []
this.wlist = []
this.wList = []
this.oldele = []
this.nlist = []
}
newVal.forEach((ele) => { newVal.forEach((ele) => {
this.oldele.push(parseInt(this.getTime(ele.createDate))) let date = this.dateFormat(ele.createTime, 'yyyyMMdd')
// console.log(parseInt(this.getTime(ele.createDate))); dayList.includes(date) || dayList.push(date)
}) })
// console.log(this.oldele); dayList.sort((a, b) => b - a)
this.oldele = this.newArr(this.oldele).sort(this.f) for (let i = 0; i < dayList.length; i++) {
// console.log(this.oldele); let timeList = []
for (let i = 0; i < this.oldele.length; i++) {
for (let j = 0; j < newVal.length; j++) { for (let j = 0; j < newVal.length; j++) {
// console.log(newVal[j].createDate); // console.log(newVal[j].createTime);
if (this.oldele[i] == this.getTime(newVal[j].createDate)) { if (dayList[i] == this.dateFormat(newVal[j].createTime, 'yyyyMMdd')) {
this.nlist.push(newVal[j]) timeList.push(newVal[j])
// console.log(this.nlist);
} }
} }
this.wlist.push(this.nlist) this.wList.push(timeList)
this.nlist = []
} }
this.loading = false
this.finished = true
// console.log(this.wlist); // console.log(this.wlist);
this.onLoad() // this.onLoad()
} }
}, },
methods: { methods: {
onLoad() { onLoad() {
// 异步更新数据 // // 异步更新数据
// setTimeout 仅做示例,真实场景中一般为 ajax 请求 // // setTimeout 仅做示例,真实场景中一般为 ajax 请求
setTimeout(() => { // setTimeout(() => {
// debugger // // debugger
let total = this.wlist.length > 10 ? 10 : this.wlist.length // let total = this.wlist.length > 10 ? 10 : this.wlist.length
for (let i = 0; i < total; i++) { // for (let i = 0; i < total; i++) {
this.wList.push(this.wlist[i]) // this.wList.push(this.wlist[i])
} // }
// 加载状态结束 // console.log(this.wList)
this.loading = false // // 加载状态结束
// this.loading = false
// 数据全部加载完成 // // 数据全部加载完成
if (this.wList.length >= this.wlist.length) { // if (this.wList.length >= this.wlist.length) {
this.finished = true // this.finished = true
} // }
}, 1000) // }, 1000)
}, },
// 根据数字判断类型 // 根据数字判断类型
chargeType(num) { chargeType(num) {
...@@ -137,85 +129,34 @@ export default { ...@@ -137,85 +129,34 @@ export default {
return (this.type = '待办动态') return (this.type = '待办动态')
} }
}, },
// 数组去重 dateFormat(data, format) {
newArr(arr) { return dateFormat(new Date(data), format)
return Array.from(new Set(arr))
},
// 数组由大到小排序
f(a, b) {
//排序函数
return -(a - b) //取反并返回比较参数
},
// 时间处理器
getTime(data) {
const date = new Date(data)
// console.log(timer.getFullYear());
var Y = date.getFullYear()
var M =
date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1
var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
return Y + M + D
},
getTime1(data) {
const date = new Date(data)
// console.log(timer.getFullYear());
var Y = date.getFullYear() + '-'
var M =
(date.getMonth() + 1 < 10
? '0' + (date.getMonth() + 1)
: date.getMonth() + 1) + '-'
var D = date.getDate() < 10 ? '0' + date.getDate() : date.getDate()
return Y + M + D
},
getTime2(data) {
const date = new Date(data)
// console.log(timer.getFullYear());
var h =
(date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':'
var m =
date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()
return h + m
},
// 处理星期几
getTime3(time) {
var dateArray = time.split('-')
var date = new Date(
dateArray[0],
parseInt(dateArray[1] - 1),
dateArray[2]
)
var week = '星期' + '日一二三四五六'.charAt(date.getDay())
return week
}, },
// 删除轨迹 // 删除轨迹
delDynamic(id) { delDynamic(id) {
removeTrajectory(id) this.$dialog
.confirm({
title: '警告',
message: '确定要删除吗?'
})
.then(() => {
return removeTrajectory(id)
})
.then((data) => { .then((data) => {
// console.log(data.code); this.$toast.success('删除成功')
if (data.code == 200) { // 重新获取全部数据
// 提示删除成功 this.$emit('reload')
// this.msgSuccess("删除成功");
// debugger
// location.reload();
this.$toast.success('删除成功')
this.reload()
// 重新获取全部数据
}
}) })
.catch((err) => { .catch(() => {
console.log(err) // on cancel
}) })
}, },
// 点击完成 // 点击完成
finDynamic(id) { finDynamic(id) {
handleWait(id) handleWait(id)
.then((data) => { .then((data) => {
if (data.code == 200) { this.$emit('reload')
// this.delDynamic(id);
this.reload()
}
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
...@@ -250,17 +191,15 @@ export default { ...@@ -250,17 +191,15 @@ export default {
color: #9c9c9c; color: #9c9c9c;
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
margin-right: 16px;
} }
.con { .con {
left: 51px; left: 51px;
margin-top: 20px; margin-top: 20px;
} }
.finish-box { .finish-box {
display: inline-block; float: right;
position: relative; position: relative;
left: 100px; width: 80px;
width: 25%;
} }
.finish { .finish {
position: absolute; position: absolute;
......
...@@ -310,18 +310,6 @@ ais { ...@@ -310,18 +310,6 @@ ais {
.pt5 { .pt5 {
padding-top: 5px; padding-top: 5px;
} }
.pb5 {
padding-bottom: 5px;
}
.pt10 {
padding-top: 10px;
}
.pt15 {
padding-top: 15px;
}
.pt20 {
padding-top: 20px;
}
.pr5 { .pr5 {
padding-right: 5px; padding-right: 5px;
...@@ -335,6 +323,16 @@ ais { ...@@ -335,6 +323,16 @@ ais {
padding-left: 5px; padding-left: 5px;
} }
.pt10 {
padding-top: 10px;
}
.pt15 {
padding-top: 15px;
}
.pt20 {
padding-top: 20px;
}
.mt5 { .mt5 {
margin-top: 5px; margin-top: 5px;
} }
...@@ -347,14 +345,14 @@ ais { ...@@ -347,14 +345,14 @@ ais {
margin-bottom: 5px; margin-bottom: 5px;
} }
.mb8 {
margin-bottom: 8px;
}
.ml5 { .ml5 {
margin-left: 5px; margin-left: 5px;
} }
.mb8 {
margin-bottom: 8px;
}
.mt10 { .mt10 {
margin-top: 10px; margin-top: 10px;
} }
......
...@@ -19,3 +19,35 @@ export function param2Obj(url) { ...@@ -19,3 +19,35 @@ export function param2Obj(url) {
'"}' '"}'
) )
} }
// 日期时间格式化
export function dateFormat(date = new Date(), fmt = 'yyyy-MM-dd hh:mm:ss') {
var o = {
'M+': date.getMonth() + 1, //月份
'd+': date.getDate(), //日
'h+': date.getHours(), //小时
'm+': date.getMinutes(), //分
's+': date.getSeconds(), //秒
'q+': Math.floor((date.getMonth() + 3) / 3), //季度
'S+': date.getMilliseconds(), //毫秒
'w+': '星期' + '日一二三四五六'.charAt(date.getDay()) //星期
}
if (/(y+)/.test(fmt)) {
fmt = fmt.replace(
RegExp.$1,
(date.getFullYear() + '').substr(4 - RegExp.$1.length)
)
}
for (var k in o) {
if (new RegExp('(' + k + ')').test(fmt)) {
fmt = fmt.replace(
RegExp.$1,
RegExp.$1.length == 1 ? o[k] : ('00' + o[k]).substr(('' + o[k]).length)
)
}
}
return fmt
}
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
>{{ >{{
form.remark form.remark
? form.remark ? form.remark
: (form.name || '') + '-' + (form.remarkCorpName || '') : (form.name || '') +
(form.remarkCorpName ? '-' + form.remarkCorpName : '')
}} }}
&nbsp; &nbsp;</span &nbsp; &nbsp;</span
><span ><span
...@@ -69,27 +70,17 @@ ...@@ -69,27 +70,17 @@
<div>客户标签</div> <div>客户标签</div>
<div class="data" is-link @click="labelEdit">编辑</div> <div class="data" is-link @click="labelEdit">编辑</div>
</div> </div>
<van-row gutter="10" class="labelstyle"> <div v-if="form.weTagGroupList" class="labelstyle mt10">
<van-col <template v-for="item in form.weTagGroupList">
span="4.5"
v-for="(item, index) in form.weTagGroupList"
:key="index"
>
<div <div
class="label" class="label"
v-for="(item1, index1) in item.weTags" v-for="(unit, unique) in item.weTags"
:key="index1" :key="unique"
> >
{{ item1.name }} {{ unit.name }}
</div> </div>
</van-col> </template>
<!-- <van-col span="4.5"> <div class="label">标签1</div></van-col> </div>
<van-col span="4.5"> <div class="label">标签1</div></van-col>
<van-col span="4.5"> <div class="label">标签1</div></van-col>
<van-col span="4.5"> <div class="label">标签1</div></van-col>
<van-col span="4.5"> <div class="label">标签1</div></van-col>
<van-col span="4.5"> <div class="label">标签1</div></van-col> -->
</van-row>
</div> </div>
<div class="divider"></div> <div class="divider"></div>
...@@ -128,48 +119,13 @@ ...@@ -128,48 +119,13 @@
<van-tab :name="3" title="活动动态"></van-tab> <van-tab :name="3" title="活动动态"></van-tab>
<van-tab :name="4" title="待办动态"></van-tab> <van-tab :name="4" title="待办动态"></van-tab>
</van-tabs> </van-tabs>
<!-- <van-row gutter="8" class="labelstyle">
<van-col span="6">
<div
class="label1"
@click="changeInfo('information')"
:style="styleActive1"
>
信息动态
</div></van-col
>
<van-col span="6">
<div
class="label1"
@click="changeInfo('socialContact')"
:style="styleActive2"
>
社交动态
</div></van-col
>
<van-col span="6">
<div
class="label1"
@click="changeInfo('activity')"
:style="styleActive3"
>
活动动态
</div></van-col
>
<van-col span="6">
<div
class="label1"
@click="changeInfo('dealtWith')"
:style="styleActive4"
>
待办动态
</div></van-col
>
</van-row> -->
<!-- 步骤条 --> <!-- 步骤条 -->
<StepList :stepList="list"></StepList> <div class="ac">
<van-loading v-if="loadingStep" type="spinner" />
</div>
<StepList :stepList="list" @reload="changeInfo()"></StepList>
</div> </div>
<!-- 点击客户标签里的编辑触发弹出框开始 --> <!-- 点击客户标签里的编辑触发弹出框开始 -->
...@@ -274,7 +230,7 @@ ...@@ -274,7 +230,7 @@
/> />
</van-action-sheet> </van-action-sheet>
<!-- 保存 --> <!-- 保存 -->
<div style="margin: 30px;"> <div style="margin: 30px">
<van-button <van-button
round round
block block
...@@ -336,8 +292,9 @@ export default { ...@@ -336,8 +292,9 @@ export default {
// 待办动态 // 待办动态
todonewsshow: false, todonewsshow: false,
// 接口开始 // 接口开始
// externalUserid: 'wmiGuBCgAAoCBD1frD3hRplbsXoBLx6g', // 客户Id externalUserid: '',
// externalUserid: 'wmiGuBCgAAgeijfvvpJ62cBfwrB-c4kw', // externalUserid: 'wmiGuBCgAAoCBD1frD3hRplbsXoBLx6g', // 客户IdwmiGuBCgAAoCBD1frD3hRplbsXoBLx6g
// externalUserid: 'wmiGuBCgAAsQVuCR_zoXfnQsnCGG25rQ',
form: { form: {
name: '', // 昵称 name: '', // 昵称
remarkMobiles: '', // 手机号 remarkMobiles: '', // 手机号
...@@ -375,7 +332,8 @@ export default { ...@@ -375,7 +332,8 @@ export default {
loading: false, loading: false,
finished: false, finished: false,
list: [], list: [],
agentId: '' agentId: '', // 1000012,
loadingStep: false
} }
}, },
watch: { watch: {
...@@ -386,7 +344,7 @@ export default { ...@@ -386,7 +344,7 @@ export default {
computed: { computed: {
userId() { userId() {
return this.$store.state.userId return this.$store.state.userId
// || 'FengJuZhuDeJieDao' // || 'FengJuZhuDeJieDao'
}, },
// activeLabel : () => { // activeLabel : () => {
// this.addTag.forEach((value) => { // this.addTag.forEach((value) => {
...@@ -410,12 +368,13 @@ export default { ...@@ -410,12 +368,13 @@ export default {
let hash = param2Obj(window.location.hash) let hash = param2Obj(window.location.hash)
query = Object.assign(query, hash) query = Object.assign(query, hash)
this.agentId = query.agentId this.agentId = query.agentId
// console.log(agentId) console.log(agentId)
// this.findAddaddEmployes() // this.findAddaddEmployes()
// this.findAddGroupNum() // this.findAddGroupNum()
// this.getCustomerInfo() // this.getCustomerInfo()
// this.findTrajectory() // this.findTrajectory()
// getAllTags() // getAllTags()
// .then(({ data }) => { // .then(({ data }) => {
// this.alllabel = data // this.alllabel = data
...@@ -490,6 +449,8 @@ export default { ...@@ -490,6 +449,8 @@ export default {
.then((data) => { .then((data) => {
// 重新获取列表 // 重新获取列表
this.findAddaddEmployes() this.findAddaddEmployes()
this.findTrajectory()
if (data.code == 200) { if (data.code == 200) {
this.$toast.success('保存成功') this.$toast.success('保存成功')
this.usershow = false this.usershow = false
...@@ -501,6 +462,7 @@ export default { ...@@ -501,6 +462,7 @@ export default {
}, },
// 获取轨迹信息 // 获取轨迹信息
findTrajectory(page) { findTrajectory(page) {
this.loadingStep = true
let query = { let query = {
pageNum: page, pageNum: page,
pageSize: 10, pageSize: 10,
...@@ -508,14 +470,15 @@ export default { ...@@ -508,14 +470,15 @@ export default {
externalUserid: this.externalUserid externalUserid: this.externalUserid
} }
Object.assign(query, this.query) Object.assign(query, this.query)
page && (query.page = page)
findTrajectory(query) findTrajectory(query)
.then((data) => { .then((data) => {
// console.log(data.total); // console.log(data.total);
this.list = data.rows this.list = data.rows
this.loadingStep = false
}) })
.catch((err) => { .catch((err) => {
console.log(err) console.log(err)
this.loadingStep = false
}) })
}, },
// 点击信息动态 // 点击信息动态
...@@ -530,9 +493,9 @@ export default { ...@@ -530,9 +493,9 @@ export default {
userId: this.userId, userId: this.userId,
externalUserid: this.externalUserid, externalUserid: this.externalUserid,
content: this.conagency, content: this.conagency,
createDate: new Date(this.dateagency), createDate: this.dateagency,
startTime: new Date(this.startTime), startTime: `${this.dateagency} ${this.startTime}:00`,
endTime: new Date(this.endTime), endTime: `${this.dateagency} ${this.endTime}:00`,
status: 1, status: 1,
agentId: this.agentId agentId: this.agentId
} }
...@@ -542,8 +505,6 @@ export default { ...@@ -542,8 +505,6 @@ export default {
this.dateagency = '' this.dateagency = ''
this.startTime = '' this.startTime = ''
this.endTime = '' this.endTime = ''
// 重新获取列表
this.findTrajectory()
}, },
// 待办日期 // 待办日期
formatDate(dateagency) { formatDate(dateagency) {
...@@ -636,7 +597,7 @@ export default { ...@@ -636,7 +597,7 @@ export default {
this.show = true this.show = true
if (this.form.weTagGroupList) { if (this.form.weTagGroupList) {
this.form.weTagGroupList.forEach((ele) => { this.form.weTagGroupList.forEach((ele) => {
this.addTag.push(...ele.weTags[0]) this.addTag.push(...ele.weTags)
}) })
} }
// 获取用户当前的lable,将当前用户的lable与所有lable进行对比,相同的弹框内蓝色展示 // 获取用户当前的lable,将当前用户的lable与所有lable进行对比,相同的弹框内蓝色展示
...@@ -763,8 +724,7 @@ export default { ...@@ -763,8 +724,7 @@ export default {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-items: center; align-items: center;
.label, .label {
.label1 {
display: inline-block; display: inline-block;
min-width: 45px; min-width: 45px;
font-size: 12px; font-size: 12px;
......
...@@ -6,7 +6,10 @@ ...@@ -6,7 +6,10 @@
<span class="fr download" @click="exportList()">下载会话</span> <span class="fr download" @click="exportList()">下载会话</span>
</div> </div>
</div> </div>
<el-tabs v-model="activeTab"> <el-tabs
v-model="activeTab"
@tab-click="(v) => opened.includes(v.name) || opened.push(v.name)"
>
<el-tab-pane <el-tab-pane
v-for="(item, index) of list" v-for="(item, index) of list"
:key="index" :key="index"
...@@ -14,6 +17,7 @@ ...@@ -14,6 +17,7 @@
:name="item.type" :name="item.type"
> >
<chatListClassTab <chatListClassTab
v-if="opened.includes(item.type)"
:queryChat="queryChat" :queryChat="queryChat"
:type="item.type" :type="item.type"
></chatListClassTab> ></chatListClassTab>
...@@ -36,6 +40,7 @@ export default { ...@@ -36,6 +40,7 @@ export default {
data() { data() {
return { return {
activeTab: 'all', activeTab: 'all',
opened: ['all'],
list: [ list: [
{ {
label: '全部', label: '全部',
...@@ -60,7 +65,11 @@ export default { ...@@ -60,7 +65,11 @@ export default {
] ]
} }
}, },
watch: {}, watch: {
queryChat() {
this.opened = ['all']
}
},
mounted() {}, mounted() {},
methods: { methods: {
exportList() { exportList() {
......
...@@ -141,13 +141,15 @@ export default { ...@@ -141,13 +141,15 @@ export default {
this.getList(1) this.getList(1)
} }
}, },
created() {}, created() {
this.getList(1)
},
mounted() {}, mounted() {},
methods: { methods: {
getList(page) { getList(page) {
if (!this.queryChat.fromId) { // if (!this.queryChat.fromId) {
return //没有选择人 // return //没有选择人
} // }
this.loading = true this.loading = true
let query = { let query = {
msgType: this.type == 'all' ? '' : this.type, msgType: this.type == 'all' ? '' : this.type,
......
...@@ -44,6 +44,14 @@ ...@@ -44,6 +44,14 @@
></i> ></i>
</el-col> </el-col>
</el-row> </el-row>
<div class="ac mt10 mb15">
{{
customerList.length != customerTotal
? '下拉加载更多'
: '看到底了~'
}}
</div>
</template> </template>
<el-empty v-else :image-size="100"></el-empty> <el-empty v-else :image-size="100"></el-empty>
</ul> </ul>
......
...@@ -126,7 +126,7 @@ export default { ...@@ -126,7 +126,7 @@ export default {
}, },
groupFn(data) { groupFn(data) {
this.queryChat = { this.queryChat = {
fromId: this.fromId, // fromId: this.fromId,
receiveName: data.name, receiveName: data.name,
roomId: data.receiver roomId: data.receiver
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!