From c70590dab24ed538f9dc7eecea26ba8a8685c362 Mon Sep 17 00:00:00 2001 From: sqlnice <472252510@qq.com> Date: Fri, 1 Nov 2024 17:48:49 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E5=8D=95=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../setting_dashboard/new_dashboard_component/TaskList.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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') }