提交 986f94b4 编写于 作者: huangwensu's avatar huangwensu

数据保存成功跳转修改

上级 afa813b6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="add-funnel-container"> <div class="add-funnel-container">
<el-breadcrumb separator="/" class="add-title"> <el-breadcrumb separator="/" class="add-title">
<el-breadcrumb-item :to="{ path: '/user-path' }">漏斗分析</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/user-path' }">漏斗分析</el-breadcrumb-item>
<el-breadcrumb-item><a href="/add-funnel">新增转化漏斗</a></el-breadcrumb-item> <el-breadcrumb-item>新增转化漏斗</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<div class="add-content"> <div class="add-content">
<div class="con"> <div class="con">
...@@ -143,6 +143,11 @@ export default { ...@@ -143,6 +143,11 @@ export default {
res => { res => {
if(res.code == '000000') { if(res.code == '000000') {
this.searchParam = res.data; this.searchParam = res.data;
for(let i = 0; i < this.searchParam.actionModelList.length; i++) {
if(!this.searchParam.actionModelList[i].actionName) {
this.searchParam.actionModelList[i].actionName = this.searchParam.actionModelList[i].eventName;
}
}
} }
} }
); );
...@@ -206,7 +211,7 @@ export default { ...@@ -206,7 +211,7 @@ export default {
res => { res => {
if(res.code == '000000') { if(res.code == '000000') {
this.$message.success('转化漏斗创建成功'); this.$message.success('转化漏斗创建成功');
this.$router.push({ path: 'user-path' }); this.$router.push({ path: 'path-data', query: {id: res.data.id, name: res.data.name} });
}else if(res.code == '227002' || res.code == '227003'){ }else if(res.code == '227002' || res.code == '227003'){
this.disabledSave = true; this.disabledSave = true;
this.$message.error(res.message); this.$message.error(res.message);
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div class="data-container"> <div class="data-container">
<el-breadcrumb separator="/" class="data-title"> <el-breadcrumb separator="/" class="data-title">
<el-breadcrumb-item :to="{ path: '/user-path' }">漏斗分析</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/user-path' }">漏斗分析</el-breadcrumb-item>
<el-breadcrumb-item><a href="/path-data">{{name}}详情</a></el-breadcrumb-item> <el-breadcrumb-item>{{name}}详情</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<div class="data-content"> <div class="data-content">
<div class="con"> <div class="con">
...@@ -218,10 +218,10 @@ export default { ...@@ -218,10 +218,10 @@ export default {
lineHeight = 346; lineHeight = 346;
}else if(len == 6) { }else if(len == 6) {
arrowTop = 60; arrowTop = 60;
arrowH = 260; arrowH = 300;
lineTop = 20; lineTop = 20;
lineLeft = 500; lineLeft = 400;
lineHeight = 306; lineHeight = 366;
} }
for (let i = 0; i < lineargroup.length; i++) { for (let i = 0; i < lineargroup.length; i++) {
let obj1 = { let obj1 = {
......
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
}, },
// 查看数据 // 查看数据
visitData(row) { visitData(row) {
this.$router.push({ path: 'path-data',query: {id: row.id, name: row.name} }); this.$router.push({ path: 'path-data', query: {id: row.id, name: row.name} });
}, },
// 编辑 // 编辑
editColumn(row) { editColumn(row) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册