From 221bb1704bb74b38655c2cd2413242885b5cc614 Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期日, 28 四月 2024 09:50:55 +0800
Subject: [PATCH] 1、调整路由模式为hash模式以试图解决项目上线后刷新页面后无法正常跳转页面而出现JSON页面问题 2、首页设备级看板点击报修按钮跳转至故障报修页面并根据设备编号筛选页面对应数据

---
 src/views/eam/DailyMaintenanceStandardList.vue |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/src/views/eam/DailyMaintenanceStandardList.vue b/src/views/eam/DailyMaintenanceStandardList.vue
index 55486c8..18253ef 100644
--- a/src/views/eam/DailyMaintenanceStandardList.vue
+++ b/src/views/eam/DailyMaintenanceStandardList.vue
@@ -111,6 +111,12 @@
         icon="download"
       >妯$増涓嬭浇</a-button>
       <a-button
+        v-show="selectedRowKeys.length == 1 "
+        type="primary"
+        @click="handlePrint(selectionRows[0])"
+        icon="highlight"
+      >妯$増鎵撳嵃</a-button>
+      <a-button
         type='primary'
         @click='searchQuery'
         icon='search'
@@ -643,6 +649,11 @@
         }
       })
     },
+
+    handlePrint(record) {
+      let href = `${window._CONFIG['domianURL']}/jmreport/view/934696640354902016?id=` + record.id; //缃戠珯閾炬帴
+      window.open(href, "_blank");
+    },
   }
 }
 </script>

--
Gitblit v1.9.3