Commit e67fdda9 by 前端

Merge branch 'xuyl_dev_v2.4.0' into 'v2.4.0'

Xuyl dev v2.4.0

See merge request !91
2 parents 0dddd9c4 c9e06b28
......@@ -19,6 +19,7 @@
"glsx-table": "^1.1.0",
"jquery": "^3.6.0",
"sha1": "^1.1.1",
"swiper": "^4.0.0",
"vue": "^2.6.10",
"vue-animate-number": "^0.4.2",
"vue-router": "^3.1.3",
......
@import '@/styles/variables.scss';
.glsx-table .emptyBg .noDataImg {
margin-top: 0px !important;
}
.el-tag {
color: #666 !important;
font-size: 14px !important;
......@@ -114,6 +118,10 @@
margin-top: 10px;
}
.wid50 {
width: 50%;
}
.circleStatusRed {
width: 6px;
height: 6px;
......@@ -162,4 +170,21 @@
display: inline-block;
vertical-align: middle;
margin-right: 8px;
}
.normalTitle {
font-size: 16px;
padding-left: 20px;
font-weight: 600;
display: block;
height: 58px;
line-height: 58px;
border-bottom: 1px solid #E5E5E5;
}
.questionImg {
margin-left: 4px;
width: 16px;
height: 16px;
vertical-align: middle;
}
\ No newline at end of file
export const Constants = {
CLIENT_STATUS: {
'0': '正常, green-text',
'1': '删除好友, red-text'
},
//性别选项
GENDER_OPTION: [
{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
],
SOURCE_OPTION: [
{
label: '全部',
value: 0
},
{
label: '直接导入',
value: 1
},
{
label: '扫描二维码',
value: 'first'
},
{
label: '搜索手机号',
value: 2
},
{
label: '名片分享',
value: 3
},
{
label: '群聊',
value: 4
},
{
label: '手机通讯录',
value: 5
},
{
label: '微信联系人',
value: 6
},
{
label: '来自微信的添加好友申请',
value: 7
},
{
label: '第三方应用的客户人员',
value: 8
},
{
label: '搜索邮箱',
value: 9
},
{
label: '内部成员共享',
value: 10
},
{
label: '管理员/负责人分配',
value: 11
},
{
label: '未知来源',
value: 12
}
],
//标签类型
LABEL_OPTION: [
{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
],
// 文件大小提示语
FILESIZEMSG: '单个文件大小不能超过10M',
CLIENT_STATUS: {
'0': '正常, green-text',
'1': '删除好友, red-text'
},
//性别选项
GENDER_OPTION: [{
label: '全部',
value: null
},
{
label: '男',
value: 1
},
{
label: '女',
value: 2
},
{
label: '未知',
value: 0
}
],
SOURCE_OPTION: [{
label: '全部',
value: 0
},
{
label: '直接导入',
value: 1
},
{
label: '扫描二维码',
value: 'first'
},
{
label: '搜索手机号',
value: 2
},
{
label: '名片分享',
value: 3
},
{
label: '群聊',
value: 4
},
{
label: '手机通讯录',
value: 5
},
{
label: '微信联系人',
value: 6
},
{
label: '来自微信的添加好友申请',
value: 7
},
{
label: '第三方应用的客户人员',
value: 8
},
{
label: '搜索邮箱',
value: 9
},
{
label: '内部成员共享',
value: 10
},
{
label: '管理员/负责人分配',
value: 11
},
{
label: '未知来源',
value: 12
}
],
//标签类型
LABEL_OPTION: [{
label: '企业标签',
value: '企业标签'
},
{
label: '自店标签',
value: '自店标签'
},
{
label: '系统标签',
value: '系统标签'
}
],
// 文件格式提示
FILETYPEMSG: '文件格式只支持jpg/jpeg/gif/png',
// 文件大小提示语
FILESIZEMSG: '单个文件大小不能超过10M',
// 文件上传个数限制
FILEUPLOADLIMIT: '最多只能上传5张图片',
// 文件格式提示
FILETYPEMSG: '文件格式只支持jpg/jpeg/gif/png',
// 删除文件失败
// 文件上传个数限制
FILEUPLOADLIMIT: '最多只能上传5张图片',
// 新增成功
ADDSUCCESSMSG: '新增成功',
// 删除文件失败
// 编辑成功
EDITSUCCESSMSG: '编辑成功',
// 新增成功
ADDSUCCESSMSG: '新增成功',
// 删除成功
DELETESUCCESSMSG: '删除成功',
// 编辑成功
EDITSUCCESSMSG: '编辑成功',
// 操作成功
OPERATESUCCESSMSG: '操作成功',
// 删除成功
DELETESUCCESSMSG: '删除成功',
// 操作失败
OPERATEFAILMSG: '操作失败',
// 操作成功
OPERATESUCCESSMSG: '操作成功',
// 错误提示
ERRORMSG: '出错了,请联系管理员',
// 操作失败
OPERATEFAILMSG: '操作失败',
// 请选择门店
CHOSSESTOREMSG: '请选择门店',
// 错误提示
ERRORMSG: '出错了,请联系管理员',
// 缺少参数
LACKPARAMSMSG: '缺少参数',
// 请选择门店
CHOSSESTOREMSG: '请选择门店',
// 付费方式 0用户续费,1后台续费
PAYWAYSTATUS: {
'0': '用户续费',
'1': '后台续费',
null: '--'
},
// 缺少参数
LACKPARAMSMSG: '缺少参数',
// 续费时长
PERIODSTATUS: {
'0': '六个月',
'1': '一年',
'2': '两年',
'3': '三年',
null: '--'
},
// 设备状态
DEVICESTATUS: {
0: '未激活',
1: '已激活',
2: '已过期'
},
DESCRIBEDATA: [
{
name: '潜在意向客户',
info: '无购车且无其他交易行为的所有客户'
},
{
name: '潜在意向客户已加微',
info: '在潜在意向客户中,已加企微的客户'
},
{
name: '潜在意向客户未加微',
info: '在潜在意向客户中,未加企微的客户'
},
{
name: '基盘客户',
info: '有购车或其他交易行为的所有客户'
// 付费方式 0用户续费,1后台续费
PAYWAYSTATUS: {
'0': '用户续费',
'1': '后台续费',
null: '--'
},
{
name: '基盘客户已加微',
info: '在基盘客户中,已加企微的客户'
},
{
name: '基盘客户未加微',
info: '在基盘客户中,未加企微的客户'
},
{
name: '新车客户',
info: '购车时间3个月的客户'
},
{
name: '车险待续保客户',
info: '近一个月内车险即将到期的客户'
},
{
name: '新车待首保客户',
info: '购车时间5~7个月内,且无保养记录的客户'
},
{
name: '沉默客户',
info: '超过180天未到店的客户'
// 续费时长
PERIODSTATUS: {
'0': '六个月',
'1': '一年',
'2': '两年',
'3': '三年',
null: '--'
},
{
name: '已加企微,待匹配客户',
info: '已加企微,且未匹配到潜在意向和基盘客户的客户'
}
]
}
// 设备状态
DEVICESTATUS: {
0: '未激活',
1: '已激活',
2: '已过期'
},
DESCRIBEDATA: [{
name: '潜在意向客户',
info: '无购车且无其他交易行为的所有客户',
id: 1
},
{
name: '潜在意向已加企微客户',
info: '在潜在意向客户中,已加企微的客户',
id: 2
},
{
name: '潜在意向未加企微客户',
info: '在潜在意向客户中,未加企微的客户',
id: 3
},
{
name: '基盘客户',
info: '有购车或其他交易行为的所有客户',
id: 4
},
{
name: '基盘已加企微客户',
info: '在基盘客户中,已加企微的客户',
id: 5
},
{
name: '基盘未加企微客户',
info: '在基盘客户中,未加企微的客户',
id: 6
},
{
name: '新车客户',
info: '购车时间3个月的客户',
id: 7
},
{
name: '车险待续保客户',
info: '近一个月内车险即将到期的客户',
id: 8
},
{
name: '新车待首保客户',
info: '购车时间5~7个月内,且无保养记录的客户',
id: 9
},
{
name: '沉默客户',
info: '超过180天未到店的客户',
id: 10
},
{
name: '已加企微,待匹配客户',
info: '已加企微,且未匹配到潜在意向或基盘客户的客户',
id: 11
},
{
name: '已加企微,待匹配客户(已绑定手机号)',
info: '已加企微,且未匹配到潜在意向或基盘客户的客户(已绑定手机号)',
id: 20
},
{
name: '未加企微,未匹配客户',
info: '未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户',
id: 21
}
]
}
\ No newline at end of file
......@@ -15,9 +15,9 @@ export default {
type: String,
default: ''
},
isCloseShowNumTag:{
type:Boolean,
default:false
isCloseShowNumTag: {
type: Boolean,
default: false
},
totalData: {
type: Array,
......@@ -44,7 +44,7 @@ export default {
this.customerRatio = this.totalData.map(item => item.customerRatio * 100)
this.entmicroCount = this.totalData.map(item => item.newEntmicroCount)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.initChart()
}
......@@ -59,7 +59,7 @@ export default {
this.customerRatio = this.totalData.map(item => item.customerRatio * 100)
this.entmicroCount = this.totalData.map(item => item.newEntmicroCount)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.entmicroRatio = this.totalData.map(item => item.entmicroRatio * 100)
this.initChart()
}
......@@ -80,12 +80,29 @@ export default {
}
},
formatter: function(datas) {
var res = datas[0].name + '<br/>'
var res = datas[0].name + ' | 新增' + '<br/>'
let circleColor
for (var i = 0, length = datas.length; i < length; i++) {
if (datas[i].seriesName == '新增客户' || datas[i].seriesName == '新增企微客户') {
res += datas[i].seriesName + ':' + datas[i].data + '人' + '<br/>'
} else {
res += datas[i].seriesName + ':' + datas[i].data + '%' + '<br/>'
// if (datas[i].seriesName == '新增客户' || datas[i].seriesName == '新增企微客户') {
// res += datas[i].seriesName + ':' + datas[i].data + '人' + '<br/>'
// } else {
// res += datas[i].seriesName + ':' + datas[i].data + '%' + '<br/>'
// }
if (datas[i].seriesName == '全部客户') {
circleColor = '#928DFF'
res += `<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${circleColor};"></span>` + datas[i].seriesName + ':' + datas[i].data + '人' + '<br/>'
}
if (datas[i].seriesName == '全部客户环比') {
circleColor = '#5850FF'
res += `<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${circleColor};"></span>` + datas[i].seriesName + ':' + datas[i].data + '%' + '<br/>'
}
if (datas[i].seriesName == '企微客户') {
circleColor = '#FEBE6B'
res += `<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${circleColor};"></span>` + datas[i].seriesName + ':' + datas[i].data + '人' + '<br/>'
}
if (datas[i].seriesName == '企微客户环比') {
circleColor = '#FE9C1C'
res += `<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:${circleColor};"></span>` + datas[i].seriesName + ':' + datas[i].data + '%' + '<br/>'
}
}
return res
......@@ -116,7 +133,8 @@ export default {
// },
itemGap: 20, //图例每项之间的间隔。横向布局时为水平间隔,纵向布局时为纵向间隔。
// data: ['全部客户', '全部客户环比', '企微客户', '企微客户环比'], //图例的数据数组。
data: ['新增客户', '新增客户环比', '新增企微客户', '新增企微客户环比'], //图例的数据数组。
// data: ['新增客户', '新增客户环比', '新增企微客户', '新增企微客户环比'], //图例的数据数组。
data: ['全部客户', '全部客户环比', '企微客户', '企微客户环比'], //图例的数据数组。
inactiveColor: '#ccc' //图例关闭时的颜色。
},
grid: {
......@@ -210,7 +228,7 @@ export default {
],
series: [
{
name: '新增客户',
name: '全部客户',
type: 'bar',
data: this.customerCount, //[33600, 18000, 17500, 20000, 17000, 480, 1000, 800, 520, 650, 920, 600],
label: {
......@@ -220,11 +238,11 @@ export default {
position: 'top'
},
itemStyle: {
color: '#5850ff'
color: '#928DFF'
}
},
{
name: '新增客户环比',
name: '全部客户环比',
type: 'line',
yAxisIndex: 1,
data: this.customerRatio, //[2.0, 2.2, -3.3, 4.5, 6.3, -10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2],
......@@ -233,11 +251,11 @@ export default {
}
},
{
name: '新增企微客户',
name: '企微客户',
type: 'bar',
data: this.entmicroCount, //[22000, 10000, 10000, 13000, 11500, 4000, 7000, 6500, 4500, 5500, 7000, 6000],
itemStyle: {
color: '#FE9C1C'
color: '#FEBE6B'
},
label: {
show: this.isCloseShowNumTag ? false : true,
......@@ -246,7 +264,7 @@ export default {
}
},
{
name: '新增企微客户环比',
name: '企微客户环比',
type: 'line',
yAxisIndex: 1,
data: this.entmicroRatio, //[2.6, 2.2, 3.0, 3.8, 6.8, 10.9, 18.3, 23.0, 23.9, 16.0, 10.0, 8.2],
......
......@@ -63,7 +63,7 @@ export default {
trigger: 'item', //模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比。{d}数据会根据value值计算百分比
formatter: '{b} : {c}人 ({d}%)'
},
color: ['#FE9C1C ', '#716AFF'],
color: ['#5850FF', '#FFB21F'],
// legend: {
// orient: "vertical",
// bottom: "bottom",
......@@ -72,8 +72,9 @@ export default {
{
name: '客户总数',
type: 'pie',
radius: '118px',
center: ['50%', '65%'],
// radius: '118px',
center: ['50%', '36%'],
radius: ['32%', '48%'],
stillShowZeroSum: false,
data: this.pieData,
// data: [
......@@ -98,13 +99,20 @@ export default {
// },
label: {
position: 'inner',
formatter: '{d}%',
show: true,
color: '#fff'
// position: 'inner',
// formatter: '{d}%',
// show: true,
// color: '#fff'
// formatter: "{b}:\n{c}人({d}%)",
formatter: '{b}\n{d}%',
// fontWeight: "bold",
// color:'red'
color: '#666666',
textStyle: {
fontWeight: 'normal',
fontSize: 14,
lineHeight: 21
}
// color: ["#1296db", "#d42378"],
},
labelLine: { show: true }
......
<template>
<div class="contain">
<!-- :style="{ width: width, height: height }" -->
<div class="echart" ref="myChart" :style="{ width: width, height: height }"></div>
</div>
</template>
<script>
export default {
props: {
width: {
type: String,
// default: () => {
// return "";
// },
default: ''
},
height: {
type: String,
default: ''
},
topDataObj: {
type: Object,
default: () => {}
}
},
data() {
return {
pieData: [
{ value: 0, name: '未加企微' },
{ value: 0, name: '已加企微' }
]
}
},
mounted() {
this.$nextTick(() => {
console.log(this.topDataObj, '饼图')
this.pieData[0].value = this.topDataObj.entmicroNotAddCustomerCount
this.pieData[1].value = this.topDataObj.entmicroAddCustomerCount
this.initChart()
})
},
methods: {
initChart() {
// 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(this.$refs.myChart)
// 绘制图表
myChart.setOption({
/* title: {
text: '客户总数',
subtext: '已加和未加企微的所有潜客和已购买客户',
left: '20',
top: '20',
textStyle: {
},
subtextStyle: {
fontSize: '12px',
fontWeight: '400',
color: '#808080'
}
},*/
tooltip: {
trigger: 'item', //模板变量有 {a}、{b}、{c}、{d},分别表示系列名,数据名,数据值,百分比。{d}数据会根据value值计算百分比
formatter: '{b} : {c}人 ({d}%)'
},
color: ['#5850FF', '#FFB21F'],
// legend: {
// orient: "vertical",
// bottom: "bottom",
// },
series: [
{
name: '客户总数',
type: 'pie',
// radius: '118px',
center: ['50%', '36%'],
radius: ['32%', '48%'],
stillShowZeroSum: false,
data: this.pieData,
// data: [
// { value: 3000, name: '未加企微' },
// { value: 7000, name: '已加企微' }
// ],
// emphasis: {
itemStyle: {
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 0, 0, 0.5)',
//下面控制显示饼状图上百分比
normal: {
// color: function (params) {
// //自定义颜色
// var colorList = [
// "#00FFFF",
// "#00FF00"
// ];
// return colorList[params.dataIndex];
// },
label: {
position: 'inner',
formatter: '{d}%',
// show: true,
color: '#fff',
// fontSize:14,
// formatter: "{b}:\n{c}人({d}%)",
// fontWeight: "bold",
// color: '#666666'
// color: ["#1296db", "#d42378"],
},
labelLine: { show: true }
}
}
// },
}
]
})
}
}
}
</script>
<style lang="scss" scoped>
.contain {
position: relative;
z-index: 9;
}
</style>
......@@ -127,6 +127,9 @@ export default {
}
</script>
<style lang="scss" scoped>
/deep/.glsx-table .emptyBg .noDataImg {
margin-top: 150px !important;
}
/deep/ .el-radio:focus:not(.is-focus):not(:active):not(.is-disabled) .el-radio__inner {
box-shadow: none;
}
......
......@@ -30,17 +30,18 @@ Vue.prototype.$apis = apis
Vue.use(glsxTable)
Vue.prototype.$message = message
Vue.prototype.size = 'small'
// Vue.prototype.btn_size = 'mini'
// Vue.prototype.btn_size = 'mini'
Vue.prototype.$Constants = Constants
Vue.prototype.$Utils = Util
Vue.prototype.$Commons = common
Vue.prototype.$echarts = echarts
//过滤器统一处理预加载
//过滤器统一处理预加载
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
Vue.filter(key, filters[key])
})
export { bootstrap, mount, unmount } from '@/setup'
export { bootstrap, mount, unmount }
from '@/setup'
export const http = params => Vue.prototype.$http(params)
export const http2 = params => Vue.prototype.$http2(params)
export const http3 = params => Vue.prototype.$http3(params)
export const http_common = params => Vue.prototype.$http_common(params)
export const http_common = params => Vue.prototype.$http_common(params)
\ No newline at end of file
......@@ -23,6 +23,12 @@ const staticRoutes = Object.freeze([{
meta: {}
},
{
name: 'marketingPeople',
path: '/clientDataOverview/GroupOperating/marketingPeople',
component: resolve => require([`@/views/clientDataOverview/GroupOperating/marketingPeople`], resolve),
meta: {}
},
{
name: 'clientManage',
path: '/clientManage/index',
component: resolve => require([`@/views/clientManage/index.vue`], resolve),
......@@ -120,7 +126,7 @@ const staticRoutes = Object.freeze([{
},
{
name: 'crowdDetail',
path: '/crowdManage/crowdDetail:id',
path: '/crowdManage/crowdDetail/:id/:type',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {}
},
......
import { Message } from "element-ui";
import { debounce } from "./index.js";
import { Message } from 'element-ui'
import { debounce } from './index.js'
// const error = debounce((msg, getToken) => {
// if(window.__POWERED_BY_QIANKUN__) {
// let stateRes = {
......@@ -20,70 +20,68 @@ import { debounce } from "./index.js";
// }
// }
// }, 1000, true);
const error=msg=>{
if(msg){
const error = msg => {
if (msg) {
Message({
message:msg,
type:'error'
message: msg,
type: 'error'
})
}
}
const checkStatus = (status, msg) => {
const checkStatus = (status, msg) => {
switch (status) {
case 400:
error(`Bad Request 错误的请求`);
break;
case 401:
error('用户没有权限(令牌、用户名、密码错误)!');
break;
case 403:
error('用户得到授权,但是访问是被禁止的。!');
break;
// 404请求不存在
case 404:
error('网络请求错误,未找到该资源!');
break;
case 405:
error('网络请求错误,请求方法未允许!');
break;
case 408:
error('网络请求超时!');
break;
case 500:
error('服务器错误,请联系管理员!');
break;
case 501:
error('网络未实现!');
break;
case 502:
error('网络错误!');
break;
case 503:
error('服务不可用,服务器暂时过载或维护!');
break;
case 504:
error('网络超时!');
break;
case 505:
error('http版本不支持该请求!');
break;
case 603:
error('尚未登录或登录已过期,请重新登录', 'removeToken');
break;
case 505:
error('http版本不支持该请求!');
break;
case 'fail':
error('网络连接错误');
break;
case 'custom':
error(`${msg}`);
break;
default:
case 400:
error(`Bad Request 错误的请求`)
break
case 401:
error('用户没有权限(令牌、用户名、密码错误)!')
break
case 403:
error('用户得到授权,但是访问是被禁止的。!')
break
// 404请求不存在
case 404:
error('网络请求错误,未找到该资源!')
break
case 405:
error('网络请求错误,请求方法未允许!')
break
case 408:
error('网络请求超时!')
break
case 500:
error('服务器错误,请联系管理员!')
break
case 501:
error('网络未实现!')
break
case 502:
error('网络错误!')
break
case 503:
error('服务不可用,服务器暂时过载或维护!')
break
case 504:
error('网络超时!')
break
case 505:
error('http版本不支持该请求!')
break
case 603:
error('尚未登录或登录已过期,请重新登录', 'removeToken')
break
case 505:
error('http版本不支持该请求!')
break
case 'fail':
error('网络连接错误')
break
case 'custom':
error(`${msg}`)
break
default:
}
}
}
export {
checkStatus
}
\ No newline at end of file
export { checkStatus }
\ No newline at end of file
<template>
<div class="scrm-sub-client-container">
<div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="searchFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="marketingPlan" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :noDataImg="url" :tableParams="tableParams">
<template slot="options" slot-scope="scope">
<el-button class="blue-text" type="text" @click="goBasicInfo(scope.scope)">SOP分析</el-button>
<el-button class="blue-text" type="text" @click="goBasicInfo(scope.scope)">编辑</el-button>
<el-button class="blue-text" type="text" @click="confirm('delete')">删除</el-button>
<el-button class="blue-text" type="text" @click="confirm(scope.scope)">结束</el-button>
</template>
</GLTable>
</div>
</div>
</template>
<script>
import { getTableList } from '@/api/modules/clientManage'
export default {
data() {
return {
searchForm: {},
searchFormList: [
{
type: 'input',
inputType: 'text',
// name: 'keyword',
label: '人群名称'
},
{
type: 'select',
// name: 'type',
label: '营销状态',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: ''
}
],
placeholder: '请选择'
}
],
getListApi: getTableList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'total' },
tableParams: {
listName: 'data',
tableColumns: [
{
label: '人群名称',
prop: 'orderNo'
},
{
label: 'SOP名称',
prop: 'name'
},
{
label: '营销时间',
prop: 'phone'
},
{
label: '完成度',
prop: 'dsdasd'
},
{
label: '营销状态',
prop: 'dsdasds'
},
{
label: '操作',
prop: 'options',
addHtml: 'options'
}
]
}
}
},
mounted() {
//没数据的时候要算高度
setTimeout(() => {
if (!this.$refs.marketingPlan.data.length) {
this.loading = true
this.$refs.marketingPlan.setTableHeightFun()
this.loading = false
}
}, 200)
},
methods: {
// 确认删除或结束
confirm(type) {
this.$confirm(`是否确认${type == 'delete' ? '删除' : '结束'}?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
})
.then(() => {
this.$message({
type: 'success',
message: '操作成功!'
})
})
.catch(() => {
this.$message({
type: 'info',
message: '已取消操作'
})
})
},
setTableFinishFun() {
this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun()
},
setTableHeightEvent() {
this.$refs.marketingPlan.setTableHeightFun()
},
// 搜索表格
searchTable() {
console.log(this.searchForm)
this.$refs.marketingPlan.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = {
status: '',
type: ''
}
this.$refs.marketingPlan.refreshTable()
}
}
}
</script>
<style lang="scss" scoped>
.pageContent {
padding: 20px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
}
</style>
<template>
<div>
<!-- 大标题 -->
<p class="topTitle">
<span class="title">待定保客户</span>
<span class="desc">下个月待定保客户</span>
</p>
<!-- 切换导航栏 -->
<el-tabs v-model="activeName" @tab-click="handleClick">
<el-tab-pane label="营销人群" name="first">
<!-- v-if="activeName == 'first'" -->
<div class="pageContent">
<div class="markPeople">
<span>营销人群</span>
<span v-if="itemArr.length > 4 && !closeFlag" @click="expandClick('expand')">
展开营销人群
<i class="el-icon-arrow-down color-58"></i>
</span>
<span v-if="closeFlag" @click="expandClick('close')">
收起营销人群
<i class="el-icon-arrow-up color-58"></i>
</span>
</div>
<el-divider></el-divider>
<!-- 营销人群展示 -->
<div class="bigMarketItem" v-if="closeFlag">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem']" @click="choickItem(idx)">
<template v-if="idx < displayNum">
<p class="peopleName">人群名称</p>
<div class="itemBox">
<p class="peopleNum">
{{ item.num }}
<span>人</span>
</p>
<p class="peopledesc">{{ item.desc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP()" :disabled="item.type">创建营销SOP</el-button>
</div>
</template>
</div>
</div>
<div v-show="!closeFlag">
<div class="swiper-container" id="swiper">
<div class="swiper-wrapper">
<div v-for="(item, idx) in itemArr" :key="idx" :class="[{ active: isActive == idx }, 'marketItem', 'swiper-slide']" @click="choickItem(idx, item.title)">
<div class="marketItem-border">
<p class="peopleName">{{ item.title }}</p>
<div class="itemBox">
<p class="peopleNum">
{{ item.num }}
<span>人</span>
</p>
<p class="peopledesc">{{ item.desc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP(item.id)" :disabled="item.type">创建营销SOP</el-button>
</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
</div>
<div class="otherPageContent">
<GLCombiForm v-if="activeName == 'first'" :formObj="searchForm" :formData="marketPeopleFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<div class="leadList">
<div>
<span>{{ showTitle }}</span>
</div>
<div>
<el-button size="small" @click="handleExport">导出</el-button>
<el-button class="marketSOP" size="small" @click="marketButton()">营销SOP</el-button>
</div>
</div>
<GLTable v-loading="loading" :hasNum="true" @setTableHeightEvent="setTableHeightEvent" @setTableFinishFun="setTableFinishFun" ref="marketPeople" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams"></GLTable>
</div>
</el-tab-pane>
<el-tab-pane label="营销计划" name="second">
<marketing-plan v-if="activeName == 'second'"></marketing-plan>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import marketingPlan from './components/marketingPlan.vue'
import Swiper from 'swiper'
import util from '@/utils/util'
import 'swiper/dist/css/swiper.min.css'
export default {
name: 'marketPeople',
components: { marketingPlan },
data() {
return {
activeName: 'first',
searchForm: {},
isActive: -1,
displayNum: 4, //展示的数目
closeFlag: false, //展开收起
showTitle: '', // 展示的标题
itemArr: [
// 后台传一个状态回来
{ title: 'N-23待定保客户', num: 323, desc: '我顶着大太阳,只想为你撑伞', id: 1, type: 'false' },
{ title: 'N-45待定保客户', num: 1312, desc: '你专心在画睫毛,我专心在等你笑', id: 2 },
{ title: 'N-33待定保客户', num: 43133, desc: '气球在我手上,牵着你瞎逛' },
{ title: 'N-1待定保客户', num: 123213, desc: '城堡为爱守着秘密,而我为你守着爱情' },
{ title: 'N-2待定保客户', num: 1233, desc: '喜欢在人潮中,你只属于我的那画面' },
{ title: 'N-7待定保客户', num: 43133, desc: '但偏偏,风渐渐,把距离吹的好远' },
{ title: 'N-6待定保客户', num: 123213, desc: '最美的不是下雨天,是曾与你躲过雨的屋檐' },
{ title: 'N-5待定保客户', num: 1233, desc: '美人鱼的眼泪' },
{ title: 'N-4待定保客户', num: 1233, desc: '我一路向北,离开有你的季节' }
],
marketPeopleFormList: [
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '车牌号'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '车系'
},
{
type: 'select',
name: 'status',
label: '跟进员工',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: ''
},
{
label: '待跟进',
value: 0
},
{
label: '跟进中',
value: 1
},
{
label: '已完成',
value: 2
}
],
placeholder: '请选择'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '联系电话'
},
{
type: 'input',
inputType: 'text',
name: 'keyword',
label: '企微名称'
},
{
type: 'input',
inputType: 'text',
name: 'userName',
label: '客户名称'
},
{
type: 'select',
name: 'isJoin',
label: '是否已加企微',
placeholder: '请选择',
optionLabel: 'label',
optionId: 'value',
optionList: [
{
label: '全部',
value: null
},
{
label: '是',
value: 1
},
{
label: '否',
value: 0
}
]
},
{
type: 'datePicker',
name: 'daterange',
label: '购车',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'datePicker',
name: 'daterange',
label: '车险到期时间',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
}
],
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableParams: {
listName: 'data',
tableColumns: [
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
minWidth: 150
},
{
label: '企微名称',
prop: 'customerPhone',
minWidth: 120
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth: 140
},
{
label: '邀请人',
prop: 'invitorName',
minWidth: 120
},
{
label: '入群时间',
prop: 'joinTime',
width: 170
}
],
tableOption: {
width: 60,
btnList: [
{
name: '详情',
pType: 'detail'
}
]
}
}
// getListApi: getDetailQuitTableList,
}
},
mounted() {
new Swiper('.swiper-container', {
// paginationClickable: true,
grabCursor: true,
spaceBetween: 16,
mousewheel: true,
slidesPerView: 'auto',
pagination: {
el: '.swiper-pagination',
type: 'progressbar'
}
})
},
methods: {
// 搜索表格
searchTable() {
console.log(this.searchForm)
this.$refs.marketPeople.refreshTable()
},
//重置表格
resetTable() {
this.searchForm = {}
this.$refs.marketPeople.refreshTable()
},
// 跳转到营销SOP
createMarketSOP(id) {
util.openUrl(location.origin + `/marketing/sop/editSop?addOrEdit=add&fromPage=sopList&corwedId=${id}`)
},
expandClick(val) {
if (val == 'expand') {
this.closeFlag = true
this.displayNum = this.itemArr.length
} else {
this.closeFlag = false
this.displayNum = 4
}
},
// 选择的人群
choickItem(idx, title) {
this.isActive = idx
this.showTitle = title
// 发送请求查询列表
},
setTableFinishFun() {
this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
},
setTableHeightEvent() {
this.$refs.marketPeople.setTableHeightFun()
},
handleClick(tab) {
console.log(tab)
}
}
}
</script>
<style lang="scss" scoped>
/deep/.swiper-container-horizontal > .swiper-pagination-progressbar {
width: 5%;
bottom: 0px;
top: auto;
right: 0;
margin: auto;
border-radius: 3px;
background: #dddee0;
.swiper-pagination-progressbar-fill {
background: #5850ff;
border-radius: 3px;
}
}
#swiper {
padding: 0 20px;
.swiper-wrapper {
margin-bottom: 20px;
.swiper-slide {
width: 274px;
.marketItem-border {
min-height: 251px;
.peopleName {
height: 54px;
line-height: 54px;
background: #f7f7fc;
font-size: 16px;
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
}
.itemBox {
border-left: 1px solid #ededf0;
border-right: 1px solid #ededf0;
border-bottom: 1px solid #ededf0;
padding: 0 16px;
box-sizing: border-box;
.peopleNum {
padding: 24px 0;
font-size: 26px;
font-weight: 600;
color: #333333;
span {
font-size: 14px;
font-weight: 400;
}
}
.peopledesc {
font-size: 14px;
color: #999999;
line-height: 20px;
height: 40px;
}
.createSOP {
margin: 24px 0;
border-radius: 4px;
border: 1px solid #5850ff;
width: 100%;
color: #5850ff;
padding: 9px 20px;
}
}
}
}
}
}
.active {
border: 1px solid #5850ff;
}
.topTitle {
.title {
color: #333333;
font-size: 20px;
font-weight: 600;
}
.desc {
margin-left: 8px;
font-size: 14px;
color: #666666;
}
}
/deep/.el-tabs__header {
padding: 5px 0;
.el-tabs__item {
font-size: 16px;
}
}
.pageContent {
padding: 0 0 20px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
.markPeople {
padding: 20px 20px 0;
display: flex;
justify-content: space-between;
font-weight: 600;
color: #333333;
span:last-child {
color: #5850ff;
cursor: pointer;
}
}
.bigMarketItem {
padding: 0 20px;
display: grid;
grid-template-columns: 25% 25% 25% 25%;
.marketItem {
margin-right: 16px;
margin-bottom: 16px;
// width: 25%;
&:nth-child(4n) {
margin-right: 0;
}
.peopleName {
height: 54px;
line-height: 54px;
background: #f7f7fc;
font-size: 16px;
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
}
.itemBox {
border-left: 1px solid #ededf0;
border-right: 1px solid #ededf0;
border-bottom: 1px solid #ededf0;
padding: 0 16px;
box-sizing: border-box;
.peopleNum {
padding: 24px 0;
font-size: 26px;
font-weight: 600;
color: #333333;
span {
font-size: 14px;
font-weight: 400;
}
}
.peopledesc {
font-size: 14px;
color: #999999;
line-height: 20px;
}
.createSOP {
margin: 24px 0;
border-radius: 4px;
border: 1px solid #5850ff;
width: 100%;
color: #5850ff;
padding: 9px 20px;
}
}
}
}
.progressBar {
width: 40px;
height: 4px;
background: #dddee0;
border-radius: 3px;
margin: 20px auto 0px;
.progress {
background: #5850ff;
height: 4px;
width: 0;
border-radius: 3px;
}
}
}
.otherPageContent {
padding: 20px 20px 30px;
margin-top: 16px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
.leadList {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
div {
text-align: center;
span:nth-child(1) {
font-weight: 600;
font-size: 20px;
}
}
/deep/ .el-button {
color: #5850ff;
border: 1px solid #5850ff;
}
.marketSOP {
color: #666666;
border: 1px solid #696969;
}
}
}
.PageContent2 {
padding: 20px 20px 30px;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
background-color: #fff;
}
</style>
<template>
<div class="scrm-sub-client-container">
<div class="head-container">
<template v-if="crowdType == ''">
<div class="head-container-title color-3 font-20">{{ $Constants.DESCRIBEDATA[id - 1].name }}</div>
<div class="head-container-content color-6 font-14">{{ $Constants.DESCRIBEDATA[id - 1].info }}</div>
<template v-if="crowdType == '3'">
<div class="head-container-title color-3 font-20">{{ $Constants.DESCRIBEDATA.find(item => item.id == id) ? $Constants.DESCRIBEDATA.find(item => item.id == id).name : '' }}</div>
<div class="head-container-content color-6 font-14">{{ $Constants.DESCRIBEDATA.find(item => item.id == id) ? $Constants.DESCRIBEDATA.find(item => item.id == id).info : '' }}</div>
</template>
<template v-else>
<div class="head-container-title color-3 font-20">{{ crowdForm.crowdName }}</div>
......@@ -19,10 +19,16 @@
全部客户
<span class="main-container-head-number font-14">{{ totalCount }}个</span>
</div>
<GLButton size="small" @click="handleExport" class="export" fn="导出">导出</GLButton>
<div>
<el-button size="small" @click="handleExport" class="export">导出</el-button>
<el-button plain size="small">
营销SOP
</el-button>
</div>
</div>
<GLTable ref="groupRef" :getListApi="getListApi" :searchForm="tableSearchForm" :tableParams="tableParams" :noDataImg="url" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn" @setTableFinishFun="setTableFinishFun">
<span slot="customerName" slot-scope="scope" style="display:flex;align-items:center">
<span slot="customerName" slot-scope="scope" style="display: flex; align-items: center">
<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>
......@@ -56,12 +62,13 @@
<script>
import { getCustomerList, getcrowdManageList, customerClusterListExport } from '@/api/modules/clientDataOverview'
import { getStaffList } from '@/api/modules/clientManage'
// import Constants from '@common/constants.js'
import url from '@/assets/empty.png'
export default {
name: 'group',
data() {
return {
getListApi: this.$route.params.crowdType ? getcrowdManageList : getCustomerList,
getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? getcrowdManageList : getCustomerList,
pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: {
customerPhone: '',
......@@ -91,11 +98,11 @@ export default {
name: 'nickName',
label: '企微名称'
},
{
type: 'input',
name: 'customerName',
label: '客户名称'
},
// {
// type: 'input',
// name: 'customerName',
// label: '客户名称'
// },
{
type: 'select',
name: 'isJoin',
......@@ -131,40 +138,41 @@ export default {
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
minWidth: 150
width: 150
},
{
label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 220
width: 220
},
{
label: '联系电话',
prop: 'customerPhone',
minWidth: 130
width: 130
},
{
label: '车牌号',
prop: 'carNumber',
minWidth: 120
width: 120
},
{
label: '车架号',
prop: 'carVin',
minWidth: 140,
line:1
width: 140,
line: 1
},
{
label: '车系',
prop: 'audi',
minWidth: 170
width: 170
},
{
label: '跟进员工',
prop: 'followStaff',
// addHtml: 'followStaff',
minWidth: 170
width: 170,
line:1
},
{
label: '是否加企微', //1. 加入,0.未加入
......@@ -190,13 +198,37 @@ export default {
}
]
},
url: url
}
},
created() {
let { id } = this
this.init(id)
// 针对广汇替换字段
if (this.id == 1 && location.host.includes('cgacar')) {
this.tableParams.tableColumns.splice(
3,
3,
{
label: '线索时间',
prop: 'clueTime',
width: 170,
line: 1
},
{
label: '意向车型',
prop: 'intentModel',
width: 170,
line: 1
},
{
label: '线索来源',
prop: 'clueSource',
width: 150,
line: 1
}
)
}
},
mounted() {
this.getStaffList()
......@@ -275,7 +307,23 @@ export default {
this.$refs.groupRef.data.length ? (this.$refs.groupRef.tableHeightValues = '') : this.$refs.groupRef.setTableHeightFun()
},
goBack() {
this.$router.go(-1)
if (this.crowdType == 1) {
this.$router.push({
path: '/crowdManage/index',
query: {
selectTab: 1
}
})
} else if (this.crowdType == 2) {
this.$router.push({
path: '/crowdManage/index',
query: {
selectTab: 2
}
})
} else {
this.$router.push('/clientDataOverview/index')
}
}
}
}
......@@ -348,7 +396,7 @@ export default {
padding: 20px;
box-sizing: border-box;
.main-container-head {
margin-bottom: 20px;
margin-bottom: 10px;
&-title {
font-weight: 500;
line-height: 20px;
......
......@@ -8,182 +8,319 @@
</template>
<!-- @click="goNextPage" -->
<div class="bannerWrapBox" v-if="isHasCustomerCountBanner">
<!-- <img src="@/assets/clientDetail/defaultAvator.png" class="inTimeBtn" alt="" /> -->
<img class="bannerWrap" usemap="#planetmap" src="@/assets/clientDataOverview/companyBanner.png" alt="" />
<map name="planetmap" id="planetmap" style="cursor: pointer">
<!-- href="https://www.baidu.com" -->
<area shape="rect" coords="849,97,933,121" @click="goNextPage" target="_blank" />
</map>
</div>
<h3 class="pageSubTitle">客户分层</h3>
<div class="topmsg">
<div class="leftPieEcharts">
<span class="title">客户总数</span>
<span class="subtitle" v-if="accountLevel == 4">门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重</span>
<span class="subtitle" v-else>企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重</span>
<span class="clientTotal">
<!-- 可以动态跑数字 -->
<!-- <animate-number from="0" :to="(topDataObj.customerCount || 0) | overThousandFilter" :key="(topDataObj.customerCount || 0) | overThousandFilter" duration="2000"></animate-number> -->
{{ (topDataObj.customerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<template v-if="isShowData">
<div class="topIcon">
<span class="normalTitle">客户分层</span>
<div style="display:flex">
<div class="leftPieEcharts">
<div class="leftIntro">
<span class="title">客户总数</span>
<el-popover placement="top" width="400" trigger="hover" content="门店的所有客户数,包括企微客户、导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重">
<span class="dataOverPopover">门店的所有客户数,包括企微客户、导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重</span>
<img class="questionImg" v-if="accountLevel == 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
<el-popover placement="top" width="400" trigger="hover" content="企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重">
<span class="dataOverPopover">企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重</span>
<img class="questionImg" v-if="accountLevel !== 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientTotal">
<!-- 可以动态跑数字 -->
<!-- <animate-number from="0" :to="(topDataObj.customerCount || 0) | overThousandFilter" :key="(topDataObj.customerCount || 0) | overThousandFilter" duration="2000"></animate-number> -->
{{ (topDataObj.customerCount || 0) | overThousandFilter }}
<span class="totalUnit">人</span>
</p>
<template v-if="isShowData">
<!-- <div class="topIcon">
<span class="top-inWechat">已加企微</span>
<span class="top-outWechat">未加企微</span>
</div>
<div class="qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="blueNum">{{ (topDataObj.entmicroAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
<div class="qiwei-describe">
<div class="outWechat">未加企微</div>
<div class="yellowNum">{{ (topDataObj.entmicroNotAddCustomerCount || 0) | overThousandFilter }}人</div>
</div> -->
<div class="qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="blueNum">{{ (topDataObj.entmicroAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
<div class="qiwei-describe">
<div class="outWechat">未加企微</div>
<div class="yellowNum">{{ (topDataObj.entmicroNotAddCustomerCount || 0) | overThousandFilter }}人</div>
</div>
</div>
</div>
<!-- 引入echart组件 -->
<pie-echart width="100%" height="448px" :topDataObj="topDataObj"></pie-echart>
<div class="personsMap" v-if="topDataObj.entmicroAddCustomerCount > 0">
<!-- <pictorial-bar width="100%" height="500px" :entmicroAddCustomerCount="topDataObj.entmicroAddCustomerCount" :entmicroNotAddCustomerCount="topDataObj.entmicroNotAddCustomerCount"></pictorial-bar> -->
</div>
</template>
<no-data :type="'hasIconText'" v-if="!isShowData"></no-data>
</div>
<div class="itembox">
<div class="buy">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<!-- <span>购买(存档)客户数</span> -->
<span>基盘客户数</span>
<span>有购车或其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
{{ (topDataObj.purchaseCustomerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span v-if="!isEmptyObj">
占比:{{ purchasePercent }}%
<i class="triangle" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i>
</span>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<!-- <i class="vertical-line"></i> -->
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(5)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在基盘客户中,已加企微的客户</span>
<!-- <button class="btn">企微魔方&gt;&gt;</button> -->
<!-- <i class="horizontal-line"></i> -->
</div>
<el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(6)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在基盘客户中,未加企微的客户</span>
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
<!-- 引入echart组件 -->
<pie-echart width="100%" height="300px" :topDataObj="topDataObj"></pie-echart>
<!-- <pie-echart-copy class="pieCopy" width="100%" height="300px" :topDataObj="topDataObj"></pie-echart-copy> -->
<div class="personsMap" v-if="topDataObj.entmicroAddCustomerCount > 0">
<!-- <pictorial-bar width="100%" height="500px" :entmicroAddCustomerCount="topDataObj.entmicroAddCustomerCount" :entmicroNotAddCustomerCount="topDataObj.entmicroNotAddCustomerCount"></pictorial-bar> -->
</div>
</div>
</template>
<no-data :type="'hasIconText'" v-if="!isShowData"></no-data>
</div>
<div class="no-buy mgt10">
<div class="no-buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<span>潜在意向客户数</span>
<span>无购车且无其他交易行为的所有客户</span>
<span v-if="!isEmptyObj">
{{ (topDataObj.purposeCustomerCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span v-if="!isEmptyObj">
占比:{{ purposePercent }}%
<!-- active: !isNoBuyUp 有active就是绿色-->
<i class="triangle" :class="{ active: isNoBuyUp === 2 }" v-if="isNoBuyUp"></i>
<i v-else>--</i>
</span>
<!-- <i class="vertical-line"></i> -->
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
</div>
<el-divider direction="vertical"></el-divider>
<div class="rightWrap">
<div class="inCompanyWechatNum item smallWrap" @click="goto(2)" fn="人群客户列表" mode="div">
<span>已加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在潜在意向客户中,已加企微的客户</span>
<!-- <i class="horizontal-line"></i> -->
<div class="itembox">
<div style="display:flex;overflow:hidden">
<div class="buy">
<div class="buy-total item" @click="goto(4)" fn="人群客户列表" mode="div">
<div class="buyTitle">
<span class="client">基盘客户</span>
<el-popover placement="top" trigger="hover" content="有购车或其他交易行为的所有客户">
<span class="dataOverPopover">有购车或其他交易行为的所有客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.purchaseCustomerCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ purchasePercent }}%
<!-- <i class="triangle-+" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i> -->
</span>
</div>
<el-divider></el-divider>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient">
<div @click="goto(5)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,已加企微的客户">
<span class="dataOverPopover">在基盘客户中,已加企微的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purchaseCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
<el-dropdown>
<span class="el-dropdown-link">
一键营销`
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>智能营销</el-dropdown-item>
<el-dropdown-item>群发助手</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div> -->
</div>
<div @click="goto(6)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,未加企微的客户">
<span class="dataOverPopover">在基盘客户中,未加企微的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerNAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
智能营销
<i class="el-icon-arrow-right"></i>
</div> -->
<!-- <span>未加企微客户数</span>
<span>{{ (topDataObj.purchaseCustomerNAddCount || 0) | overThousandFilter }}人</span>
<span>在基盘客户中,未加企微的客户</span>
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button> -->
</div>
</div>
</div>
<!-- <el-divider direction="vertical"></el-divider> -->
</div>
<el-divider></el-divider>
<div class="outCompanyWechatNum item smallWrap" @click="goto(3)" fn="人群客户列表" mode="div">
<span>未加企微客户数</span>
<span>
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</span>
<span>在潜在意向客户中,未加企微的客户</span>
<!-- &nbsp;&nbsp;&gt;&gt;-->
<button class="btn" @click.stop="toGuideCompanyWechat" v-if="accountLevel == 4">
引流企微
<i class="el-icon-d-arrow-right"></i>
</button>
<div class="buy">
<div class="buy-total item" @click="goto(1)" fn="人群客户列表" mode="div">
<div class="buyTitle">
<span class="client">潜在意向客户</span>
<el-popover placement="top" trigger="hover" content="无购车且无其他交易行为的所有客户">
<span class="dataOverPopover">无购车且无其他交易行为的所有客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.purposeCustomerCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ purposePercent }}%
<!-- <i class="triangle" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i> -->
</span>
</div>
<el-divider></el-divider>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient">
<div @click="goto(2)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,已加企微的客户">
<span class="dataOverPopover">在潜在意向客户中,已加企微的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span> -->
<span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
<el-dropdown>
<span class="el-dropdown-link">
一键营销
<i class="el-icon-arrow-down el-icon--right"></i>
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item>智能营销</el-dropdown-item>
<el-dropdown-item>群发助手</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</div> -->
</div>
<div @click="goto(3)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,未加企微的客户">
<span class="dataOverPopover">在潜在意向客户中,未加企微的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<p class="clientNum">
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerNAddPercent && topDataObj.purposeCustomerNAddPercent.toFixed(2)) || 0 }}%</span> -->
<span class="numPro">占比:{{ topDataObj.purposeCustomerNAddPercent | percentageDeal }}%</span>
</p>
<!-- <div class="marketingBtn">
智能营销
<i class="el-icon-arrow-right"></i>
</div> -->
</div>
</div>
</div>
</div>
</div>
</div>
<div class="intended mgt10" @click="goto(11)">
<div class="intend-name">已加企微,待匹配客户</div>
<div class="intend-info">已加企微,且未匹配到潜在意向和基盘客户的客户</div>
<div class="intend-statistics">
<div class="intend-statistics-num">{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}人</div>
<div class="intend-statistics-rate">
占比:{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
<!-- 已加企微,待匹配客户 -->
<!-- <div class="intended mgt10" @click="goto(11)">
<div class="intend-name">已加企微,待匹配客户</div>
<div class="intend-info">已加企微,且未匹配到潜在意向和基盘客户的客户</div>
<div class="intend-statistics">
<div class="intend-statistics-num">{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}人</div>
<div class="intend-statistics-rate">
占比:{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</div>
</div>
</div> -->
<div class="intendedTop">
<!-- 已加企微,待匹配客户 -->
<div class="intended" @click="goto(11)">
<p class="intend-name">
<span class="nameHover">已加企微,待匹配客户</span>
<span class="intend-phone" @click.stop="goto(20)">(已绑定手机号{{ (topDataObj.notMatchCustomerAddPhoneCount || 0) | overThousandFilter }}人)</span>
<el-popover placement="top" trigger="hover" content="已加企微,且未匹配到潜在意向或基盘客户的客户">
<span class="dataOverPopover">已加企微,且未匹配到潜在意向或基盘客户的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</p>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.waitMatchCustomerAddCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ (topDataObj.waitMatchPercent && topDataObj.waitMatchPercent.toFixed(2)) || 0 }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</span>
</div>
</div>
<!-- 未加企微,未匹配客户 -->
<div class="intended" @click="goto(21)">
<p class="intend-name">
<span>未加企微,未匹配客户</span>
<el-popover placement="top" trigger="hover" content="未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户">
<span class="dataOverPopover">未添加企微或添加企微后删除好友,且未匹配到意向和基盘客户的客户</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</p>
<div class="proportion">
<span class="proNum" v-if="!isEmptyObj">
{{ (topDataObj.notMatchCustomerNAddCount || 0) | overThousandFilter }}
<span class="proPerson">人</span>
</span>
<span class="ratio" v-if="!isEmptyObj">
占比:
<img src="@/assets/clientDataOverview/upIcon.png" />
{{ topDataObj.notMatchCustomerNAddPercent | percentageDeal }}%
<i class="triangle" :class="{ active: topDataObj.waitMatchUp === 2 }" v-if="topDataObj.waitMatchUp"></i>
<i v-else>--</i>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="middlemsg">
<h3 class="pageSubTitle">客户分群</h3>
<div class="settiongBox">
<span class="normalTitle">客户分群</span>
<div class="set">
<span>设置</span>
<i class="el-icon-arrow-right color-58"></i>
</div>
</div>
<div class="itembox">
<template v-for="(item, index) in titles">
<div class="item" @click="goto(item.id)" fn="人群客户列表" mode="div" :key="index">
<p>{{ item.name }}</p>
<p>{{ item.subName }}</p>
<p>
{{ item.num | overThousandFilter }}人
<!-- <span class="person-text">人</span> -->
</p>
<img :src="item.url" alt="" />
<div class="middlemsg-qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="num">
{{ (item.add(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
<!-- fn="人群客户列表" mode="div" -->
<div class="item" @click="goToGroupOperating()" :key="index">
<div class="itemTitle">
<span class="itemName">{{ item.name }}</span>
<el-popover placement="top" trigger="hover" :content="item.subName">
<span class="dataOverPopover">{{ item.subName }}</span>
<img class="questionImg" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover>
</div>
<div class="itemBottom">
<p class="totalNum">
{{ item.num | overThousandFilter }}
<span class="enum">人</span>
</p>
<div class="middlemsg-qiwei-total">
<div class="qiwei-describe">
<div class="inWechat">已加企微</div>
<div class="num">
{{ (item.add(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
</div>
</div>
</div>
<div class="qiwei-describe">
<div class="inWechat">未加企微</div>
<div class="num">
{{ (item.noAdd(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
<div class="qiwei-describe">
<div class="inWechat">未加企微</div>
<div class="num">
{{ (item.noAdd(topDataObj) || 0) | overThousandFilter }}
<span class="person-text">人</span>
</div>
</div>
</div>
</div>
......@@ -191,8 +328,9 @@
</template>
</div>
</div>
<h3 class="pageSubTitle">客户增长趋势</h3>
<!-- <h3 class="pageSubTitle">客户增长趋势</h3> -->
<div class="bottommsg">
<span class="normalTitle">客户增长趋势</span>
<no-data :type="'hasIconText'" v-if="!isShowBarMap"></no-data>
<template v-if="isShowBarMap">
<span class="timeDuring">{{ allMapList[0].dateTime }}~{{ allMapList[allMapList.length - 1].dateTime }}</span>
......@@ -201,7 +339,7 @@
<button class="btn7 optionBtn" :class="{ activeDayIcon: this.timeGap == 7 }" @click="clickSeven">近7天</button>
<div class="clientAddTrend">
<div class="one1">
<span>区间统计:</span>
<span>区间合计:</span>
<span>
全部客户:
<a>{{ bottomDataObj.customerCount | overThousandFilter }}人</a>
......@@ -238,12 +376,8 @@ import { rwdImageMaps } from './jquery.rwdImageMaps.js'
import { getDataOverview, getDataOverviewBarMap } from '@/api/modules/clientDataOverview'
import { getLoginCount } from '@/api/modules/loginCount'
import pieEchart from '@/components/echarts/pieEchart'
// import pieEchartCopy from '@/components/echarts/pieEchartCopy'
import multipleEchart from '@/components/echarts/multipleEchart'
// import pictorialBar from '@/components/echarts/pictorialBar'
import url1 from '../../assets/clientDataOverview/cars.png'
import url2 from '../../assets/clientDataOverview/renewal.png'
import url3 from '../../assets/clientDataOverview/maintenance.png'
import url4 from '../../assets/clientDataOverview/silence.png'
import noData from '@/components/noData/noData'
export default {
name: 'clientDataOverview',
......@@ -252,9 +386,11 @@ export default {
multipleEchart,
// pictorialBar,
noData
// pieEchartCopy
},
data() {
return {
crowdType: 3,
isCloseShowNumTag: false,
isReload: true,
isShowModal: false,
......@@ -285,7 +421,6 @@ export default {
noAdd: obj => {
return obj.newCarCustomerNAddCount
},
url: url1,
id: 7
},
{
......@@ -298,7 +433,6 @@ export default {
noAdd: obj => {
return obj.needRenewalCustomerNAddCount
},
url: url2,
id: 8
},
{
......@@ -311,7 +445,6 @@ export default {
noAdd: obj => {
return obj.burseholderCustomerNAddCount
},
url: url3,
id: 9
},
{
......@@ -324,7 +457,6 @@ export default {
noAdd: obj => {
return obj.silenceCustomerNAddCount
},
url: url4,
id: 10
}
],
......@@ -354,6 +486,12 @@ export default {
})
})
},
filters: {
percentageDeal(val) {
if (val) return (val * 100).toFixed(2) || 0
return 0
}
},
computed: {
isEmptyObj() {
if (Object.keys(this.topDataObj).length == 0) {
......@@ -387,8 +525,10 @@ export default {
//不是首次进来,登录次数为2,客户总数大于0,不显示banner,小于0,继续显示banner;
this.getDataOverviewBarMapFun()
},
methods: {
goToGroupOperating() {
this.$router.push('/clientDataOverview/GroupOperating/marketingPeople')
},
goNextPage() {
// window.open('https://www.baidu.com', '_blank')
// this.dialogVisible = true
......@@ -585,7 +725,8 @@ export default {
//跳转到人群客户列表
goto(id) {
if (this.userType == 2) return
this.$router.push('/clientDataOverview/group/' + id)
// this.$router.push('/clientDataOverview/group/' + id )
this.$router.push(`/clientDataOverview/group/${id}/${this.crowdType}`)
}
}
}
......@@ -594,6 +735,15 @@ export default {
<style lang="scss" scoped>
@import '@/styles/variables.scss';
@import '@/styles/resetelement.scss';
.dataOverPopover {
font-size: 12px;
line-height: 18px;
color: #666666;
}
.pieCopy {
//设置两个pie重合
top: -300px;
}
.scrm-sub-client-container {
.person-text {
font-size: 16px !important;
......@@ -638,27 +788,13 @@ export default {
left: 50%;
bottom: 18%;
transform: translateX(-50%);
// font-size: 16px;
// font-weight: 500;
// color: #fff;
// background-color: $btnBlue;
// border-radius: 4px;
}
.bannerWrapBox {
width: 100%;
min-width: 1050px;
// position: relative;
// .inTimeBtn {
// position: absolute;
// bottom: 20px;
// right: 50px;
// }
.bannerWrap {
width: 100%;
// height: 146px;
//object-fit: contain; //保持图片的原始比例,最大程度展示
}
}
......@@ -673,25 +809,26 @@ export default {
letter-spacing: 1px;
}
.topmsg {
display: flex;
// display: flex;
min-width: 1050px;
background: #ffffff;
.leftPieEcharts {
position: relative;
background-color: #fff;
width: 372px;
height: 554px; //470
height: 370px;
// height: 480px; //470
box-sizing: border-box;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
.title {
position: absolute;
left: 20px;
top: 20px;
font-weight: bold;
font-size: 16px;
color: #333333;
height: 22px;
line-height: 22px;
.leftIntro {
margin-top: 20px;
.title {
margin-left: 20px;
font-weight: bold;
font-size: 16px;
color: #333333;
}
}
.subtitle {
position: absolute;
padding-right: 16px;
......@@ -703,15 +840,15 @@ export default {
line-height: 20px;
}
.clientTotal {
position: absolute;
right: 20px;
top: 20px;
height: 26px;
font-size: 26px;
font-weight: 500;
margin: 16px 0 0 20px;
font-size: 36px;
color: #333333;
line-height: 26px;
z-index: 9;
font-weight: 700;
.totalUnit {
font-size: 16px;
color: #333333;
font-weight: 400;
}
}
.topIcon {
position: absolute;
......@@ -756,58 +893,39 @@ export default {
width: 372px;
padding: 0 57px;
position: absolute;
bottom: 38px;
bottom: 18px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
}
.inWechat {
// position: absolute;
// left: 57px;
// top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
z-index: 9;
margin-bottom: 4px;
text-align: center;
margin-bottom: 8px;
}
.blueNum {
// position: absolute;
// left: 57px;
// top: 389px;
height: 25px;
font-size: 18px;
text-align: center;
font-weight: 600;
color: #716aff;
color: #333333;
line-height: 25px;
z-index: 9;
}
.outWechat {
// position: absolute;
// right: 57px;
// top: 365px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
background-color: #fff;
z-index: 9;
margin-bottom: 4px;
text-align: center;
margin-bottom: 8px;
}
.yellowNum {
// position: absolute;
// right: 57px;
// top: 389px;
font-size: 18px;
font-weight: 600;
color: #fe9c1c;
color: #333333;
line-height: 25px;
text-align: center;
}
......@@ -820,8 +938,8 @@ export default {
}
}
.itembox {
width: calc(100% - 382px);
width: calc(100% - 392px);
margin-top: 20px;
.item {
// border: 1px solid rgba(121, 121, 121, 1);
height: 86px;
......@@ -830,7 +948,7 @@ export default {
.item.no-buy-total,
.item.buy-total {
// height: 238px;
width: 50%;
// width: 50%;
position: relative;
height: auto;
cursor: pointer;
......@@ -918,229 +1036,229 @@ export default {
.no-buy,
.buy {
display: flex;
margin-left: 10px;
background-color: #fff;
height: 222px;
&:last-child {
margin-top: 10px;
}
}
.intended {
height: 90px;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-left: 10px;
position: relative;
box-sizing: border-box;
cursor: pointer;
.intend-name {
height: 22px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
padding: 20px 0 8px 24px;
font-weight: bold;
}
.intend-info {
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
margin-left: 24px;
width: calc(100% - 433px);
}
.intend-statistics {
position: absolute;
display: flex;
left: 364px;
top: 32px;
&-num {
font-size: 26px;
font-weight: 600;
color: #424242;
line-height: 26px;
letter-spacing: 1px;
margin-right: 12px;
margin-left: 16px;
width: 50%;
background-color: #f9f9fc;
padding-bottom: 20px;
.buy-total {
width: 100%;
.buyTitle {
margin-top: 16px;
.client {
margin-left: 16px;
font-size: 16px;
color: #333333;
font-weight: 600;
&:hover {
color: #625aff;
}
}
}
&-rate {
font-size: 16px;
font-weight: 500;
color: #565656;
line-height: 22px;
.proportion {
padding: 24px 0 16px 16px;
// border-bottom: 1px solid #e5e5e5;
width: 100%;
box-sizing: border-box;
.proNum {
font-size: 26px;
color: #333333;
line-height: 26px;
font-weight: 700;
.proPerson {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
.ratio {
margin-left: 16px;
font-size: 14px;
color: #666666;
img {
vertical-align: middle;
}
}
}
.triangle {
display: inline-block;
vertical-align: middle;
width: 0px;
height: 0px;
border-bottom: 6px solid #ff2020;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
&.active {
border-bottom: 6px solid #2cca74;
transform: rotate(180deg);
/deep/ .el-divider--horizontal {
width: 96%;
margin: 4px auto;
text-align: center;
}
.firmClient {
display: flex;
justify-content: space-between;
.clientCompleted {
margin: 20px 0 10px 16px;
display: flex;
font-size: 14px;
color: #666666;
}
.clientNum {
margin: 10px 0px 10px 16px;
font-size: 16px;
color: #333333;
font-weight: 700;
.personText {
font-size: 12px;
color: #333333;
font-weight: 400;
}
.numPro {
margin-left: 16px;
font-size: 12px;
color: #666666;
font-weight: 400;
}
}
.marketingBtn {
margin: 16px 0 10px 16px;
font-size: 14px;
color: #625aff;
/deep/ .el-dropdown-link {
color: #625aff;
}
}
}
}
}
.rightWrap {
width: 48%;
margin-left: 20px;
cursor: pointer;
position: relative;
.intendedTop {
display: flex;
margin-top: 16px;
.intended {
// height: 110px;
width: 50%;
background: #f9f9fc;
margin-left: 16px;
padding: 16px 32px 20px 16px;
cursor: pointer;
.intend-name {
font-size: 16px;
color: #333333;
letter-spacing: 0.8px;
font-weight: 600;
white-space: nowrap;
.nameHover {
&:hover {
color: #625aff;
}
}
.smallWrap {
position: relative;
> span {
position: absolute;
&:first-child {
font-weight: bold;
height: 22px;
font-size: 16px;
color: #333333;
line-height: 22px;
top: 20px;
.intend-phone {
font-size: 14px;
color: #666666;
font-weight: 400;
&:hover {
color: #625aff;
}
}
&:nth-child(2) {
height: 26px;
}
.proportion {
padding: 26px 0 0 0px;
.proNum {
font-size: 26px;
font-weight: 600;
color: #333333;
line-height: 26px;
right: 20px;
top: 20px;
font-weight: 700;
.proPerson {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
&:nth-child(3) {
top: 50px;
height: 20px;
.ratio {
margin-left: 16px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
color: #666666;
img {
vertical-align: middle;
}
}
}
.btn {
position: absolute;
top: 82px;
padding: 6px 20px;
box-sizing: border-box;
border-radius: 4px;
border: 1px solid $btnBlue;
background-color: #fff;
color: #6861ff;
font-size: 14px;
font-weight: 400;
}
}
.inCompanyWechatNum {
// background-color: red;
// position: absolute;
width: 100%;
.horizontal-line {
position: absolute;
width: 100%;
height: 1px;
background: #f0f0f0;
bottom: 0;
right: 0;
}
}
.el-divider--horizontal {
display: block;
height: 1px;
width: 100%;
margin: 0;
}
}
}
}
.middlemsg {
margin-top: 16px;
min-width: 1050px;
background: #ffffff;
padding-bottom: 1px;
.settiongBox {
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid #e5e5e5;
.normalTitle {
border-bottom: none;
}
.set {
font-size: 16px;
color: #5850ff;
margin-right: 20px;
}
}
.itembox {
margin: 20px;
display: flex;
width: 100%;
justify-content: space-between;
.item {
width: 25%;
// padding: 20px;
position: relative;
height: 215px;
border: 1px solid #fff;
background-color: #fff;
box-sizing: border-box;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
// border: 1px solid rgba(121, 121, 121, 1);
cursor: pointer;
&:not(:first-child) {
margin-left: 20px;
}
&:hover {
border: 1px solid $btnBlue;
margin-right: 16px;
&:last-child {
margin-right: 0;
}
p {
position: absolute;
&:first-child {
left: 20px;
top: 20px;
height: 22px;
.itemTitle {
height: 54px;
background: #f4f6fc;
display: flex;
align-items: center;
.itemName {
font-size: 16px;
font-weight: bold;
color: #333333;
line-height: 22px;
}
&:nth-child(2) {
width: calc(100% - 98px);
left: 20px;
top: 46px;
height: 20px;
font-size: 14px;
font-weight: 400;
color: #999999;
line-height: 20px;
font-weight: 600;
padding-left: 16px;
}
&:nth-child(3) {
left: 20px;
top: 87px;
height: 26px;
}
.itemBottom {
padding-bottom: 20px;
border-left: 1px solid #e5e5e5;
border-right: 1px solid #e5e5e5;
border-bottom: 1px solid #e5e5e5;
.totalNum {
font-size: 26px;
font-weight: 600;
color: #333333;
line-height: 26px;
font-weight: 700;
padding: 24px 0 32px 16px;
.enum {
font-size: 18px;
font-weight: 400;
color: #333333;
vertical-align: middle;
}
}
.middlemsg-qiwei-total {
display: flex;
justify-content: space-between;
.qiwei-describe {
padding: 0px 16px;
.inWechat {
color: #666666;
font-size: 14px;
}
.num {
margin-top: 4px;
font-size: 16px;
color: #333333;
font-weight: 600;
.person-text {
font-size: 14px;
color: #333333;
font-weight: 400;
}
}
}
}
}
img {
position: absolute;
right: 20px;
top: 20px;
}
}
}
&-qiwei-total {
width: 100%;
padding: 0 20px;
position: absolute;
bottom: 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
.qiwei-describe {
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
margin-bottom: 4px;
text-align: center;
}
.num {
font-size: 16px;
font-weight: 600;
color: #333333;
line-height: 22px;
text-align: center;
.person-text {
font-weight: 500;
}
}
}
......@@ -1151,6 +1269,7 @@ export default {
min-width: 1050px;
height: 578px;
background-color: #fff;
margin-top: 16px;
.timeDuring {
margin-left: 20px;
margin-top: 20px;
......
......@@ -101,39 +101,44 @@ export default {
{
label: '本群昵称',
prop: 'groupNickName',
minWidth: 120
width: 170,
line: 1
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
minWidth: 150
width: 170,
line: 1
},
{
label: '手机号码',
prop: 'customerPhone',
minWidth: 120
line: 1,
width:200
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
addHtml: 'customerSex',
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
minWidth: 150
width: 190,
line: 1
},
{
label: '邀请人',
prop: 'invitorName',
minWidth: 120
width: 120,
line: 1
},
{
label: '入群时间',
prop: 'joinTime',
width: 170
width: 170,
}
],
tableOption: {
......
......@@ -18,7 +18,7 @@
</span>
<span slot="delFlag" slot-scope="scope">
<span :class="{ circleStatusGreen: scope.scope.delFlag == 0, circleStatusGray: scope.scope.delFlag == -1 }"></span>
{{ scope.scope.delFlag == -1 ? '已解散' : scope.scope.delFlag == 0 ? '正常' : '' }}
<span>{{ scope.scope.delFlag == -1 ? '已解散' : scope.scope.delFlag == 0 ? '正常' : '' }}</span>
</span>
<template slot="auth-button" slot-scope="scope" :data="scope.scope">
<!-- <auth-button :data="scope.scope"></auth-button> -->
......@@ -133,7 +133,7 @@ export default {
label: '群聊名称',
prop: 'custGroupName',
line: 1,
minWidth: 160
width: 160
},
{
label: '当前成员总数',
......
......@@ -619,9 +619,13 @@ export default {
},
tabClick(index) {
this.currentIndex = index
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
this.$refs.clientTagsListRef.setTableHeightFun()
}
this.$nextTick(() => {
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
this.$refs.clientTagsListRef.setTableHeightFun()
console.log(this.$refs.clientTagsListRef.tableHeightValues, '----------------')
// this.$refs.clientTagsListRef.tableHeightValues =
}
})
},
showTagArray(list) {
if (list.length == 0) {
......@@ -630,7 +634,7 @@ export default {
return list.slice(0, 9)
},
/* *
/* *
用途:js中字符串超长作固定长度加省略号(...)处理
参数说明:
str:需要进行处理的字符串,可含汉字
......@@ -830,14 +834,15 @@ export default {
})
})
})
const userIdList = this.nickNameList.map(item => item.userId)
let param = {
'req.OneId': this.id,
'req.merchantId': this.merchantId,
'req.uuId': this.userid,
'req.staffId': this.staffId,
'req.labelIdAddList': labelIdAddList,
'req.labelIdDelList': labelIdDelList
'req.labelIdDelList': labelIdDelList,
'req.userIdList': userIdList
}
addSingleClientTag(param)
.then(res => {
......@@ -1115,6 +1120,18 @@ export default {
}
// 处理客户标签的样式
.clientTagsWrap {
/deep/ .el-table:before {
background-color: #fff !important;
}
/deep/ .el-table__empty-block {
height: auto;
position: absolute;
top: 50%;
transform: translateY(-50%);
}
/deep/ .glsx-table .emptyBg .noDataImg {
margin-top: 0;
}
.allTagsWrap {
position: relative;
.tag-box-wrap {
......
......@@ -22,13 +22,13 @@
<div v-if="!followList(scope.scope.followStaff).length">--</div>
<div class="entmicro-tag" style="padding-right:3px" v-for="(tag, idx) in followList(scope.scope.followStaff)" :key="idx">
<el-tooltip effect="dark" :content="tag" placement="top">
<el-tag type="info" class="ellipsis-1" v-if="idx < 2" :disable-transitions="false">
<el-tag type="info" class="ellipsis-1" v-if="idx < 3" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag }}
</el-tag>
</el-tooltip>
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 2 && idx == 2">
<el-tag type="info" v-if="followList(scope.scope.followStaff).length > 3 && idx == 3">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<div slot="reference">...({{ followList(scope.scope.followStaff).length }})</div>
<div class="entmicro-hover">
......@@ -222,6 +222,29 @@ export default {
optionId: 'value',
placeholder: '请选择性别',
optionList: this.$Constants.GENDER_OPTION
},
{
type: 'datePicker',
name: 'purchaseCar',
label: '购车时间',
valueFormat: 'yyyy-MM-dd',
pickerOptions: {
disabledDate(time) {
return time.getTime() > Date.now() || time.getTime() < new Date('2017-12-31').getTime()
}
}
},
{
type: 'input',
inputType: 'text',
name: 'carVin',
label: '车架号'
},
{
type: 'input',
inputType: 'text',
name: 'carNumber',
label: '车牌号'
}
],
......@@ -229,29 +252,33 @@ export default {
tableParams: {
listName: 'data',
tableOption: false,
// mutiSelectName: 'employeeList',
// mutiSelectUniqueKey: 'id',
tableColumns: [
{
label: '客户ID',
prop: 'oneId',
minWidth: 170
width:140,
line: 1
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
width: 120
width: 120,
line:1
},
{
label: '企微名称',
prop: 'nickNameList',
addHtml: 'nickNameList',
minWidth: 190
width: 190,
},
{
label: '联系电话',
prop: 'customerPhone',
addHtml: 'customerPhone',
minWidth: 130
width: 130
},
{
label: '性别',
......@@ -262,7 +289,7 @@ export default {
label: '跟进员工',
prop: 'followStaff',
addHtml: 'followStaff',
minWidth: 280
width: 320
},
{
label: '是否加企微', //1. 加入,0.未加入
......@@ -274,17 +301,18 @@ export default {
label: '当前状态',
prop: 'status',
addHtml: 'status',
minWidth: 130
width: 120
},
{
label: '所属渠道',
prop: 'sourceChannel',
minWidth: 100
width: 140,
line: 1
},
{
label: '添加来源',
prop: 'addWayName',
minWidth: 120
width: 120
},
{
label: '添加时间',
......@@ -292,6 +320,30 @@ export default {
width: 170
},
{
label: '车系',
prop: 'audi',
width: 120,
line:1
},
{
label: '车架号',
prop: 'carVin',
width: 180,
line:1
},
{
label: '车牌号',
prop: 'carNumber',
width: 140,
line:1
},
{
label: '购车时间',
prop: 'buyDate',
width: 170,
line:1
},
{
label: '操作',
prop: 'optionBtns',
width: '65px',
......@@ -364,7 +416,14 @@ export default {
} else {
if (params.beginTime) delete params.beginTime && delete params.endTime
}
if (params.purchaseCar) {
params.beginCarBuyDate = this.searchForm.purchaseCar[0]
params.endCarBuyDate = this.searchForm.purchaseCar[1]
} else {
if (params.beginCarBuyDate) delete params.beginCarBuyDate && delete params.endCarBuyDate
}
delete params.daterange
delete params.purchaseCar
return params
},
beforeSearchFn() {
......
......@@ -107,6 +107,7 @@ export default {
crowdDesc: ''
},
crowdId: this.$route.params.id ? this.$route.params.id : '',
crowdPage: this.$route.params.crowdType ? this.$route.params.crowdType : '',
tableTotal: '',
isShowCloseBtn: true,
dialogRuleVisible: false,
......@@ -147,17 +148,18 @@ export default {
}
},
created() {
console.log('this.$route.params.id', this.$route.params.id)
// 通过人群Id查询人群详情
this.getCrowdDetails()
},
mounted() {},
mounted() {
console.log(this.$route.params)
},
methods: {
goBack() {
this.$router.push({
path: '/crowdManage/index',
query: {
selectTab: 1
selectTab: this.crowdPage
}
})
},
......
......@@ -28,6 +28,7 @@
<GLButton type="text" @click="btnClick('detail', scope.scope)" class="blue-text" fn="查看详情">查看详情</GLButton>
<!-- <span style="margin-left: 20px" @click="btnClick('view', scope.scope)" class="blue-text">查看客户</span> -->
<GLButton class="blue-text leftDistance" type="text" fn="客户列表" v-if="userType !== 2" @click="btnClick('view', scope.scope)">查看客户</GLButton>
<el-button type="text" class="blue-text" >营销SOP</el-button>
</template>
</GLTable>
</div>
......@@ -65,31 +66,26 @@ export default {
{
label: '人群名称',
prop: 'crowdName',
addHtml: 'crowdName',
align: 'left',
minWidth: 160
addHtml: 'crowdName'
// width: 160
// width: 431
},
{
label: '人群描述',
prop: 'crowdDesc',
addHtml: 'crowdDesc',
align: 'left',
minWidth: 160
addHtml: 'crowdDesc'
// width: 160
},
{
label: '人数',
prop: 'total',
// addHtml: 'total',
align: 'left'
prop: 'total'
},
{
label: '操作',
prop: 'xxx',
fixed: 'right',
addHtml: 'xxx',
align: 'left',
width: 180
width: 250
}
]
},
......@@ -107,15 +103,25 @@ export default {
this.userType = this.$globalState.session.userType
}
this.searchForm = { 'req.merchantId': this.merchantId, 'req.crowdType': this.crowdType }
//标签管理保存初始化保存自定义人群状态
// if (this.$route.query.selectTab == 1) {
// this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname)
// }
if (this.$route.query.selectTab) {
this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
}
},
mounted() {
console.log(this.$route.params)
},
mounted() {},
methods: {
btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`)
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}/${crowdType}`)
}
if (type == 'view') {
const crowdType = this.activeName == 'first' ? 1 : 2
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
}
},
......@@ -123,22 +129,20 @@ export default {
this.$router.push('/crowdManage/crowdAdd')
},
setTableFinishFun() {
console.log(this.$refs.crowdManage.data.length)
if (!this.$refs.crowdManage.data.length) {
this.$nextTick(() => this.$refs.crowdManage.setTableHeightFun())
} else {
this.$refs.crowdManage.tableHeightValues = ''
}
},
setTableHeightEvent() {
this.$refs.crowdManage.setTableHeightFun()
},
handleClick() {
this.searchForm = { 'req.keyword': '' }
this.searchTable()
},
beforeSearchFn() {
if (this.$route.query.selectTab) {
this.activeName = 'second'
// window.history.pushState(null, null, location.origin + location.pathname)
}
return new Promise(resolve => {
const crowdType = this.activeName == 'first' ? 1 : 2
this.searchForm = Object.assign(this.searchForm, { 'req.merchantId': this.merchantId, 'req.crowdType': crowdType })
......@@ -184,7 +188,7 @@ export default {
}
}
/deep/ .el-tabs__header {
margin: 0 0 20px;
margin: 0 0 10px;
}
/deep/ .el-tabs__nav-wrap::after {
content: none;
......@@ -246,7 +250,7 @@ export default {
}
}
.crowdTable {
padding: 0 20px;
// padding: 0 20px;
/deep/ .line-ellipsis {
white-space: nowrap;
......
......@@ -9,7 +9,7 @@
</div>
<div class="container">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="searchFormData" labelWidth="70px">
<search-form class="searchTop border-shadow" :formModel="searchForm" :formList="searchFormData" labelWidth="85px">
<span class="inline-b" style="float: right" slot="form-slot">
<el-button type="primary" @click="searchTable">查询</el-button>
</span>
......@@ -18,11 +18,11 @@
<GLTable ref="gueastGroup" @setTableFinishFun="setTableFinishFun" :noDataImg="url" :getListApi="getListApi" :searchForm="searchForm" :tableParams="tableParams" :pageConf="pageConf">
<div slot="entmicro-name" class="entmicro" slot-scope="scope">
<div class="entmicro-tag" v-for="(tag, idx) in scope.scope.userList" :key="idx">
<el-tag type="info" v-if="idx < 2" :disable-transitions="false">
<el-tag type="info" v-if="idx < 3" :disable-transitions="false">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}{{ tag.departmentName ? `(${tag.departmentName})` : '' }}
</el-tag>
<el-tag type="info" v-if="scope.scope.userList.length > 2 && idx == 2">
<el-tag type="info" v-if="scope.scope.userList.length > 3 && idx == 3">
<el-popover placement="top" width="600" trigger="hover" content="这是一段内容,这是一段内容,这是一段内容,这是一段内容。">
<span slot="reference">...({{ scope.scope.userList.length }})</span>
<div class="entmicro-hover">
......@@ -69,7 +69,7 @@ export default {
type: 'input',
inputType: 'text',
prop: 'groupName',
label: '群聊名称',
label: '群聊名称:',
placeholder: '请输入群聊名称搜索',
clearable: true
}
......@@ -92,19 +92,19 @@ export default {
{
label: '默认成员',
prop: 'entmicroName',
minWidth: 250,
minWidth: 320,
addHtml: 'entmicro-name'
},
{
label: '创建时间',
prop: 'createdTime',
line: 1,
minWidth: 110
// minWidth: 110
},
{
label: '状态',
prop: 'status',
minWidth: 130,
// minWidth: 130,
addHtml: 'status'
},
{
......@@ -342,7 +342,7 @@ export default {
}
}
.btn-header {
margin-bottom: 20px;
margin-bottom: 10px;
}
.container {
margin-bottom: 20px;
......
......@@ -19,9 +19,7 @@
<!-- 线索状态 -->
<template slot="status" slot-scope="scope">
<span :class="{ circleStatusYellow: scope.scope.status == 0, circleStatusPurple: scope.scope.status == 1, circleStatusGreen: scope.scope.status == 2 }"></span>
<span>
{{ scope.scope.status == 0 ? '待跟进' : scope.scope.status == 1 ? '跟进中' : scope.scope.status == 2 ? '已完成' : '' }}
</span>
<span>{{ scope.scope.status == 0 ? '待跟进' : scope.scope.status == 1 ? '跟进中' : scope.scope.status == 2 ? '已完成' : '' }}</span>
</template>
<!-- 跟进员工 -->
<template slot="userName" slot-scope="scope">
......
......@@ -14,7 +14,7 @@
<yl-descriptions v-if="leadType == 5 || leadType == 6" ref="ylDeacriptions" :tableModel="orderDescriModel" :showData="leadBaseList" />
</div>
<!-- 跟进记录 -->
<div class="baseTitle" >
<div class="baseTitle">
<p class="title">跟进记录</p>
<hr />
<div class="timestamp" v-if="this.leadFollowRecord.length > 0">
......@@ -28,7 +28,7 @@
</el-timeline-item>
</el-timeline>
</div>
<div :style="{ 'height': clientHeight- 450 + 'px' }" class="noRecord" v-else>
<div :style="{ height: clientHeight - 450 + 'px' }" class="noRecord" v-else>
<img src="@/assets/leadManage/noRecord.png" alt="" />
</div>
</div>
......@@ -53,6 +53,7 @@ export default {
leadType: '', //线索类型
leadBaseList: {}, //线索详情基本信息
leadFollowRecord: [], //线索详情跟进记录
copySameDescri: [],
theSameDescri: [
{
colList: [
......@@ -103,10 +104,7 @@ export default {
// 维保预约
orderDescri: [
{
colList: [
{ thColspan: 1, tdColspan: 2, label: '车牌号', name: 'plateNum' },
{ thColspan: 1, tdColspan: 2, label: '里程数(km)', name: 'mileage' }
]
colList: [{ thColspan: 1, tdColspan: 5, label: '试驾车辆', name: 'carName' }]
},
{
colList: [{ thColspan: 1, tdColspan: 5, label: '门店', name: 'merchantName' }]
......@@ -118,6 +116,7 @@ export default {
this.leadId = this.$route.params.id ? this.$route.params.id : ''
this.leadType = this.$route.params.type ? this.$route.params.type : ''
this.getBaseDetail()
this.addCol()
},
mounted() {
this.clientHeight = document.documentElement.clientHeight - 140
......@@ -133,10 +132,20 @@ export default {
},
// 维保预约
orderDescriModel() {
return this.theSameDescri.concat(this.orderDescri)
return this.copySameDescri.concat(this.orderDescri)
}
},
methods: {
addCol() {
let addcolList = {
colList: [
{ thColspan: 1, tdColspan: 2, label: '预约时间', name: 'appointDate' },
{ thColspan: 1, tdColspan: 2, label: '到店时间', name: 'appointTime' }
]
}
this.copySameDescri = JSON.parse(JSON.stringify(this.theSameDescri))
this.copySameDescri.splice(3, 0, addcolList)
},
goback() {
this.$router.push('/leadManage/index')
},
......@@ -269,7 +278,7 @@ export default {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;//img如果超出这个div会隐藏超出部分
overflow: hidden; //img如果超出这个div会隐藏超出部分
}
}
}
......
......@@ -165,15 +165,28 @@ export default {
this.$nextTick(() => {
status && this.updateTreeNode()
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 205 + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
this.setTreeHeight()
})
this.loading = false
})
},
nodeExpand() {
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 205 + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
setTreeHeight(domNode) {
const nodeHeight = document.querySelectorAll('.el-tree>.el-tree-node').length * 30
if (domNode) {
domNode.style.maxHeight = this.$parent.heightBox - 80 - nodeHeight + 'px'
domNode.style.overflow = 'auto'
} else {
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.maxHeight = this.$parent.heightBox - 80 - nodeHeight + 'px'
document.querySelector('.el-tree>.el-tree-node.is-expanded .el-tree-node__children').style.overflow = 'auto'
}
},
nodeExpand(data, node, target) {
if (data.sort) {
this.$nextTick(() => {
const domNode = target.$refs.node.lastElementChild
this.setTreeHeight(domNode)
})
}
}
},
mounted() {
......@@ -184,7 +197,7 @@ export default {
<style lang="scss" scoped>
.content-wrap {
padding: 16px 3px 16px 16px;
padding: 16px 3px 0px 16px;
box-sizing: border-box;
height: 100%;
.tree-input {
......@@ -201,7 +214,6 @@ export default {
}
.tag-tree {
margin-top: 20px;
height: calc(100% - 80px);
overflow-y: auto;
/deep/ {
.el-tree-node {
......
......@@ -30,7 +30,7 @@
<i class="el-icon-close" @click="closeInitPanel"></i>
</div>
<div class="client-main-box">
<div class="client-tag" :style="{ height: heightBox + 'px' }">
<div class="client-tag">
<tag-group @getCheckItem="getCheckItem" ref="tagTree" @editTag="btnClick"></tag-group>
</div>
<div class="client-tabel">
......@@ -95,6 +95,12 @@
>
保存为人群
</el-button>
<el-button
plain
size="small"
>
营销SOP
</el-button>
</div>
</div>
<!-- noDataText="你当前还没有添加的标签" -->
......@@ -274,7 +280,7 @@ import { getLoginCount } from '@/api/modules/loginCount'
import tagGroup from './components/tagGroup.vue'
import url from '@/assets/clientDataOverview/nodata.png'
import tag from '@/mixins/tag'
import util from '@/utils/util'
import { utils } from 'glsx-common'
export default {
mixins: [tag],
name: 'tagsManage',
......@@ -702,7 +708,7 @@ export default {
this.tagForm.tagsName = rowData.labelGroup.name //标签组名
this.tagForm.initTagsGroup = rowData.labelType == '企业标签' || rowData.labelType == '集团标签' ? 1 : rowData.labelType == '自店标签' ? 2 : '' //标签组类型
},
handleConfirm() {
handleConfirm: utils.debounce(function() {
this.$refs.tagForm.$children[0].validate(valid => {
if (!valid) {
if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
......@@ -732,7 +738,7 @@ export default {
this.$message.error('不能提交相同的标签,请修改')
return
}
this.newAddTagFun()
this.newAddTagFun(1)
//this.handleClose() //这里不管
} else {
//修改标签(允许同时增加标签)
......@@ -758,12 +764,75 @@ export default {
return
}
}
console.log('点击了几次')
this.updateTagFun()
this.newAddTagFun()
// this.handleClose()
}
})
},
}, 300),
// handleConfirm() {
// this.$refs.tagForm.$children[0].validate(valid => {
// if (!valid) {
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// // return
// }
// return
// }
// if (this.tagForm.tagsList.length <= 0 && this.tagDialogTitle == '添加标签组') {
// this.tagNameRules = true
// this.$message.error('至少要添加一个标签')
// return
// }
// if (this.tagDialogTitle == '添加标签组') {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// if (this.tagForm.tagsList.length <= 0) {
// this.$message.error('不能提交空标签')
// return
// }
// //如果存在添加标签的输入框的内容的标签相同则不提交
// let isSameTagFlag = false
// var tempArr = this.tagForm.tagsList.map(item => item.name)
// isSameTagFlag = this.isHasSome(tempArr)
// if (isSameTagFlag) {
// this.$message.error('不能提交相同的标签,请修改')
// return
// }
// this.newAddTagFun(1)
// //this.handleClose() //这里不管
// } else {
// //修改标签(允许同时增加标签)
// let isHasEmpty = this.editTagList.some(ele => ele.name == '')
// if (isHasEmpty) {
// this.$message.error('不能提交空的编辑标签')
// return
// }
// if (this.tagForm.tagsList.length > 0) {
// //过滤掉没有输入值得标签输入框
// this.tagForm.tagsList = this.tagForm.tagsList.filter(item => item.name != '')
// //如果存在添加标签的输入框的内容和可编辑的标签相同则不提交
// let ishasSameTagFlag = false
// this.editTagList.forEach(item => {
// for (let i = 0; i < this.tagForm.tagsList.length; i++) {
// if (this.tagForm.tagsList[i].name == item.name) {
// ishasSameTagFlag = true
// }
// }
// })
// if (ishasSameTagFlag) {
// this.$message.error('不能提交已存在的标签,请修改')
// return
// }
// }
// this.updateTagFun()
// this.newAddTagFun()
// // this.handleClose()
// }
// })
// },
handleRuleClose() {
this.dialogRuleVisible = false
},
......@@ -783,7 +852,7 @@ export default {
this.tagForm.tagsList = [] //取消时清空新增标签
this.tagVisible = !this.tagVisible
},
newAddTagFun() {
newAddTagFun(status) {
//满足条件进行提交
let params = {}
params['labelDTO.dataFrom'] = 'cs'
......@@ -801,7 +870,8 @@ export default {
}
if (res.data.code == 0) {
if (this.tagForm.tagsList.length > 0) {
this.$message.success('添加成功')
// this.$message.success('添加成功')
status && this.$message.success('添加成功')
}
if (this.tagDialogTitle == '编辑标签组') {
this.tagForm.tagsName = ''
......@@ -847,7 +917,7 @@ export default {
// this.tagForm.tagsName = ''
// this.tagForm.initTagsGroup = ''
// this.tagForm.tagsList = []
this.$refs.tagTree.getTableList(true) //刷新下表格
// this.$refs.tagTree.getTableList(true) //刷新下表格 //重复请求了
})
},
//删除一行标签
......@@ -1218,7 +1288,7 @@ export default {
justify-content: space-between;
align-items: center;
padding-top: 14px;
padding-bottom: 20px;
padding-bottom: 10px;
letter-spacing: 1px;
.clientNum {
// display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!