提交 787526e0 authored 作者: lihuihui's avatar lihuihui

update

上级 959528a9
...@@ -211,23 +211,23 @@ export default { ...@@ -211,23 +211,23 @@ export default {
}, },
handleNav(val) { handleNav(val) {
console.log(val, '9999') console.log(val, '9999')
let path = '/product-analysis/report'
const type = val.is_complete === 1 ? '3' : '1'
const _type = val.is_complete === 1 ? '1' : '0'
switch (this.tabActive) { switch (this.tabActive) {
case '1': case '1':
let path = '/product-analysis/report'
if (val.is_complete === 1) path = '/product-analysis/result' if (val.is_complete === 1) path = '/product-analysis/result'
this.$router.push({ path, query: { id: val.id } }) this.$router.push({ path, query: { id: val.id } })
break break
case '2': case '2':
const type = val.is_complete === 1 ? '3' : '1'
console.log('000')
this.$router.push({ path: '/user-study', query: { id: val.id, type } }) this.$router.push({ path: '/user-study', query: { id: val.id, type } })
break break
case '3': case '3':
const _type = val.is_complete === 1 ? '1' : '0'
console.log('111')
if (val.type === 1) { if (val.type === 1) {
this.$router.push({ path: '/market-tools/douYin', query: { id: val.id, type: _type, view: val.is_complete } }) this.$router.push({
path: '/market-tools/douYin',
query: { id: val.id, type: _type, view: val.is_complete }
})
} else if (val.type === 2) { } else if (val.type === 2) {
this.$router.push({ path: '/market-tools/mail', query: { id: val.id, type: _type, view: val.is_complete } }) this.$router.push({ path: '/market-tools/mail', query: { id: val.id, type: _type, view: val.is_complete } })
} else if (val.type === 3) { } else if (val.type === 3) {
...@@ -235,7 +235,10 @@ export default { ...@@ -235,7 +235,10 @@ export default {
} else if (val.type === 4) { } else if (val.type === 4) {
this.$router.push({ path: '/market-tools/sms', query: { id: val.id, type: _type, view: val.is_complete } }) this.$router.push({ path: '/market-tools/sms', query: { id: val.id, type: _type, view: val.is_complete } })
} else if (val.type === 5) { } else if (val.type === 5) {
this.$router.push({ path: '/market-tools/weChat', query: { id: val.id, type: _type, view: val.is_complete } }) this.$router.push({
path: '/market-tools/weChat',
query: { id: val.id, type: _type, view: val.is_complete }
})
} }
break break
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论