Commit 8312b052 by 前端

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

修复第一轮测试bug

See merge request !110
2 parents 4c8aeff5 ccadc159
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
<img src="./assets/logo.png" alt="" srcset="" /> <img src="./assets/logo.png" alt="" srcset="" />
</div> --> </div> -->
<keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,marketingPeople"> <keep-alive exclude="clientDetail,clientGroupDetail,tagsManage,clientDataOverview,guestGroup,guestGroupAdd,guestGroupDetail,group,viewCustomers,crowdDetail,crowdAdd,crowdManage,leadBasicInfo,leadAllocation,leadManage,marketingPeople,grouping">
<router-view></router-view> <router-view></router-view>
</keep-alive> </keep-alive>
</div> </div>
......
<template> <template>
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent"> <div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="searchFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <GLCombiForm :rowNumber="1" :formObj="searchForm" :formData="searchFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLTable :hasNum="true" @setTableFinishFun="setTableFinishFun" :beforeSearchFn="beforeSearchFn" ref="marketingPlan" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams"> <GLTable :hasNum="true" @setTableFinishFun="setTableFinishFun" :beforeSearchFn="beforeSearchFn" ref="marketingPlan" :getListApi="getListApi" :searchForm="searchForm" :pageConf="pageConf" :tableParams="tableParams">
<template slot="options" slot-scope="scope"> <template slot="options" slot-scope="scope">
<el-button v-if="scope.scope.sopStatus != 1" type="text" @click="handleJump(scope.scope.id)">SOP分析</el-button> <el-button v-if="scope.scope.sopStatus != 1" type="text" @click="handleJump(scope.scope.id)">SOP分析</el-button>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="pageContent"> <div class="pageContent">
<GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm> <GLCombiForm :formObj="searchForm" :formData="clientGroupFormList" @handleOk="searchTable" @handleRest="resetTable"></GLCombiForm>
<GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientGroupManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" :tableParams="tableParams"> <GLTable @setTableFinishFun="setTableFinishFun" v-if="isReload" ref="clientGroupManage" :hasNum="true" :getListApi="getListApi" :beforeSearchFn="beforeSearchFn" :noDataImg="url" :pageConf="pageConf" :searchForm="searchFormTable" :tableParams="tableParams" :expand-row-keys="expandArr">
<div slot="groupInfo" slot-scope="scope" v-if="scope.scope.crowdUnitList && scope.scope.crowdUnitList.length"> <div slot="groupInfo" slot-scope="scope" v-if="scope.scope.crowdUnitList && scope.scope.crowdUnitList.length">
<div class="table-tr"> <div class="table-tr">
<div class="tabel-th">人群名称</div> <div class="tabel-th">人群名称</div>
...@@ -51,6 +51,7 @@ export default { ...@@ -51,6 +51,7 @@ export default {
}, },
data() { data() {
return { return {
expandArr: [],
isReload: true, isReload: true,
url: url, url: url,
sloading: false, sloading: false,
...@@ -93,12 +94,14 @@ export default { ...@@ -93,12 +94,14 @@ export default {
tableParams: { tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000), btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.crowdGroupUnitList', listName: 'data.crowdGroupUnitList',
mutiSelectUniqueKey: 'crowdGroupId',
tableColumns: [ tableColumns: [
{ {
label: '', label: '',
prop: '', prop: '',
columnattrs: { columnattrs: {
type: 'expand' type: 'expand',
'default-expand-all': true
}, },
addHtml: 'groupInfo' addHtml: 'groupInfo'
}, },
...@@ -218,6 +221,8 @@ export default { ...@@ -218,6 +221,8 @@ export default {
// if (!this.$refs.clientGroupManage.data.length) { // if (!this.$refs.clientGroupManage.data.length) {
// this.$refs.clientGroupManage.setTableHeightFun() // this.$refs.clientGroupManage.setTableHeightFun()
// } // }
this.expandArr = this.$refs.clientGroupManage.data.length ? [this.$refs.clientGroupManage.data[0].crowdGroupId + ''] : []
this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun() this.$refs.clientGroupManage.data.length ? (this.$refs.clientGroupManage.tableHeightValues = '') : this.$refs.clientGroupManage.setTableHeightFun()
}, },
//导出 //导出
...@@ -261,7 +266,6 @@ export default { ...@@ -261,7 +266,6 @@ export default {
resetTable() { resetTable() {
this.isReload = false this.isReload = false
this.searchForm = {}
this.$nextTick(() => { this.$nextTick(() => {
this.isReload = true this.isReload = true
}) })
......
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
<el-divider></el-divider> <el-divider></el-divider>
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data> <no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient"> <div class="firmClient">
<div @click="goto(2)" fn="人群客户列表" mode="div" class="wid50"> <div @click.stop="goto(2)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
<span>已加企微</span> <span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,已加企微的客户"> <el-popover placement="top" trigger="hover" content="在基盘客户中,已加企微的客户">
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span>
</p> </p>
</div> </div>
<div @click="goto(3)" fn="人群客户列表" mode="div" class="wid50"> <div @click.stop="goto(3)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
<span>未加企微</span> <span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,未加企微的客户"> <el-popover placement="top" trigger="hover" content="在基盘客户中,未加企微的客户">
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data> <no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<div class="firmClient"> <div class="firmClient">
<div @click="goto(5)" fn="人群客户列表" mode="div" class="wid50"> <div @click.stop="goto(5)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
<span>已加企微</span> <span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,已加企微的客户"> <el-popover placement="top" trigger="hover" content="在潜在意向客户中,已加企微的客户">
...@@ -193,7 +193,7 @@ ...@@ -193,7 +193,7 @@
<span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span>
</p> </p>
</div> </div>
<div @click="goto(6)" fn="人群客户列表" mode="div" class="wid50"> <div @click.stop="goto(6)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
<span>未加企微</span> <span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,未加企微的客户"> <el-popover placement="top" trigger="hover" content="在潜在意向客户中,未加企微的客户">
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
客户分群 客户分群
<span>| 数据统计截止时间:{{ updateTime }}</span> <span>| 数据统计截止时间:{{ updateTime }}</span>
</span> </span>
<span class="setting" @click="goToGrouping()">设置</span> <span class="setting" v-if="userType == 2 && isMerchantStaffAdmin == true" @click="goToGrouping()">设置</span>
</div> </div>
<div class="itembox"> <div class="itembox">
<template v-for="(item, index) in customerSegmentation"> <template v-for="(item, index) in customerSegmentation">
...@@ -528,6 +528,7 @@ export default { ...@@ -528,6 +528,7 @@ export default {
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType this.userType = this.$globalState.session.userType
this.merchantId = this.$globalState.session.merchantId this.merchantId = this.$globalState.session.merchantId
this.isMerchantStaffAdmin = this.$globalState.session.isMerchantStaffAdmin
} }
// 掉两个数据接口 // 掉两个数据接口
......
...@@ -55,7 +55,6 @@ ...@@ -55,7 +55,6 @@
</div> </div>
</div> </div>
</div> </div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div> <div class="swiper-pagination"></div>
</div> </div>
</div> </div>
...@@ -120,7 +119,8 @@ export default { ...@@ -120,7 +119,8 @@ export default {
crowdGroupId: '', crowdGroupId: '',
activeName: 'first', activeName: 'first',
searchForm: { searchForm: {
crowdId: '' crowdId: '',
customCrowd: true
}, },
backupCrowdId: '', backupCrowdId: '',
isActive: 0, isActive: 0,
...@@ -249,16 +249,6 @@ export default { ...@@ -249,16 +249,6 @@ export default {
prop: 'audi', prop: 'audi',
width: 170 width: 170
}, },
// {
// label: '车险开始时间',
// prop: 'isStartDate',
// width: 170
// },
// {
// label: '车险到期时间',
// prop: 'insEndDate',
// width: 170
// },
{ {
label: '跟进员工', label: '跟进员工',
prop: 'followStaff', prop: 'followStaff',
...@@ -308,18 +298,42 @@ export default { ...@@ -308,18 +298,42 @@ export default {
this.getStaffList() this.getStaffList()
}, },
mounted() { mounted() {
new Swiper('.swiper-container', { let previewSwiper = new Swiper('.swiper-container', {
// paginationClickable: true,
grabCursor: true, grabCursor: true,
spaceBetween: 16, spaceBetween: 16,
mousewheel: true, mousewheel: true,
slidesPerView: 'auto', slidesPerView: 'auto',
observer: true, //修改swiper自己或子元素时,自动初始化 observer: true, //修改swiper自己或子元素时,自动初始化
observeParents: true, //修改swiper的父元素时,自动初始化swiper
breakpoints: {
//当宽度大于等于1280
1280: {
slidesPerView: 4,
spaceBetween: 16
},
//当宽度大于等于1440
1440: {
slidesPerView: 4,
spaceBetween: 16
},
//当宽度大于等于1920
1920: {
slidesPerView: 5,
spaceBetween: 16
}
},
pagination: { pagination: {
el: '.swiper-pagination', el: '.swiper-pagination',
type: 'progressbar' type: 'progressbar'
} }
}) })
console.log(previewSwiper.breakpoints)
this.$nextTick(() => {
setTimeout(function() {
previewSwiper.slideTo(0, 0, false)
}, 500)
})
}, },
methods: { methods: {
// 导出 // 导出
...@@ -366,10 +380,9 @@ export default { ...@@ -366,10 +380,9 @@ export default {
await marketingPeopleListShow(params).then(res => { await marketingPeopleListShow(params).then(res => {
this.itemArr = res this.itemArr = res
this.showTitle = this.itemArr[0].crowdName this.showTitle = this.itemArr[0].crowdName
this.searchForm.crowdId = this.itemArr[0].crowdId this.theFirstGroudId = this.searchForm.crowdId = this.itemArr[0].crowdId
}) })
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchForm = this.getParams() this.searchForm = this.getParams()
resolve() resolve()
...@@ -410,12 +423,14 @@ export default { ...@@ -410,12 +423,14 @@ export default {
}, },
//重置表格 //重置表格
resetTable() { resetTable() {
this.searchForm = {} this.searchForm = {
customCrowd: true,
crowdId: this.backupCrowdId
}
this.$refs.marketPeople.refreshTable() this.$refs.marketPeople.refreshTable()
}, },
// 跳转到营销SOP // 跳转到营销SOP
createMarketSOP(info) { createMarketSOP(info) {
console.log(info)
let marketQuery = { let marketQuery = {
crowdDesc: info.crowdDesc, crowdDesc: info.crowdDesc,
crowdId: info.crowdId, crowdId: info.crowdId,
...@@ -434,7 +449,6 @@ export default { ...@@ -434,7 +449,6 @@ export default {
} }
params.info.crowdList.push(marketQuery) params.info.crowdList.push(marketQuery)
this.$common.utils.storage.set('sopInfo', params) this.$common.utils.storage.set('sopInfo', params)
console.log(params)
this.$history.push({ this.$history.push({
path: 'marketing/sop/editSop' path: 'marketing/sop/editSop'
}) })
...@@ -450,15 +464,14 @@ export default { ...@@ -450,15 +464,14 @@ export default {
}, },
// 选择的人群 // 选择的人群
choickItem(idx, title, Cid) { choickItem(idx, title, Cid) {
console.log(Cid)
this.isActive = idx this.isActive = idx
this.showTitle = title this.showTitle = title
this.backupCrowdId = Cid this.backupCrowdId = Cid
// 发送请求查询列表 // 发送请求查询列表
this.searchForm = { this.searchForm = {
crowdId: Cid crowdId: Cid,
customCrowd: true
} }
console.log(this.searchForm)
this.searchTable() this.searchTable()
}, },
setTableFinishFun() { setTableFinishFun() {
...@@ -515,7 +528,7 @@ export default { ...@@ -515,7 +528,7 @@ export default {
.swiper-wrapper { .swiper-wrapper {
margin-bottom: 20px; margin-bottom: 20px;
.swiper-slide { .swiper-slide {
width: 274px; // width: 234px;
.marketItem-border { .marketItem-border {
min-height: 251px; min-height: 251px;
...@@ -527,6 +540,7 @@ export default { ...@@ -527,6 +540,7 @@ export default {
font-weight: 600; font-weight: 600;
padding-left: 16px; padding-left: 16px;
vertical-align: middle; vertical-align: middle;
overflow: hidden;
} }
.itemBox { .itemBox {
border-left: 1px solid #ededf0; border-left: 1px solid #ededf0;
...@@ -622,6 +636,7 @@ export default { ...@@ -622,6 +636,7 @@ export default {
font-weight: 600; font-weight: 600;
padding-left: 16px; padding-left: 16px;
vertical-align: middle; vertical-align: middle;
overflow: hidden;
} }
.itemBox { .itemBox {
border-left: 1px solid #ededf0; border-left: 1px solid #ededf0;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!