Commit b59e8291 by 王志慧

commit

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