diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/TaskList.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/TaskList.vue index 5f7d8d7..7813667 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/TaskList.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/TaskList.vue @@ -30,6 +30,11 @@ import ItemCard from './ItemCard.vue' import { getTaskList } from 'services/system/dashboard' import { getSystemTreeConfigs } from 'services/system' +export function getTrxToken() { + const value = localStorage.getItem('TRX_TOKEN') + if (value === 'undefined') return '' + return value +} export default { components: { ItemCard }, @@ -84,7 +89,7 @@ export default { }, goPage(row) { if (!this.yunkongUrl) return this.$message.error('运控系统地址未配置, 请联系管理员查看 管理中心-系统配置-系统对接-运控系统地址 页面是否配置正确') - const url = row ? `${this.yunkongUrl}/taskManageFlow?taskCode=${row.taskCode || row.task_code}&src=fromYW` : `${this.yunkongUrl}/faultRepairsList` + const url = row ? `${this.yunkongUrl}/faultRepairs?nodeId=${row.nodeId || row.node_id}&record_id=${row.recordId || row.record_id}&proc_inst_id=${row.procInstId || row.proc_inst_id}&isView=ture&token=${getTrxToken()}` : `${this.yunkongUrl}/faultRepairsList` console.log(url) window.open(url, '_blank') }