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([{
},
{
name: 'crowdDetail',
path: '/crowdManage/crowdDetail:id',
path: '/crowdManage/crowdDetail/:id/:type',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {}
},
......
<template>
<div class="scrm-sub-client-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-content color-6 font-14">{{ $Constants.DESCRIBEDATA.find(item => item.id == id) ? $Constants.DESCRIBEDATA.find(item => item.id == id).info : '' }}</div>
</template>
......@@ -68,7 +68,7 @@ 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: '',
......@@ -138,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,
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.未加入
......@@ -197,7 +198,6 @@ export default {
}
]
},
url: url
}
},
......@@ -205,7 +205,7 @@ export default {
let { id } = this
this.init(id)
// 针对广汇替换字段
if (this.id == 1 && location.host == 'scrm.cgacar.com') {
if (this.id == 1 && location.host.includes('cgacar')) {
this.tableParams.tableColumns.splice(
3,
3,
......@@ -307,7 +307,23 @@ export default {
this.$refs.groupRef.data.length ? (this.$refs.groupRef.tableHeightValues = '') : this.$refs.groupRef.setTableHeightFun()
},
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 {
padding: 20px;
box-sizing: border-box;
.main-container-head {
margin-bottom: 20px;
margin-bottom: 10px;
&-title {
font-weight: 500;
line-height: 20px;
......
......@@ -20,7 +20,7 @@
<div class="leftIntro">
<span class="title">客户总数</span>
<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" />
</el-popover>
<el-popover placement="top" width="400" trigger="hover" content="企业的所有客户数,包括企业客户和旗下所有门店客户,并根据手机号码识别同一客户后合并去重">
......@@ -383,6 +383,7 @@ export default {
},
data() {
return {
crowdType:3,
isCloseShowNumTag: false,
isReload: true,
isShowModal: false,
......@@ -714,10 +715,8 @@ export default {
//跳转到人群客户列表
goto(id) {
if (this.userType == 2) return
this.$router.push('/clientDataOverview/group/' + id)
},
goToGroupOperating() {
this.$router.push('/clientDataOverview/GroupOperating/marketingPeople')
// this.$router.push('/clientDataOverview/group/' + id )
this.$router.push(`/clientDataOverview/group/${id}/${this.crowdType}` )
}
}
}
......
......@@ -101,32 +101,32 @@ export default {
{
label: '本群昵称',
prop: 'groupNickName',
width: 120,
width: 170,
line: 1
},
{
label: '客户名称',
prop: 'customerName',
addHtml: 'customerName',
width: 150,
width: 170,
line: 1
},
{
label: '手机号码',
prop: 'customerPhone',
line: 1,
width: 120
width:200
},
{
label: '性别',
prop: 'customerSex',
addHtml: 'customerSex'
addHtml: 'customerSex',
},
{
label: '入群方式',
prop: 'joinScene',
addHtml: 'joinScene',
width: 150,
width: 190,
line: 1
},
{
......@@ -138,7 +138,7 @@ export default {
{
label: '入群时间',
prop: 'joinTime',
width: 170
width: 170,
}
],
tableOption: {
......
......@@ -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 {
......
......@@ -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
}
})
},
......
......@@ -104,19 +104,24 @@ export default {
}
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.activeName = 'second'
// window.history.pushState(null, null, location.origin + location.pathname)
this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
}
},
mounted() {},
mounted() {
console.log(this.$route.params)
},
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}`)
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!