Commit 97912c95 by 前端

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

修复传参bug

See merge request !106
2 parents f53796d6 b2504f61
......@@ -6,7 +6,7 @@
<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 == 2" type="text" @click="handleEnd(scope.scope)">结束</el-button>
<el-button v-if="scope.scope.sopStatus != 3" type="text" @click="handleEdit(scope.scope.id)">编辑</el-button>
<el-button v-if="scope.scope.sopStatus != 3" type="text" @click="handleEdit(scope.scope)">编辑</el-button>
<el-button v-if="scope.scope.sopStatus == 1" type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template>
</GLTable>
......@@ -28,7 +28,7 @@ export default {
{
type: 'input',
inputType: 'text',
name: 'sopName',
name: 'crowdName',
label: '人群名称'
},
{
......@@ -160,33 +160,21 @@ export default {
})
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`)
},
// 跳转到营销SOP
handleEdit(info) {
console.log(info)
let marketQuery = {
crowdDesc: info.crowdDesc,
crowdId: info.crowdId,
crowdName: info.crowdName,
total: info.customerCount
}
var params = {
addOrEdit: 'edit',
fromPage: `/custom/clientDataOverview/marketingPeople?crowdId=${this.crowdGroupId}&selectTab=second`,
$title: encodeURI('编辑SOP'),
info: {
// 人群
customerOptType: 2,
crowdList: []
}
}
params.info.crowdList.push(marketQuery)
this.$common.utils.storage.set('sopInfo', params)
console.log(params)
this.$history.push({
path: 'marketing/sop/editSop'
// 跳转到编辑营销SOP
handleEdit(row) {
// var params = {
// addOrEdit: 'edit',
// fromPage: `/custom/clientDataOverview/marketingPeople?crowdId=${this.crowdGroupId}&selectTab=second`,
// $title: encodeURI('编辑SOP'),
// id: row.id
// }
let query = JSON.stringify({
crowdId: this.crowdGroupId,
selectTab: 'second'
})
this.$history.push(`/marketing/sop/editSop?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&addOrEdit=edit&id=${row.id}&$title: encodeURI('编辑SOP')`)
},
setTableFinishFun() {
this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun()
},
......
......@@ -558,7 +558,7 @@ export default {
let param = {
// this.merchantId
'req.merchantId': this.merchantId,
isDisplay: 1
'req.isDisplay': 1
}
customerClusterListShow(param).then(res => {
this.customerSegmentation = res.crowdGroupUnitList
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!