From 15d66d6d34ce779744bfe56a03e3bb15f33cd7b0 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期六, 02 八月 2025 11:17:24 +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