提交 4b4bd650 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

fix: 数据集消息任务跳转

上级 14a58ac5
......@@ -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
}
......
......@@ -115,6 +115,7 @@ export default {
},
methods: {
msg2Current(routerParam) {
if (!routerParam || !routerParam.taskId) return
const taskId = routerParam.taskId
// console.log(taskId)
const current_condition = {
......
......@@ -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)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论