Commit 273d432a by xuyl

Merge branch 'v1.2.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into v1.2.0

2 parents 4299083d 650f1448
......@@ -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" :noDataImg="url" :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>
......@@ -32,6 +29,7 @@
<script>
import { getCustomerList, customerClusterListExport } from '@/api/modules/clientDataOverview'
import url from '@/assets/empty.png'
export default {
name: 'group',
data() {
......@@ -40,63 +38,54 @@ 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: '120'
},
{
label: '手机号',
prop: 'customerPhone',
minWidth: 110
minWidth: '110'
},
{
label: '车牌号',
prop: 'carNumber',
width: 100
prop: 'carNumber'
},
{
label: '车架号(后6位)',
prop: 'carVin',
// addHtml: 'standNo',
minWidth: 120
minWidth: '110'
},
{
label: '车系',
prop: 'audi',
width: 160,
line: 2
},
{
label: '跟进员工',
prop: 'followStaff',
// addHtml: 'followStaff',
minWidth: 120
minWidth: 140
},
{
label: '是否加企微', //1. 加入,0.未加入
prop: 'isJoinName',
width: 100
prop: 'isJoinName'
},
{
label: '添加时间',
prop: 'addTime',
width: 98
prop: 'addTime'
}
]
},
describeData: ['潜在意向客户', '潜在意向客户,且已加企微客户', '潜在意向客户,且未加企微客户', '基盘客户', '基盘客户,且已加企微客户', '基盘客户,且未加企微客户', '新车客户', '新车待续保客户', '新车待首保客户', '沉默客户']
url: url,
describeData: ['无购车且无其他交易行为的所有客户', '在潜在意向客户中,已加企微的客户', '在潜在意向客户中,未加企微的客户', '有购车或其他交易行为的所有客户', '在基盘客户中,已加企微的客户', '在基盘客户中,未加企微的客户', '购车时间3个月的客户', '近一个月内车险即将到期的客户', '购车时间5~7个月内,且无保养记录的客户', '超过180天未到店的客户']
}
},
created() {
......@@ -114,24 +103,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 +116,10 @@ export default {
this.$Utils.exportFn(res)
})
},
setTableFinishFun() {
this.totalCount = this.$refs.groupRef.total
this.$refs.groupRef.data.length ? (this.$refs.groupRef.tableHeightValues = '') : this.$refs.groupRef.setTableHeightFun()
},
goBack() {
this.$router.replace({ path: '/clientDataOverview/index' })
}
......@@ -169,13 +150,6 @@ export default {
line-height: 20px;
width: calc(100% - 156px);
}
.reminder {
position: absolute;
font-weight: 400;
line-height: 20px;
right: 20px;
top: 20px;
}
.back {
font-weight: 400;
line-height: 22px;
......@@ -184,8 +158,9 @@ export default {
border: 1px solid $btnBlue;
position: absolute;
right: 20px;
bottom: 20px;
top: 20px;
color: $btnBlue;
cursor: pointer;
}
}
.main-container {
......@@ -215,6 +190,7 @@ export default {
background: #ffffff;
border-radius: 4px;
border: 1px solid rgba(105, 105, 105, 0.3);
cursor: pointer;
}
}
}
......
......@@ -160,8 +160,8 @@
</div>
<basic-dialog class="tags" :title="tagsDialogTitle" :width="'712px'" :btnLoading="sloading" :isShowThirdBtn="true" @btnEvent="goNewTag" :isVisible="tagsVisible" @confirmDialog="handleConfirm" @closeDialog="handleClose">
<slot>
<p class="hint-text">
<span class="color-6">说明:</span>
<p class="hint-text color-6">
<span class="color-3">说明:</span>
仅支持企业标签
<span v-if="merchantModel == 1">和自店标签</span>
进行人工维护和设置
......@@ -170,13 +170,16 @@
<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-name white-hide color-71 mt10">{{ 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)">
{{ label.name }}
<div :class="['label', 'color-3', 'white-hide', 'mt10', label.checked ? 'isChecked' : '']" :style="{ width: label.name.length > 10 ? '145px' : auto }" :key="label.id" @click="choose(index, ids, i)">
<template v-if="label.name.length < 10">{{ label.name }}</template>
<el-tooltip class="item" :content="label.name" placement="top" v-else>
<span>{{ label.name }}</span>
</el-tooltip>
<template v-if="label.checked">
<img src="@/assets/clientDetail/select-icon.png" class="select-icon" alt />
</template>
......@@ -187,26 +190,6 @@
</div>
</template>
</div>
<!-- <p class="dialogSubTitle">企业标签</p>
<div class="companyRowData" v-for="(item, index) in companyTagsList" :key="index">
<span :title="item.labelGroup.name">{{ item.labelGroup.name }}</span>
<div class="tagsBox">
<span v-for="(i, j) in item.labelList" :key="j" class="ellipsis-1" :class="{ activeTag: i.checked }" :title="i.name" @click="checkNewTag(i.checked, j, item.labelList, i.original)">{{ i.name }}</span>
</div>
</div>
<template v-if="merchantModel == 1 && (accountLevel == 2 || accountLevel == 3 || accountLevel == 4)">
<p class="dialogSubTitle">自店标签</p>
<div class="ownShopRowData" v-for="(xItem, xIndex) in ownShopTagsList" :key="xIndex">
<span :title="xItem.labelGroup.name">{{ xItem.labelGroup.name }}</span>
<div class="tagsBox">
<span v-for="(m, n) in xItem.labelList" :key="n" class="ellipsis-1" :class="{ activeTag: m.checked }" :title="m.name" @click="checkNewTag(m.checked, n, xItem.labelList, m.original)">{{ m.name }}</span>
</div>
</div>
</template> -->
<!-- 这里btn-behind插槽莫名失效了,原因:??? -->
<!-- <el-button slot="behind" @click="goNewTag">没找到需要的标签,创建新标签</el-button> -->
</slot>
</basic-dialog>
</div>
......@@ -636,7 +619,7 @@ export default {
console.log(param)
if (res.data.code == 0) {
this.sloading = false
this.$message.success('添加成功')
this.$message.success('设置成功')
this.handleClose()
// this.getSingleClientTag(this.id, this.merchantId)
this.getPageDetail() //刷新当前页面
......@@ -934,89 +917,31 @@ export default {
}
}
}
// .dialogSubTitle {
// margin-bottom: 10px;
// height: 20px;
// font-size: 14px;
// font-weight: 500;
// color: #717171;
// line-height: 20px;
// &:not(:first-child) {
// margin-top: 20px;
// }
// }
// .companyRowData,
// .ownShopRowData {
// display: flex;
// // margin-top: 10px;
// > span {
// margin-right: 10px;
// min-width: 82px;
// height: 20px;
// font-size: 14px;
// font-weight: 400;
// color: #717171;
// line-height: 20px;
// text-align: right;
// max-width: 82px;
// overflow: hidden;
// text-overflow: ellipsis;
// white-space: nowrap;
// word-break: break-all;
// }
// .tagsBox {
// display: flex;
// flex-wrap: wrap;
// justify-content: flex-start;
// > span {
// display: inline-block;
// margin-right: 10px;
// margin-bottom: 10px;
// padding: 0 10px;
// box-sizing: border-box;
// min-width: 82px;
// height: 26px;
// line-height: 26px;
// border-radius: 4px;
// border: 1px solid #e8e8ea;
// text-align: center;
// font-size: 14px;
// font-weight: 400;
// color: #666666;
// max-width: 245px;
// cursor: pointer;
// background: #fafbfe;
// }
// .activeTag {
// border: 1px solid $btnBlue;
// color: $btnBlue;
// }
// }
// }
.hint-text {
font-size: 12px;
font-weight: 400;
color: #333333;
// color: #666;
line-height: 18px;
}
.mg10 {
margin-left: 38px;
}
.mt10 {
margin-top: 10px;
}
.labels-wrap {
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
margin-top: 20px;
.label-group-name {
margin-bottom: 15px;
margin-top: 20px;
font-weight: 500;
margin-bottom: 2px;
font-weight: 600;
}
.labels {
margin-bottom: 10px;
.label-name {
box-sizing: border-box;
margin-bottom: 10px;
font-weight: 400;
}
.label {
......@@ -1027,10 +952,10 @@ export default {
line-height: 26px;
text-align: center;
margin-right: 10px;
margin-bottom: 10px;
position: relative;
padding: 0 16px;
box-sizing: border-box;
cursor: pointer;
}
.isChecked {
border: 1px solid #5850ff !important;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!