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 @@
</div>
<img src="./assets/logo.png" alt="" srcset="" />
</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>
</keep-alive>
</div>
......
<template>
<div class="scrm-sub-client-container">
<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">
<template slot="options" slot-scope="scope">
<el-button v-if="scope.scope.sopStatus != 1" type="text" @click="handleJump(scope.scope.id)">SOP分析</el-button>
......
......@@ -5,7 +5,7 @@
<div class="scrm-sub-client-container">
<div class="pageContent">
<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 class="table-tr">
<div class="tabel-th">人群名称</div>
......@@ -51,6 +51,7 @@ export default {
},
data() {
return {
expandArr: [],
isReload: true,
url: url,
sloading: false,
......@@ -93,12 +94,14 @@ export default {
tableParams: {
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
listName: 'data.crowdGroupUnitList',
mutiSelectUniqueKey: 'crowdGroupId',
tableColumns: [
{
label: '',
prop: '',
columnattrs: {
type: 'expand'
type: 'expand',
'default-expand-all': true
},
addHtml: 'groupInfo'
},
......@@ -218,6 +221,8 @@ export default {
// if (!this.$refs.clientGroupManage.data.length) {
// 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()
},
//导出
......@@ -261,7 +266,6 @@ export default {
resetTable() {
this.isReload = false
this.searchForm = {}
this.$nextTick(() => {
this.isReload = true
})
......
......@@ -96,7 +96,7 @@
<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 @click.stop="goto(2)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,已加企微的客户">
......@@ -114,7 +114,7 @@
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span>
</p>
</div>
<div @click="goto(3)" fn="人群客户列表" mode="div" class="wid50">
<div @click.stop="goto(3)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在基盘客户中,未加企微的客户">
......@@ -174,7 +174,7 @@
<no-data :type="'hasText'" v-if="isEmptyObj"></no-data>
<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">
<span>已加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,已加企微的客户">
......@@ -193,7 +193,7 @@
<span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span>
</p>
</div>
<div @click="goto(6)" fn="人群客户列表" mode="div" class="wid50">
<div @click.stop="goto(6)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted">
<span>未加企微</span>
<el-popover placement="top" trigger="hover" content="在潜在意向客户中,未加企微的客户">
......@@ -281,7 +281,7 @@
客户分群
<span>| 数据统计截止时间:{{ updateTime }}</span>
</span>
<span class="setting" @click="goToGrouping()">设置</span>
<span class="setting" v-if="userType == 2 && isMerchantStaffAdmin == true" @click="goToGrouping()">设置</span>
</div>
<div class="itembox">
<template v-for="(item, index) in customerSegmentation">
......@@ -528,6 +528,7 @@ export default {
this.accountLevel = this.$globalState.session.accountLevel
this.userType = this.$globalState.session.userType
this.merchantId = this.$globalState.session.merchantId
this.isMerchantStaffAdmin = this.$globalState.session.isMerchantStaffAdmin
}
// 掉两个数据接口
......
......@@ -55,7 +55,6 @@
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
......@@ -120,7 +119,8 @@ export default {
crowdGroupId: '',
activeName: 'first',
searchForm: {
crowdId: ''
crowdId: '',
customCrowd: true
},
backupCrowdId: '',
isActive: 0,
......@@ -249,16 +249,6 @@ export default {
prop: 'audi',
width: 170
},
// {
// label: '车险开始时间',
// prop: 'isStartDate',
// width: 170
// },
// {
// label: '车险到期时间',
// prop: 'insEndDate',
// width: 170
// },
{
label: '跟进员工',
prop: 'followStaff',
......@@ -308,18 +298,42 @@ export default {
this.getStaffList()
},
mounted() {
new Swiper('.swiper-container', {
// paginationClickable: true,
let previewSwiper = new Swiper('.swiper-container', {
grabCursor: true,
spaceBetween: 16,
mousewheel: true,
slidesPerView: 'auto',
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: {
el: '.swiper-pagination',
type: 'progressbar'
}
})
console.log(previewSwiper.breakpoints)
this.$nextTick(() => {
setTimeout(function() {
previewSwiper.slideTo(0, 0, false)
}, 500)
})
},
methods: {
// 导出
......@@ -366,10 +380,9 @@ export default {
await marketingPeopleListShow(params).then(res => {
this.itemArr = res
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) => {
this.searchForm = this.getParams()
resolve()
......@@ -410,12 +423,14 @@ export default {
},
//重置表格
resetTable() {
this.searchForm = {}
this.searchForm = {
customCrowd: true,
crowdId: this.backupCrowdId
}
this.$refs.marketPeople.refreshTable()
},
// 跳转到营销SOP
createMarketSOP(info) {
console.log(info)
let marketQuery = {
crowdDesc: info.crowdDesc,
crowdId: info.crowdId,
......@@ -434,7 +449,6 @@ export default {
}
params.info.crowdList.push(marketQuery)
this.$common.utils.storage.set('sopInfo', params)
console.log(params)
this.$history.push({
path: 'marketing/sop/editSop'
})
......@@ -450,15 +464,14 @@ export default {
},
// 选择的人群
choickItem(idx, title, Cid) {
console.log(Cid)
this.isActive = idx
this.showTitle = title
this.backupCrowdId = Cid
// 发送请求查询列表
this.searchForm = {
crowdId: Cid
crowdId: Cid,
customCrowd: true
}
console.log(this.searchForm)
this.searchTable()
},
setTableFinishFun() {
......@@ -515,7 +528,7 @@ export default {
.swiper-wrapper {
margin-bottom: 20px;
.swiper-slide {
width: 274px;
// width: 234px;
.marketItem-border {
min-height: 251px;
......@@ -527,6 +540,7 @@ export default {
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
overflow: hidden;
}
.itemBox {
border-left: 1px solid #ededf0;
......@@ -622,6 +636,7 @@ export default {
font-weight: 600;
padding-left: 16px;
vertical-align: middle;
overflow: hidden;
}
.itemBox {
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!