Commit d3fd8929 by xuyl

Merge branch 'v2.3.0' of http://192.168.3.233:8090/saas/scrm-micro-custom into xuyl_dev_v2.4.0

2 parents 39988786 4b6387c6
...@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{ ...@@ -126,7 +126,7 @@ const staticRoutes = Object.freeze([{
}, },
{ {
name: 'crowdDetail', name: 'crowdDetail',
path: '/crowdManage/crowdDetail:id', path: '/crowdManage/crowdDetail/:id/:type',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve), component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {} meta: {}
}, },
......
<template> <template>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="head-container"> <div class="head-container">
<template v-if="crowdType == ''"> <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-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> <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>
...@@ -68,7 +68,7 @@ export default { ...@@ -68,7 +68,7 @@ export default {
name: 'group', name: 'group',
data() { data() {
return { 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' }, pageConf: { pageSize: 'pageSize', pageNum: 'pageNum', totalCount: 'count' },
tableSearchForm: { tableSearchForm: {
customerPhone: '', customerPhone: '',
...@@ -138,40 +138,41 @@ export default { ...@@ -138,40 +138,41 @@ export default {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
minWidth: 150 width: 150
}, },
{ {
label: '企微名称', label: '企微名称',
prop: 'nickNameList', prop: 'nickNameList',
addHtml: 'nickNameList', addHtml: 'nickNameList',
minWidth: 220 width: 220
}, },
{ {
label: '联系电话', label: '联系电话',
prop: 'customerPhone', prop: 'customerPhone',
minWidth: 130 width: 130
}, },
{ {
label: '车牌号', label: '车牌号',
prop: 'carNumber', prop: 'carNumber',
minWidth: 120 width: 120
}, },
{ {
label: '车架号', label: '车架号',
prop: 'carVin', prop: 'carVin',
minWidth: 140, width: 140,
line: 1 line: 1
}, },
{ {
label: '车系', label: '车系',
prop: 'audi', prop: 'audi',
minWidth: 170 width: 170
}, },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
// addHtml: 'followStaff', // addHtml: 'followStaff',
minWidth: 170 width: 170,
line:1
}, },
{ {
label: '是否加企微', //1. 加入,0.未加入 label: '是否加企微', //1. 加入,0.未加入
...@@ -197,7 +198,6 @@ export default { ...@@ -197,7 +198,6 @@ export default {
} }
] ]
}, },
url: url url: url
} }
}, },
...@@ -205,7 +205,7 @@ export default { ...@@ -205,7 +205,7 @@ export default {
let { id } = this let { id } = this
this.init(id) this.init(id)
// 针对广汇替换字段 // 针对广汇替换字段
if (this.id == 1 && location.host == 'scrm.cgacar.com') { if (this.id == 1 && location.host.includes('cgacar')) {
this.tableParams.tableColumns.splice( this.tableParams.tableColumns.splice(
3, 3,
3, 3,
...@@ -307,7 +307,23 @@ export default { ...@@ -307,7 +307,23 @@ export default {
this.$refs.groupRef.data.length ? (this.$refs.groupRef.tableHeightValues = '') : this.$refs.groupRef.setTableHeightFun() this.$refs.groupRef.data.length ? (this.$refs.groupRef.tableHeightValues = '') : this.$refs.groupRef.setTableHeightFun()
}, },
goBack() { goBack() {
this.$router.push('/clientDataOverview/index') 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')
}
} }
} }
} }
...@@ -380,7 +396,7 @@ export default { ...@@ -380,7 +396,7 @@ export default {
padding: 20px; padding: 20px;
box-sizing: border-box; box-sizing: border-box;
.main-container-head { .main-container-head {
margin-bottom: 20px; margin-bottom: 10px;
&-title { &-title {
font-weight: 500; font-weight: 500;
line-height: 20px; line-height: 20px;
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<div class="leftIntro"> <div class="leftIntro">
<span class="title">客户总数</span> <span class="title">客户总数</span>
<el-popover placement="top" width="400" trigger="hover" content="门店的所有客户数,包括企微客户、导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重"> <el-popover placement="top" width="400" trigger="hover" content="门店的所有客户数,包括企微客户、导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重">
<span class="dataOverPopover">门店的所有客户数,包括企微客户,导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重</span> <span class="dataOverPopover">门店的所有客户数,包括企微客户、导入和外部系统接入客户,并根据手机号码识别同一客户后合并去重</span>
<img class="questionImg" v-if="accountLevel == 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" /> <img class="questionImg" v-if="accountLevel == 4" src="@/assets/clientDataOverview/grayquestion.png" slot="reference" />
</el-popover> </el-popover>
<el-popover placement="top" width="400" trigger="hover" content="企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重"> <el-popover placement="top" width="400" trigger="hover" content="企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重">
...@@ -383,6 +383,7 @@ export default { ...@@ -383,6 +383,7 @@ export default {
}, },
data() { data() {
return { return {
crowdType:3,
isCloseShowNumTag: false, isCloseShowNumTag: false,
isReload: true, isReload: true,
isShowModal: false, isShowModal: false,
...@@ -714,10 +715,8 @@ export default { ...@@ -714,10 +715,8 @@ export default {
//跳转到人群客户列表 //跳转到人群客户列表
goto(id) { goto(id) {
if (this.userType == 2) return 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}` )
goToGroupOperating() {
this.$router.push('/clientDataOverview/GroupOperating/marketingPeople')
} }
} }
} }
......
...@@ -101,32 +101,32 @@ export default { ...@@ -101,32 +101,32 @@ export default {
{ {
label: '本群昵称', label: '本群昵称',
prop: 'groupNickName', prop: 'groupNickName',
width: 120, width: 170,
line: 1 line: 1
}, },
{ {
label: '客户名称', label: '客户名称',
prop: 'customerName', prop: 'customerName',
addHtml: 'customerName', addHtml: 'customerName',
width: 150, width: 170,
line: 1 line: 1
}, },
{ {
label: '手机号码', label: '手机号码',
prop: 'customerPhone', prop: 'customerPhone',
line: 1, line: 1,
width: 120 width:200
}, },
{ {
label: '性别', label: '性别',
prop: 'customerSex', prop: 'customerSex',
addHtml: 'customerSex' addHtml: 'customerSex',
}, },
{ {
label: '入群方式', label: '入群方式',
prop: 'joinScene', prop: 'joinScene',
addHtml: 'joinScene', addHtml: 'joinScene',
width: 150, width: 190,
line: 1 line: 1
}, },
{ {
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
{ {
label: '入群时间', label: '入群时间',
prop: 'joinTime', prop: 'joinTime',
width: 170 width: 170,
} }
], ],
tableOption: { tableOption: {
......
...@@ -619,9 +619,13 @@ export default { ...@@ -619,9 +619,13 @@ export default {
}, },
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
if (this.currentIndex == 2 && this.clientTagsList.length <= 0) { this.$nextTick(() => {
this.$refs.clientTagsListRef.setTableHeightFun() if (this.currentIndex == 2 && this.clientTagsList.length <= 0) {
} this.$refs.clientTagsListRef.setTableHeightFun()
console.log(this.$refs.clientTagsListRef.tableHeightValues, '----------------')
// this.$refs.clientTagsListRef.tableHeightValues =
}
})
}, },
showTagArray(list) { showTagArray(list) {
if (list.length == 0) { if (list.length == 0) {
...@@ -630,7 +634,7 @@ export default { ...@@ -630,7 +634,7 @@ export default {
return list.slice(0, 9) return list.slice(0, 9)
}, },
/* * /* *
用途:js中字符串超长作固定长度加省略号(...)处理 用途:js中字符串超长作固定长度加省略号(...)处理
参数说明: 参数说明:
str:需要进行处理的字符串,可含汉字 str:需要进行处理的字符串,可含汉字
...@@ -830,14 +834,15 @@ export default { ...@@ -830,14 +834,15 @@ export default {
}) })
}) })
}) })
const userIdList = this.nickNameList.map(item => item.userId)
let param = { let param = {
'req.OneId': this.id, 'req.OneId': this.id,
'req.merchantId': this.merchantId, 'req.merchantId': this.merchantId,
'req.uuId': this.userid, 'req.uuId': this.userid,
'req.staffId': this.staffId, 'req.staffId': this.staffId,
'req.labelIdAddList': labelIdAddList, 'req.labelIdAddList': labelIdAddList,
'req.labelIdDelList': labelIdDelList 'req.labelIdDelList': labelIdDelList,
'req.userIdList': userIdList
} }
addSingleClientTag(param) addSingleClientTag(param)
.then(res => { .then(res => {
...@@ -1115,6 +1120,18 @@ export default { ...@@ -1115,6 +1120,18 @@ export default {
} }
// 处理客户标签的样式 // 处理客户标签的样式
.clientTagsWrap { .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 { .allTagsWrap {
position: relative; position: relative;
.tag-box-wrap { .tag-box-wrap {
......
...@@ -107,6 +107,7 @@ export default { ...@@ -107,6 +107,7 @@ export default {
crowdDesc: '' crowdDesc: ''
}, },
crowdId: this.$route.params.id ? this.$route.params.id : '', crowdId: this.$route.params.id ? this.$route.params.id : '',
crowdPage: this.$route.params.crowdType ? this.$route.params.crowdType : '',
tableTotal: '', tableTotal: '',
isShowCloseBtn: true, isShowCloseBtn: true,
dialogRuleVisible: false, dialogRuleVisible: false,
...@@ -147,17 +148,18 @@ export default { ...@@ -147,17 +148,18 @@ export default {
} }
}, },
created() { created() {
console.log('this.$route.params.id', this.$route.params.id)
// 通过人群Id查询人群详情 // 通过人群Id查询人群详情
this.getCrowdDetails() this.getCrowdDetails()
}, },
mounted() {}, mounted() {
console.log(this.$route.params)
},
methods: { methods: {
goBack() { goBack() {
this.$router.push({ this.$router.push({
path: '/crowdManage/index', path: '/crowdManage/index',
query: { query: {
selectTab: 1 selectTab: this.crowdPage
} }
}) })
}, },
......
...@@ -104,19 +104,24 @@ export default { ...@@ -104,19 +104,24 @@ export default {
} }
this.searchForm = { 'req.merchantId': this.merchantId, 'req.crowdType': this.crowdType } 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) { if (this.$route.query.selectTab) {
this.activeName = 'second' this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
// window.history.pushState(null, null, location.origin + location.pathname)
} }
}, },
mounted() {}, mounted() {
console.log(this.$route.params)
},
methods: { methods: {
btnClick(type, data) { btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') { if (type == 'detail') {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}`) this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}/${crowdType}`)
} }
if (type == 'view') { if (type == 'view') {
const crowdType = this.activeName == 'first' ? 1 : 2
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`) this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!