Commit ca54e1ff by xuyl

修复跳转问题

1 parent 6e454beb
......@@ -2,7 +2,7 @@
<div class="scrm-sub-client-container">
<div class="pageContent">
<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">
<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>
......@@ -125,12 +125,16 @@ export default {
}
},
mounted() {
//没数据的时候要算高度
//没数据的时候要算高度
},
methods: {
// 返回
goback() {
this.$router.go(-1)
if (this.$route.query && this.$route.query.flag) {
this.$router.push('/clientDataOverview/index')
} else {
this.$router.push('/clientDataOverview/grouping')
}
},
// 结束
handleEnd(row) {
......@@ -167,6 +171,13 @@ export default {
crowdId: this.crowdGroupId,
selectTab: 'second'
})
if (this.$route.query && this.$route.query.flag == 1) {
query = JSON.stringify({
crowdId: this.crowdGroupId,
selectTab: 'second',
flag: 1
})
}
this.$history.push(`/marketing/sop/sopAnalysisList?fromPage=${encodeURI(`/custom/clientDataOverview/marketingPeople?crowQuery=${query}`)}&id=${id}`)
},
// 跳转到编辑营销SOP
......
......@@ -567,7 +567,7 @@ export default {
})
},
goToGroupOperating(id) {
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}`)
this.$router.push(`/clientDataOverview/marketingPeople?crowdId=${id}&flag=1`)
},
goNextPage() {
this.$history.push('/drainage/square/index')
......
......@@ -360,7 +360,11 @@ export default {
},
methods: {
goback() {
this.$router.go(-1)
if (this.$route.query && this.$route.query.flag) {
this.$router.push('/clientDataOverview/index')
} else {
this.$router.push('/clientDataOverview/grouping')
}
},
// 导出
handleExport() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!