From cb2a01ee7dea28a2661720060b03c41dc372acb5 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 01 八月 2025 11:53:16 +0800
Subject: [PATCH] 完善串口处理数据,数据选择
---
src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue b/src/views/CNAS/resourceDemand/device/component/equipmentMaintenance.vue
index 08aea3d..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) {
--
Gitblit v1.9.3