From a5c07be72ccec352ae29dd861b54781b3f3fc45b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=97=B6=E5=90=AF=E9=BE=99?= Date: Thu, 29 Aug 2024 14:12:24 +0800 Subject: [PATCH] fix: modify --- .../setting_dashboard/new_dashboard_component/TaskList.vue | 4 ++-- .../new_dashboard_component/echarts/BarReverseCharts.vue | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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 2d11ac7..9efa7a7 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 @@ -71,9 +71,9 @@ export default { }) }, goPage(row) { - // TODO 替换为动态链接 + // TODO 替换为动态链接, token 是天融信 token? const url = row ? `http://36.111.150.83:9527/taskManageFlow?taskCode=${row.task_code}&src=fromYW` : 'http://36.111.150.83:9527/faultRepairsList' - window.location.href = url + window.open(url, '_blank') } } } diff --git a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/echarts/BarReverseCharts.vue b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/echarts/BarReverseCharts.vue index d854d14..94ce23d 100644 --- a/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/echarts/BarReverseCharts.vue +++ b/webs/sms-web/src/views/configs/setting_dashboard/new_dashboard_component/echarts/BarReverseCharts.vue @@ -49,6 +49,7 @@ export default { return metrics.width } const getYLeft = data => { + if (!data.keys?.length) return // 求出y轴标签最长的项 let maxlengthName = data.keys.sort((a, b) => { return b.length - a.length