Commit 819cef52 by 王志慧

commit

1 parent b2e77304
<template>
<div class="scrm-sub-client-container">
<div class="head-container">
<div class="head-container-title color-3 font-20"> {{describeData[id-1].name}}</div>
<div class="head-container-content color-6 font-14">{{ describeData[id-1].info }}</div>
<div class="head-container-title color-3 font-20">{{ crowdForm.crowdName }}</div>
<div class="head-container-content color-6 font-14">{{ crowdForm.crowdDesc}}</div>
<!-- <div class="reminder font-14 color-3">企业标签 | 自动更新</div> -->
<div class="back color-58 font-14" @click="goBack">返回人群管理</div>
</div>
......@@ -29,15 +29,15 @@
<span>{{ list.nickName }}</span>
<span class="smallFontSize" :class="[list.type == 1 ? 'pure-green-text' : '', list.type == 2 ? 'pure-yello-text' : '']">@{{ list.corpName }}</span>
</div>
<span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div style="padding-bottom:3px !important" v-for="(i, index) in scope.scope.nickNameList" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px;font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400;margin-left:2px" :class="[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
<span v-if="idx == 1">
<el-popover placement="right-start" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div style="padding-bottom: 3px !important" v-for="(i, index) in scope.scope.nickNameList" :key="index">
<span>{{ i.nickName }}</span>
<span style="height: 20px; font-size: 12px; letter-spacing: 0; line-height: 20px; font-weight: 400; margin-left: 2px" :class="[i.type == 1 ? 'pure-green-text' : '', i.type == 2 ? 'pure-yello-text' : '']">@{{ i.corpName }}</span>
</div>
<img class="imgEll" src="@/assets/tagsManage/ellipsis.png" alt="" slot="reference" />
</el-popover>
</span>
</div>
</div>
</GLTable>
......@@ -55,6 +55,7 @@ export default {
getListApi: getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: {},
crowdForm: {},
id: this.$route.params.id ? this.$route.params.id : '',
totalCount: '',
tableParams: {
......@@ -110,50 +111,8 @@ export default {
}
]
},
describeData: [
{
name: '潜在意向客户',
info: '无购车且无其他交易行为的所有客户'
},
{
name: '潜在意向客户(已加企微客户)',
info: '在潜在意向客户中,已加企微的客户'
},
{
name: '潜在意向客户(未加企微客户)',
info: '在潜在意向客户中,未加企微的客户'
},
{
name: '基盘客户',
info: '有购车或其他交易行为的所有客户'
},
{
name: '基盘客户(已加企微客户)',
info: '在基盘客户中,已加企微的客户'
},
{
name: '基盘客户(未加企微客户)',
info: '在基盘客户中,未加企微的客户'
},
{
name: '新车客户',
info: '购车时间3个月的客户'
},
{
name: '车险待续保客户',
info: '近一个月内车险即将到期的客户'
},
{
name: '新车待首保客户',
info: '购车时间5~7个月内,且无保养记录的客户'
},
{
name: '沉默客户',
info: '超过180天未到店的客户'
}
],
url: url,
//describeData: ['无购车且无其他交易行为的所有客户', '在潜在意向客户中,已加企微的客户', '在潜在意向客户中,未加企微的客户', '有购车或其他交易行为的所有客户', '在基盘客户中,已加企微的客户', '在基盘客户中,未加企微的客户', '购车时间3个月的客户', '近一个月内车险即将到期的客户', '购车时间5~7个月内,且无保养记录的客户', '超过180天未到店的客户']
url: url
}
},
created() {
......@@ -171,8 +130,21 @@ export default {
this.tableSearchForm = {
crowdId: id
}
// 通过人群Id查询人群详情
this.getCrowdDetails()
// this.getTotalCount()
},
getCrowdDetails() {
let params = {
'req.crowdId': this.id
}
this.$apis.crowdManage.getCrowdDetails(params).then(res => {
if (res.code == 0) {
this.crowdForm.crowdName = res.data.crowdName
this.crowdForm.crowdDesc = res.data.crowdDesc
}
})
},
//导出
handleExport() {
var params = {
......
......@@ -47,7 +47,7 @@
</div>
<div class="itembox">
<div class="no-buy">
<GLButton class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<div class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<span>潜在意向客户数</span>
<span>无购车且无其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
......@@ -63,11 +63,11 @@
<!-- <i class="vertical-line"></i> -->
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
</GLButton>
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<GLButton class="inCompanyWechatNum item smallWrap" @click="goto(2)" fn="人群客户列表" mode="div">
<div class="inCompanyWechatNum item smallWrap" @click="goto(2)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
......@@ -75,9 +75,9 @@
</span>
<span>在潜在意向客户中,已加企微的客户</span>
<!-- <i class="horizontal-line"></i> -->
</GLButton>
</div>
<el-divider></el-divider>
<GLButton class="outCompanyWechatNum item smallWrap" @click="goto(3)" fn="人群客户列表" mode="div">
<div class="outCompanyWechatNum item smallWrap" @click="goto(3)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
......@@ -89,11 +89,11 @@
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
</GLButton>
</div>
</div>
</div>
<div class="buy">
<GLButton class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<!-- <span>购买(存档)客户数</span> -->
<span>基盘客户数</span>
<span>有购车或其他交易行为的所有客户</span>
......@@ -110,10 +110,10 @@
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<!-- <i class="vertical-line"></i> -->
</GLButton>
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<GLButton class="inCompanyWechatNum item smallWrap" @click="goto(5)" fn="人群客户列表" mode="div">
<div class="inCompanyWechatNum item smallWrap" @click="goto(5)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
......@@ -122,9 +122,9 @@
<span>在基盘客户中,已加企微的客户</span>
<!-- <button class="btn">企微魔方&gt;&gt;</button> -->
<!-- <i class="horizontal-line"></i> -->
</GLButton>
</div>
<el-divider></el-divider>
<GLButton class="outCompanyWechatNum item smallWrap" @click="goto(6)" fn="人群客户列表" mode="div">
<div class="outCompanyWechatNum item smallWrap" @click="goto(6)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
......@@ -135,7 +135,7 @@
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
</GLButton>
</div>
</div>
</div>
</div>
......@@ -144,7 +144,7 @@
<h3 class="pageSubTitle">客户分群</h3>
<div class="itembox">
<template v-for="(item, index) in titles">
<GLButton class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
<div class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
<p>{{ item.name }}</p>
<p>{{ item.subName }}</p>
<p>
......@@ -152,7 +152,7 @@
<span class="person-text">人</span>
</p>
<img :src="item.url" alt="" />
</GLButton>
</div>
</template>
</div>
</div>
......
......@@ -175,7 +175,7 @@ export default {
offsetTop: 0,
expande: false,
isClick: false,
addClick:false,
addClick: false,
isDom: false,
isShowCloseBtn: true,
tableData: [],
......@@ -250,13 +250,13 @@ export default {
let height = document.getElementById('selectTagBox').offsetHeight
console.log(height, '数据监听')
if (!this.isFixed||this.addClick) {
if (!this.isFixed || this.addClick) {
//判断是否可以触发
this.isClick = false
this.expande = false
}
console.log(this.isClick)
if (!this.isClick ||this.addClick|| !this.isFixed) {
if (!this.isClick || this.addClick || !this.isFixed) {
//获取当前元素的高
if (height > 96) {
......@@ -939,6 +939,10 @@ export default {
b {
color: #666666;
}
span {
white-space: nowrap;
}
}
.static-image {
width: 335px;
......
......@@ -285,6 +285,9 @@ export default {
b {
color: #666666;
}
span {
white-space: nowrap;
}
}
.static-image {
width: 335px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!