Browse Source

feat: [试验管理] 测试将降入试验的页面单独路由

master
memorylkf 6 days ago
parent
commit
d97795d4d2
3 changed files with 23 additions and 1 deletions
  1. +15
    -0
      src/router/index.js
  2. +5
    -1
      src/views/business/study/comp/enter.vue
  3. +3
    -0
      src/views/business/study/list.vue

+ 15
- 0
src/router/index.js View File

@ -163,6 +163,21 @@ export const dynamicRoutes = [
}
]
}
// {
// path: '/study/enter',
// component: Layout,
// hidden: true,
// permissions: ['business:study:enter'],
// children: [
// {
// path: 'index/:studyId(\\d+)',
// component: () => import('@/views/business/study/comp/enter'),
// name: 'Data',
// meta: { title: '进入试验', activeMenu: '/busuness/study/list' }
// }
// ]
// }
]
// 防止连续点击多次路由报错

+ 5
- 1
src/views/business/study/comp/enter.vue View File

@ -50,7 +50,11 @@ export default {
study: {},
}
},
created() { },
created() {
// let x = this.$route.params
// let y = this.$route.query
// debugger
},
methods: {
show(row) {
this.study = row

+ 3
- 0
src/views/business/study/list.vue View File

@ -236,6 +236,9 @@ export default {
this.getList()
},
enter(row){
// const params = row
// this.$tab.openPage("", '/study/enter/index/' + row.id, params)
this.showType = 'enter'
this.$refs.enter.show(row)
},

Loading…
Cancel
Save