Commit 5d293182 by 前端

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

Xuyl dev v2.4.0

See merge request !96
2 parents 47e1faf7 bf98aba3
...@@ -69,8 +69,9 @@ export function customerClusterListExport(params) { ...@@ -69,8 +69,9 @@ export function customerClusterListExport(params) {
//获取客户分群展示 //获取客户分群展示
export function customerClusterListShow(params) { export function customerClusterListShow(params) {
params.method = 'scrm.api.datahub.user.queryCrowdGroupList' params.method = 'scrm.api.datahub.crowdgroup.queryCrowdGroupList'
return http3({ return http3({
// https://scrm.dev.glsx.com.cn
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
method: 'POST', method: 'POST',
data: params, data: params,
...@@ -81,7 +82,7 @@ export function customerClusterListShow(params) { ...@@ -81,7 +82,7 @@ export function customerClusterListShow(params) {
// 通过分群Id查询人群列表详情请求 // 通过分群Id查询人群列表详情请求
export function marketingPeopleListShow(params) { export function marketingPeopleListShow(params) {
params.method = 'scrm.api.datahub.user.queryCrowdListByCrowdGroupId' params.method = 'scrm.api.datahub.crowdgroup.queryCrowdListByCrowdGroupId'
return http3({ return http3({
// http://192.168.3.226:9636 // http://192.168.3.226:9636
url: '/rop-scrm-datahub/router', url: '/rop-scrm-datahub/router',
...@@ -89,4 +90,16 @@ export function marketingPeopleListShow(params) { ...@@ -89,4 +90,16 @@ export function marketingPeopleListShow(params) {
data: params, data: params,
sign: true sign: true
}) })
}
// 通过门店/分群名称查询分群id
export function searchCrowdIdByCrowdname(params) {
params.method = 'scrm.api.datahub.crowd.queryCrowdIdByCrowdName'
return http3({
url: '/rop-scrm-datahub/router',
method: 'POST',
data: params,
sign: true
})
} }
\ No newline at end of file \ No newline at end of file
...@@ -90,11 +90,11 @@ export default { ...@@ -90,11 +90,11 @@ export default {
methods: { methods: {
// 跳转SOP分析 // 跳转SOP分析
goSOPAnalysis(){ goSOPAnalysis(){
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&id=183`) this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI('/custom/clientDataOverview/marketingPeople?selectTab=2')}&id=183`)
}, },
// 跳转SOP编辑页面 // 跳转SOP编辑页面
goSOPEdit(id) { goSOPEdit(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`) this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/custom/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`)
}, },
// 确认删除或结束 // 确认删除或结束
confirm(type) { confirm(type) {
......
...@@ -90,11 +90,21 @@ export default { ...@@ -90,11 +90,21 @@ export default {
methods: { methods: {
// 跳转SOP分析 // 跳转SOP分析
goSOPAnalysis(){ goSOPAnalysis(){
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&id=183`) this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI('/custom/clientDataOverview/marketingPeople?selectTab=2')}&id=183`)
}, },
// 跳转SOP编辑页面 // 跳转SOP编辑页面
goSOPEdit(id) { goSOPEdit(id) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`) // this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('编辑SOP')}&fromPage=${encodeURI('/custom/clientDataOverview/marketingPeople?selectTab=2')}&addOrEdit=edit&id=183`)
var params = {
addOrEdit: 'edit',
fromPage: '/custom/clientDataOverview/marketingPeople?selectTab=2',
$title: encodeURI('编辑SOP')
}
// addOrEdit != 'add' && (params.id = row.id)
this.$router.push({
path: '/sop/editSop',
query: params
})
}, },
// 确认删除或结束 // 确认删除或结束
confirm(type) { confirm(type) {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<div class="scrm-sub-client-container"> <div class="scrm-sub-client-container">
<div class="head-container"> <div class="head-container">
<template v-if="crowdType == '3'"> <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">{{ groupCorwdTitle }}</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">{{ groupCorwdDesc }}</div>
</template> </template>
<template v-else> <template v-else>
<div class="head-container-title color-3 font-20">{{ crowdForm.crowdName }}</div> <div class="head-container-title color-3 font-20">{{ crowdForm.crowdName }}</div>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
</template> </template>
<script> <script>
import { getCustomerList, getcrowdManageList, customerClusterListExport } from '@/api/modules/clientDataOverview' import { getCustomerList, getcrowdManageList, customerClusterListExport, searchCrowdIdByCrowdname } from '@/api/modules/clientDataOverview'
import { getStaffList } from '@/api/modules/clientManage' import { getStaffList } from '@/api/modules/clientManage'
// import Constants from '@common/constants.js' // import Constants from '@common/constants.js'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
...@@ -68,6 +68,9 @@ export default { ...@@ -68,6 +68,9 @@ export default {
name: 'group', name: 'group',
data() { data() {
return { return {
groupCorwdTitle: '',
groupCorwdDesc: '',
corwdId:'',//传到营销SOP的crowId
getListApi: this.$route.params.crowdType == '1' || this.$route.params.crowdType == '2' ? 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: {
...@@ -205,6 +208,12 @@ export default { ...@@ -205,6 +208,12 @@ export default {
created() { created() {
let { id } = this let { id } = this
this.init(id) this.init(id)
this.groupCorwdTitle = this.$Constants.DESCRIBEDATA.find(item => item.id == id) ? this.$Constants.DESCRIBEDATA.find(item => item.id == id).name : ''
this.groupCorwdDesc = this.$Constants.DESCRIBEDATA.find(item => item.id == id) ? this.$Constants.DESCRIBEDATA.find(item => item.id == id).info : ''
if (window.__POWERED_BY_QIANKUN__) {
//运行在qiankun容器中
this.merchantId = this.$globalState.session.merchantId
}
// 针对广汇替换字段 // 针对广汇替换字段
// cgacar // cgacar
if ((this.id == 1 || this.id == 2 || this.id == 3) && location.host.includes('cgacar')) { if ((this.id == 1 || this.id == 2 || this.id == 3) && location.host.includes('cgacar')) {
...@@ -242,9 +251,25 @@ export default { ...@@ -242,9 +251,25 @@ export default {
if (this.crowdType == 1 || this.crowdType == 2) { if (this.crowdType == 1 || this.crowdType == 2) {
marketQuery = JSON.parse(this.$route.query.crowdInfo) marketQuery = JSON.parse(this.$route.query.crowdInfo)
} }
if (this.crowdType == 3) {
let params = {
'req.crowdName ': '潜在意向客户',
// this.merchantId
'req.merchantId': 44209846
}
searchCrowdIdByCrowdname(params).then(res => {
this.corwdId = res.data
})
marketQuery = {
crowdDesc: this.groupCorwdDesc,
crowdId: this.corwdId,
crowdName: this.groupCorwdTitle,
total: this.totalCount
}
}
var params = { var params = {
addOrEdit: 'add', addOrEdit: 'add',
fromPage: '/npmph/clientDataOverview/group', fromPage: '/custom/clientDataOverview/group',
$title: encodeURI('新建SOP'), $title: encodeURI('新建SOP'),
info: { info: {
// 人群 // 人群
...@@ -255,9 +280,9 @@ export default { ...@@ -255,9 +280,9 @@ export default {
params.info.crowdList.push(marketQuery) params.info.crowdList.push(marketQuery)
console.log(params) console.log(params)
this.$common.utils.storage.set('sopInfo', params) this.$common.utils.storage.set('sopInfo', params)
this.$history.push({ // this.$history.push({
path: 'marketing/sop/editSop' // path: 'marketing/sop/editSop'
}) // })
}, },
//获取跟进员工 //获取跟进员工
getStaffList() { getStaffList() {
......
...@@ -35,10 +35,6 @@ ...@@ -35,10 +35,6 @@
<span class="totalUnit">人</span> <span class="totalUnit">人</span>
</p> </p>
<template v-if="isShowData"> <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-total">
<div class="qiwei-describe"> <div class="qiwei-describe">
<div class="inWechat">已加企微</div> <div class="inWechat">已加企微</div>
...@@ -80,8 +76,6 @@ ...@@ -80,8 +76,6 @@
占比: 占比:
<img src="@/assets/clientDataOverview/upIcon.png" /> <img src="@/assets/clientDataOverview/upIcon.png" />
{{ purchasePercent }}% {{ purchasePercent }}%
<!-- <i class="triangle-+" :class="{ active: isBuyUp === 2 }" v-if="isBuyUp"></i>
<i v-else>--</i> -->
</span> </span>
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
...@@ -100,18 +94,6 @@ ...@@ -100,18 +94,6 @@
<span class="personText">人</span> <span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purchaseCustomerAddPercent | percentageDeal }}%</span>
</p> </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>
<div @click="goto(6)" fn="人群客户列表" mode="div" class="wid50"> <div @click="goto(6)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
...@@ -126,17 +108,6 @@ ...@@ -126,17 +108,6 @@
<span class="personText">人</span> <span class="personText">人</span>
<span class="numPro">占比:{{ topDataObj.purchaseCustomerNAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purchaseCustomerNAddPercent | percentageDeal }}%</span>
</p> </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> </div>
</div> </div>
...@@ -179,21 +150,8 @@ ...@@ -179,21 +150,8 @@
<p class="clientNum"> <p class="clientNum">
{{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }} {{ (topDataObj.purposeCustomerAddCount || 0) | overThousandFilter }}
<span class="personText">人</span> <span class="personText">人</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerAddPercent && topDataObj.purposeCustomerAddPercent.toFixed(2)) || 0 }}%</span> -->
<span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purposeCustomerAddPercent | percentageDeal }}%</span>
</p> </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>
<div @click="goto(3)" fn="人群客户列表" mode="div" class="wid50"> <div @click="goto(3)" fn="人群客户列表" mode="div" class="wid50">
<div class="clientCompleted"> <div class="clientCompleted">
...@@ -206,31 +164,13 @@ ...@@ -206,31 +164,13 @@
<p class="clientNum"> <p class="clientNum">
{{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }} {{ (topDataObj.purposeCustomerNAddCount || 0) | overThousandFilter }}
<span class="personText">人</span> <span class="personText">人</span>
<!-- <span class="numPro">占比:{{ (topDataObj.purposeCustomerNAddPercent && topDataObj.purposeCustomerNAddPercent.toFixed(2)) || 0 }}%</span> -->
<span class="numPro">占比:{{ topDataObj.purposeCustomerNAddPercent | percentageDeal }}%</span> <span class="numPro">占比:{{ topDataObj.purposeCustomerNAddPercent | percentageDeal }}%</span>
</p> </p>
<!-- <div class="marketingBtn">
智能营销
<i class="el-icon-arrow-right"></i>
</div> -->
</div> </div>
</div> </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>
</div>
</div> -->
<div class="intendedTop"> <div class="intendedTop">
<!-- 已加企微,待匹配客户 --> <!-- 已加企微,待匹配客户 -->
<div class="intended" @click="goto(11)"> <div class="intended" @click="goto(11)">
...@@ -542,16 +482,6 @@ export default { ...@@ -542,16 +482,6 @@ export default {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}`) this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}`)
}, },
goNextPage() { goNextPage() {
// window.open('https://www.baidu.com', '_blank')
// this.dialogVisible = true
// let timer = 3
// setInterval(() => {
// timer--
// if (timer == 0) {
// this.dialogVisible = false
// }
// }, 1000)
// this.$router.push('drainage/square/index')
this.$history.push('/drainage/square/index') this.$history.push('/drainage/square/index')
//要引流企微魔方 //要引流企微魔方
// this.getDataOverviewFun() // this.getDataOverviewFun()
...@@ -767,13 +697,6 @@ export default { ...@@ -767,13 +697,6 @@ export default {
// visibility: hidden; // visibility: hidden;
display: none; display: none;
// width: 155px;
// width: 100%;
// height: 207px;
// border: 4px;
// filter: blur(15px);
// border-radius: 60px;
// box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.79);
outline: 5000px solid rgba(0, 0, 0, 0.79); outline: 5000px solid rgba(0, 0, 0, 0.79);
border: 2px solid #fff; border: 2px solid #fff;
border-radius: 4px; border-radius: 4px;
...@@ -782,10 +705,6 @@ export default { ...@@ -782,10 +705,6 @@ export default {
position: fixed; position: fixed;
z-index: 100; z-index: 100;
top: 25%; top: 25%;
// top: 0;
// left: 0;
// bottom: 0;
// right: 0;
width: 100%; width: 100%;
} }
...@@ -793,8 +712,6 @@ export default { ...@@ -793,8 +712,6 @@ export default {
position: fixed; position: fixed;
display: inline-block; display: inline-block;
z-index: 100; z-index: 100;
// width: 124px;
// height: 40px;
left: 50%; left: 50%;
bottom: 18%; bottom: 18%;
transform: translateX(-50%); transform: translateX(-50%);
...@@ -957,8 +874,6 @@ export default { ...@@ -957,8 +874,6 @@ export default {
} }
.item.no-buy-total, .item.no-buy-total,
.item.buy-total { .item.buy-total {
// height: 238px;
// width: 50%;
position: relative; position: relative;
height: auto; height: auto;
cursor: pointer; cursor: pointer;
...@@ -1007,10 +922,6 @@ export default { ...@@ -1007,10 +922,6 @@ export default {
line-height: 22px; line-height: 22px;
// vertical-align: middle; // vertical-align: middle;
> .triangle { > .triangle {
// position: absolute;
// left: 51.8%;
// top: 165px;
// margin-bottom: 20px;
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
width: 0px; width: 0px;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<div class="pageContent"> <div class="pageContent">
<div class="markPeople"> <div class="markPeople">
<span>营销人群</span> <span>营销人群</span>
<span v-if="itemArr.length > 4 && !closeFlag" @click="expandClick('expand')"> <span v-if="itemArr && itemArr.length > 4 && !closeFlag" @click="expandClick('expand')">
展开营销人群 展开营销人群
<i class="el-icon-arrow-down color-58"></i> <i class="el-icon-arrow-down color-58"></i>
</span> </span>
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<span>人</span> <span>人</span>
</p> </p>
<p class="peopledesc">{{ item.crowdDesc }}</p> <p class="peopledesc">{{ item.crowdDesc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP()" :disabled="item.type">创建营销SOP</el-button> <el-button class="createSOP" @click.stop="createMarketSOP(item)" :disabled="item.type">创建营销SOP</el-button>
</div> </div>
</template> </template>
</div> </div>
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<span>人</span> <span>人</span>
</p> </p>
<p class="peopledesc">{{ item.crowdDesc }}</p> <p class="peopledesc">{{ item.crowdDesc }}</p>
<el-button class="createSOP" @click.stop="createMarketSOP(item.id)" :disabled="item.type">创建营销SOP</el-button> <el-button class="createSOP" @click.stop="createMarketSOP(item)" :disabled="item.type">创建营销SOP</el-button>
</div> </div>
</div> </div>
</div> </div>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
</div> </div>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="营销计划" name="second"> <el-tab-pane label="营销计划" name="second">
<marketing-plan v-if="activeName == 'second'"></marketing-plan> <template v-if="activeName == 'second'"><marketing-plan></marketing-plan></template>
</el-tab-pane> </el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -97,17 +97,7 @@ export default { ...@@ -97,17 +97,7 @@ export default {
displayNum: 4, //展示的数目 displayNum: 4, //展示的数目
closeFlag: false, //展开收起 closeFlag: false, //展开收起
showTitle: '', // 展示的标题 showTitle: '', // 展示的标题
itemArr: [ 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: [ marketPeopleFormList: [
{ {
type: 'input', type: 'input',
...@@ -303,6 +293,7 @@ export default { ...@@ -303,6 +293,7 @@ export default {
spaceBetween: 16, spaceBetween: 16,
mousewheel: true, mousewheel: true,
slidesPerView: 'auto', slidesPerView: 'auto',
observer: true, //修改swiper自己或子元素时,自动初始化
pagination: { pagination: {
el: '.swiper-pagination', el: '.swiper-pagination',
type: 'progressbar' type: 'progressbar'
...@@ -316,9 +307,7 @@ export default { ...@@ -316,9 +307,7 @@ export default {
'req.crowdGroupId': this.crowdGroupId 'req.crowdGroupId': this.crowdGroupId
} }
marketingPeopleListShow(params).then(res => { marketingPeopleListShow(params).then(res => {
console.log(res)
this.itemArr = res.crowdUnitList this.itemArr = res.crowdUnitList
console.log(this.itemArr)
}) })
}, },
// 搜索表格 // 搜索表格
...@@ -332,13 +321,34 @@ export default { ...@@ -332,13 +321,34 @@ export default {
this.$refs.marketPeople.refreshTable() this.$refs.marketPeople.refreshTable()
}, },
// 跳转到营销SOP // 跳转到营销SOP
createMarketSOP(id) { createMarketSOP(info) {
this.$history.push(`/marketing/sop/editSop?$title=${encodeURI('新建SOP')}&fromPage=${encodeURI('/npmph/clientDataOverview/marketingPeople?selectTab=1')}&addOrEdit=add&id=183`) console.log(info)
let marketQuery = {
crowdDesc: info.crowdDesc,
crowdId: info.crowdId,
crowdName: info.crowdName,
total: info.total
}
var params = {
addOrEdit: 'add',
fromPage: '/custom/clientDataOverview/marketingPeople',
$title: encodeURI('新建SOP'),
info: {
// 人群
customerOptType: 2,
crowdList: []
}
}
params.info.crowdList.push(marketQuery)
this.$common.utils.storage.set('sopInfo', params)
this.$history.push({
path: 'marketing/sop/editSop'
})
}, },
expandClick(val) { expandClick(val) {
if (val == 'expand') { if (val == 'expand') {
this.closeFlag = true this.closeFlag = true
this.displayNum = this.itemArr.length this.displayNum = this.itemArr.length || ''
} else { } else {
this.closeFlag = false this.closeFlag = false
this.displayNum = 4 this.displayNum = 4
...@@ -351,13 +361,14 @@ export default { ...@@ -351,13 +361,14 @@ export default {
// 发送请求查询列表 // 发送请求查询列表
}, },
setTableFinishFun() { setTableFinishFun() {
this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun() // this.$refs.marketPeople.data.length ? (this.$refs.marketPeople.tableHeightValues = '') : this.$refs.marketPeople.setTableHeightFun()
}, },
setTableHeightEvent() { setTableHeightEvent() {
this.$refs.marketPeople.setTableHeightFun() this.$refs.marketPeople.setTableHeightFun()
}, },
handleClick(tab) { handleClick(tab) {
console.log(tab) console.log(tab)
// this.activeName
} }
} }
} }
......
...@@ -118,24 +118,12 @@ export default { ...@@ -118,24 +118,12 @@ export default {
createMarketSOP(crowd) { createMarketSOP(crowd) {
var params = { var params = {
addOrEdit: 'add', addOrEdit: 'add',
fromPage: '/npmph/crowdManage/index', fromPage: '/custom/crowdManage/index',
$title: encodeURI('新建SOP'), $title: encodeURI('新建SOP'),
info: { info: {
// 人群 // 人群
customerOptType: 2, customerOptType: 2,
crowdList: [] crowdList: []
// 标签
// customerOptType: 3,
// labelList: [
// {
// id: 10,
// labelGroupId: '79009',
// labelGroupName: 'sop专用标签组1',
// labelGroupType: '自店标签',
// labelId: '37418',
// labelName: 'group1_A'
// }
// ]
} }
} }
params.info.crowdList.push(crowd) params.info.crowdList.push(crowd)
......
...@@ -590,7 +590,7 @@ export default { ...@@ -590,7 +590,7 @@ export default {
console.log(getDatas) console.log(getDatas)
var params = { var params = {
addOrEdit: 'add', addOrEdit: 'add',
fromPage: '/npmph/tagsManage/index', fromPage: '/custom/tagsManage/index',
$title: encodeURI('新建SOP'), $title: encodeURI('新建SOP'),
info: { info: {
// 标签 // 标签
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!