Commit d0ebaa67 by 前端

Merge branch 'xuyl_dev_v2.3.0' into 'v2.3.0'

Xuyl dev v2.3.0

See merge request !92
2 parents 9710c964 23959af3
......@@ -120,7 +120,7 @@ const staticRoutes = Object.freeze([{
},
{
name: 'crowdDetail',
path: '/crowdManage/crowdDetail/:id/:type',
path: '/crowdManage/crowdDetail:id',
component: resolve => require([`@/views/crowdManage/crowdDetail.vue`], resolve),
meta: {}
},
......
......@@ -107,7 +107,7 @@ export default {
crowdDesc: ''
},
crowdId: this.$route.params.id ? this.$route.params.id : '',
crowdPage: this.$route.params.crowdType ? this.$route.params.crowdType : '',
crowdPage: this.$route.query.crowdType ? this.$route.query.crowdType : '',
tableTotal: '',
isShowCloseBtn: true,
dialogRuleVisible: false,
......@@ -152,7 +152,7 @@ export default {
this.getCrowdDetails()
},
mounted() {
console.log(this.$route.params)
console.log(this.$route.query.crowdPage)
},
methods: {
goBack() {
......
......@@ -107,18 +107,18 @@ export default {
// this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname)
// }
// console.log(this.$route.query)
if (this.$route.query.selectTab) {
this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
}
},
mounted() {
console.log(this.$route.params)
},
methods: {
btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}/${crowdType}`)
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}?crowdType=${crowdType}`)
}
if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!