From 90c8680cbc67d4b2680b1e5af4ad1129a96efa0c Mon Sep 17 00:00:00 2001 From: gaoluyang <2820782392@qq.com> Date: 星期二, 06 五月 2025 14:39:09 +0800 Subject: [PATCH] 1.设备工具明细和树-过期标红 --- src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 deletions(-) diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue index 667d29e..add36e0 100644 --- a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue +++ b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue @@ -62,7 +62,7 @@ <script> import { addDeviceMaintenance, - deleteDeviceMaintenance, + deleteDeviceMaintenance, exportDeviceMaintenance, selectDeviceMaintenancePage } from "@/api/cnas/resourceDemand/device"; import limsTable from "@/components/Table/lims-table.vue"; @@ -86,7 +86,6 @@ search: { maintenanceDate: '', }, - total: 0, outLoading: false, tableData: [], tableLoading: false, @@ -216,6 +215,14 @@ }); }, openHandleOut () { + this.outLoading = true + exportDeviceMaintenance({ + deviceId: this.clickNodeVal.value + }).then(res => { + this.outLoading = false + const blob = new Blob([res], { type: 'application/octet-stream' }); + this.$download.saveAs(blob, '璁惧缁存姢淇濆吇.doc') + }) }, handleDeleteClick(row) { @@ -269,6 +276,14 @@ } }) }, + }, + watch: { + // 鐩戝惉鐐瑰嚮el-tree鐨勬暟鎹紝杩涜鏁版嵁鍒锋柊 + clickNodeVal(newVal) { + if (newVal.value) { + this.refreshTableList(); + } + }, } }; </script> -- Gitblit v1.9.3