Commit b59e8291 by 王志慧

commit

1 parent e5ef97dd
......@@ -3,7 +3,7 @@
<div class="head-container">
<div class="head-container-title color-3 font-20">人群名称</div>
<div class="head-container-content color-6 font-14">{{ describe }}</div>
<div class="reminder font-14 color-3">企业标签 | 自动更新</div>
<!-- <div class="reminder font-14 color-3">企业标签 | 自动更新</div> -->
<div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div>
<div class="main-container">
......@@ -14,17 +14,14 @@
</div>
<div class="export font-14 color-6" @click="handleExport()">导出</div>
</div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<span slot="customerNickName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerNickName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerNickName }}</span>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="customerName" class="flex-center" slot-scope="scope">
<el-tooltip effect="dark" :content="scope.scope.customerName" placement="top">
<span class="ellipsis-1" style="display: inline-block; max-width: 70px; text-align: left">{{ scope.scope.customerName }}</span>
</el-tooltip>
<span :class="[scope.scope.type == 1 ? 'pure-blue-text' : '', scope.scope.type == 2 ? 'pure-yello-text' : '']">{{ scope.scope.type == 1 ? '@微信' : scope.scope.type == 2 ? '@企微' : '' }}</span>
</span>
<div class="table-btns" slot="optionBtns" slot-scope="scope">
<GLButton type="text" @click="handleDetail(scope.scope)" fn="魔方导入结果">详情</GLButton>
</div>
</GLTable>
</div>
</div>
......@@ -40,22 +37,23 @@ export default {
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: {},
id: this.$route.params.id ? this.$route.params.id : '',
totalCount: 0,
totalCount: '',
tableParams: {
listName: 'data',
tableOption: false,
tableColumns: [
{
label: '客户姓名',
label: '客户名称',
prop: 'customerName',
minWidth: 100
},
{
label: '昵称',
prop: 'customerNickName',
minWidth: 100,
addHtml: 'customerNickName'
addHtml: 'customerName',
minWidth: 150
},
// {
// label: '昵称',
// prop: 'customerNickName',
// minWidth: 100,
// addHtml: 'customerNickName'
// },
{
label: '手机号',
prop: 'customerPhone',
......@@ -82,7 +80,7 @@ export default {
label: '跟进员工',
prop: 'followStaff',
// addHtml: 'followStaff',
minWidth: 120
minWidth: 140
},
{
label: '是否加企微', //1. 加入,0.未加入
......@@ -92,11 +90,11 @@ export default {
{
label: '添加时间',
prop: 'addTime',
width: 98
width: 120
}
]
},
describeData: ['潜在意向客户', '潜在意向客户,且已加企微客户', '潜在意向客户,且未加企微客户', '基盘客户', '基盘客户,且已加企微客户', '基盘客户,且未加企微客户', '新车客户', '新车待续保客户', '新车待首保客户', '沉默客户']
describeData: ['无购车且无其他交易行为的所有客户', '在潜在意向客户中,已加企微的客户', '在潜在意向客户中,未加企微的客户', '有购车或其他交易行为的所有客户', '在基盘客户中,已加企微的客户', '在基盘客户中,未加企微的客户', '购车时间3个月的客户', '近一个月内车险即将到期的客户', '购车时间5~7个月内,且无保养记录的客户', '超过180天未到店的客户']
}
},
created() {
......@@ -114,24 +112,12 @@ export default {
this.tableSearchForm = {
crowdId: id
}
this.getTotalCount()
},
//获取全部客户数
getTotalCount() {
getCustomerList({
...this.tableSearchForm,
pageSize: 10,
pageNum: 1
}).then(res => {
// console.log('res', res)
this.totalCount = res.count
})
// this.getTotalCount()
},
//导出
handleExport() {
var params = {
tagLists: [{ groupId: `${this.id}` }],
crowdId: this.id,
pageSize: 10,
pageNum: 1
}
......@@ -139,6 +125,9 @@ export default {
this.$Utils.exportFn(res)
})
},
setTableFinishFun() {
this.totalCount = this.$refs.groupRef.total
},
goBack() {
this.$router.replace({ path: '/clientDataOverview/index' })
}
......
......@@ -170,12 +170,12 @@
<div class="labels-wrap" v-for="(group, index) in allTagsList" :key="index">
<template v-if="(merchantModel == 2 && group.labelType != '自店标签') || merchantModel == 1">
<div class="label-wrap">
<div class="label-group-name color-3">{{ group.labelType }}</div>
<div class="label-group-name">{{ group.labelType }}</div>
<div class="labels" v-for="(labels, ids) in group.children" :key="ids">
<div class="label-name white-hide color-71">{{ labels.labelGroup.name }}:</div>
<div class="label-value flex">
<template v-for="(label, i) in labels.labelList">
<div :class="['label', 'color-6', 'white-hide', label.checked ? 'isChecked' : '']" :style="{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)">
<div :class="['label', 'color-3', 'white-hide', label.checked ? 'isChecked' : '']" :style="{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)">
{{ label.name }}
<template v-if="label.checked">
<img src="@/assets/clientDetail/select-icon.png" class="select-icon" alt />
......@@ -1008,12 +1008,12 @@ export default {
color: #333333;
line-height: 20px;
.label-group-name {
margin-bottom: 15px;
margin-bottom: 12px;
margin-top: 20px;
font-weight: 500;
font-weight: 600;
}
.labels {
margin-bottom: 10px;
margin-bottom: 11px;
.label-name {
box-sizing: border-box;
margin-bottom: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!