From 717f6305248d3c0efd9e23fb38faf3a88b2de27a Mon Sep 17 00:00:00 2001 From: haha Date: Tue, 14 May 2024 00:48:13 +0800 Subject: [PATCH] update code --- .../checkDetection/checkDetectionDrawer.vue | 2 +- .../src/views/project/checkDetection/index.vue | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue b/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue index 03f1f124..9fc71de2 100644 --- a/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue +++ b/ruoyi-ui/src/views/project/checkDetection/checkDetectionDrawer.vue @@ -604,7 +604,7 @@ export default { }, /** 下载附件 */ handleDownload(row) { - this.files = row.measureFiles.split(","); + this.files = row.detectionFile.split(","); this.files.forEach((item) => { this.$download.resource(item); }); diff --git a/ruoyi-ui/src/views/project/checkDetection/index.vue b/ruoyi-ui/src/views/project/checkDetection/index.vue index afef0b96..e6bc8af9 100644 --- a/ruoyi-ui/src/views/project/checkDetection/index.vue +++ b/ruoyi-ui/src/views/project/checkDetection/index.vue @@ -172,7 +172,7 @@ @@ -481,6 +481,12 @@ export default { this.getList(); }, methods: { + doDown(row){ + this.files = row.detectionFile.split(","); + this.files.forEach((item) => { + this.$download.resource(item); + }); + }, fileInput(files) { let fileUrls = ""; if (files.length > 0) { @@ -681,14 +687,7 @@ export default { } }); }); - }, - /** 下载附件 */ - handleDownload(row) { - this.files = row.measureFiles.split(","); - this.files.forEach((item) => { - this.$download.resource(item); - }); - }, + }, /** 审批日志 */ handleAuditinfo(row) { row.title = "材料取样复试";