Unverified 提交 0cd687ad authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw 提交者: GitHub

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

fix: 数据集消息任务跳转
...@@ -72,6 +72,7 @@ export const fillMeta = (router) => { ...@@ -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 { ...@@ -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 { ...@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论