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 @@ ...@@ -6,7 +6,7 @@
<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>
<el-button v-if="scope.scope.sopStatus == 2" type="text" @click="handleEnd(scope.scope)">结束</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> <el-button v-if="scope.scope.sopStatus == 1" type="text" @click="handleDelete(scope.scope)">删除</el-button>
</template> </template>
</GLTable> </GLTable>
...@@ -28,7 +28,7 @@ export default { ...@@ -28,7 +28,7 @@ export default {
{ {
type: 'input', type: 'input',
inputType: 'text', inputType: 'text',
name: 'sopName', name: 'crowdName',
label: '人群名称' label: '人群名称'
}, },
{ {
...@@ -160,33 +160,21 @@ export default { ...@@ -160,33 +160,21 @@ export default {
}) })
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`) this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`)
}, },
// 跳转到营销SOP // 跳转到编辑营销SOP
handleEdit(info) { handleEdit(row) {
console.log(info) // var params = {
let marketQuery = { // addOrEdit: 'edit',
crowdDesc: info.crowdDesc, // fromPage: `/custom/clientDataOverview/marketingPeople?crowdId=${this.crowdGroupId}&selectTab=second`,
crowdId: info.crowdId, // $title: encodeURI('编辑SOP'),
crowdName: info.crowdName, // id: row.id
total: info.customerCount // }
} let query = JSON.stringify({
var params = { crowdId: this.crowdGroupId,
addOrEdit: 'edit', selectTab: 'second'
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'
}) })
this.$history.push(`/marketing/sop/editSop?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&addOrEdit=edit&id=${row.id}&$title: encodeURI('编辑SOP')`)
}, },
setTableFinishFun() { setTableFinishFun() {
this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun() this.$refs.marketingPlan.data.length ? (this.$refs.marketingPlan.tableHeightValues = '') : this.$refs.marketingPlan.setTableHeightFun()
}, },
......
...@@ -558,7 +558,7 @@ export default { ...@@ -558,7 +558,7 @@ export default {
let param = { let param = {
// this.merchantId // this.merchantId
'req.merchantId': this.merchantId, 'req.merchantId': this.merchantId,
isDisplay: 1 'req.isDisplay': 1
} }
customerClusterListShow(param).then(res => { customerClusterListShow(param).then(res => {
this.customerSegmentation = res.crowdGroupUnitList 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!