From f8d17ac2666198f513a4d5f83dce1135a911f2ee Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 02 四月 2025 17:15:07 +0800
Subject: [PATCH] Merge branch 'radio-frequency-cable' of http://114.132.189.42:9002/r/lims-ruoyi-before into radio-frequency-cable
---
src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue | 26 +++++++++++++++++++-------
1 files changed, 19 insertions(+), 7 deletions(-)
diff --git a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
index 5d420d3..6cdd690 100644
--- a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
+++ b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
@@ -10,15 +10,21 @@
</div>
<lims-table :tableData="tableDataFile" :column="columnFile" height="500px" key="tableDataFile"
:tableLoading="tableLoadingFile"></lims-table>
+ <el-dialog title="鏌ョ湅闄勪欢" :visible.sync="lookDialogVisible" width="800px" top="5vh" fullscreen append-to-body>
+ <filePreview v-if="lookDialogVisible" :fileUrl="currentInfo.fileMinioUrl" :currentFile="currentInfo"
+ style="max-height: 90vh;overflow-y: auto;" />
+ </el-dialog>
</div>
</template>
<script>
import limsTable from "@/components/Table/lims-table.vue";
import { fileList, delFile } from "@/api/structural/workshop.js"
+import filePreview from "@/components/Preview/filePreview.vue";
export default {
components: {
limsTable,
+ filePreview,
},
props: ['currentId'],
computed: {
@@ -75,11 +81,22 @@
this.delete(row);
}
},
+ {
+ name: '棰勮',
+ type: 'text',
+ clickFun: (row) => {
+ console.log('棰勮鏂囦欢淇℃伅:', row)
+ this.currentInfo = row
+ this.lookDialogVisible = true
+ }
+ },
]
}
],
tableDataFile: [],
tableLoadingFile: false,
+ lookDialogVisible: false,
+ currentInfo: {},
}
},
mounted() {
@@ -93,6 +110,7 @@
this.tableLoadingFile = false
if (res.code === 200) {
this.tableDataFile = res.data
+ console.log('鏂囦欢鍒楄〃鏁版嵁:', this.tableDataFile)
}
}).catch(err => {
this.tableLoadingFile = false
@@ -119,13 +137,7 @@
},
// 涓嬭浇闄勪欢鐨勬枃浠�
handleDown(row) {
- downFile({
- id: row.id,
- }).then(res => {
- this.$download.saveAs(res.data.fileUrl, row.fileName);
- }).catch(error => {
-
- })
+ this.$download.saveAs(row.fileUrl, row.fileName);
},
// 鍒犻櫎闄勪欢鏂囦欢
delete(row) {
--
Gitblit v1.9.3