forked from github/dataease
Merge pull request #291 from dataease/pr@dev@fix_数据集消息跳转
fix: 数据集消息任务跳转
This commit is contained in:
commit
0cd687ade7
@ -72,6 +72,7 @@ export const fillMeta = (router) => {
|
|||||||
router.name.includes('system-user-form') && (router.meta.activeMenu = '/system/user')
|
router.name.includes('system-user-form') && (router.meta.activeMenu = '/system/user')
|
||||||
router.name.includes('system-role-form') && (router.meta.activeMenu = '/system/role')
|
router.name.includes('system-role-form') && (router.meta.activeMenu = '/system/role')
|
||||||
router.name.includes('system-dept-form') && (router.meta.activeMenu = '/system/dept')
|
router.name.includes('system-dept-form') && (router.meta.activeMenu = '/system/dept')
|
||||||
|
router.name.includes('sys-task-dataset') && (router.meta.activeMenu = '/system/system-task')
|
||||||
// return router
|
// return router
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -115,6 +115,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
msg2Current(routerParam) {
|
msg2Current(routerParam) {
|
||||||
|
if (!routerParam || !routerParam.taskId) return
|
||||||
const taskId = routerParam.taskId
|
const taskId = routerParam.taskId
|
||||||
// console.log(taskId)
|
// console.log(taskId)
|
||||||
const current_condition = {
|
const current_condition = {
|
||||||
|
@ -51,10 +51,10 @@ export default {
|
|||||||
if (routerParam.sourceParam) {
|
if (routerParam.sourceParam) {
|
||||||
try {
|
try {
|
||||||
const msgParam = JSON.parse(routerParam.sourceParam)
|
const msgParam = JSON.parse(routerParam.sourceParam)
|
||||||
this.param = msgParam.tableId
|
// this.param = msgParam.tableId
|
||||||
this.tabActive = 'TaskRecord'
|
this.tabActive = 'TaskRecord'
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.task_record && this.$refs.task_record.msg2Current && this.$refs.task_record.msg2Current(routerParam.sourceParam)
|
this.$refs.task_record && this.$refs.task_record.msg2Current && this.$refs.task_record.msg2Current(msgParam)
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error)
|
console.error(error)
|
||||||
|
Loading…
Reference in New Issue
Block a user