Merge pull request #291 from dataease/pr@dev@fix_数据集消息跳转

fix: 数据集消息任务跳转
This commit is contained in:
fit2cloud-chenyw 2021-07-22 17:29:29 +08:00 committed by GitHub
commit 0cd687ade7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -72,6 +72,7 @@ export const fillMeta = (router) => {
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-dept-form') && (router.meta.activeMenu = '/system/dept')
router.name.includes('sys-task-dataset') && (router.meta.activeMenu = '/system/system-task')
// return router
}

View File

@ -115,6 +115,7 @@ export default {
},
methods: {
msg2Current(routerParam) {
if (!routerParam || !routerParam.taskId) return
const taskId = routerParam.taskId
// console.log(taskId)
const current_condition = {

View File

@ -51,10 +51,10 @@ export default {
if (routerParam.sourceParam) {
try {
const msgParam = JSON.parse(routerParam.sourceParam)
this.param = msgParam.tableId
// this.param = msgParam.tableId
this.tabActive = 'TaskRecord'
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) {
console.error(error)