From df559fa4353e312782841302d0281c7c98a81edb Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期二, 22 四月 2025 15:47:58 +0800
Subject: [PATCH] 修改检验任务
---
src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
index 11287cd..476d257 100644
--- a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
+++ b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
@@ -4,14 +4,14 @@
<el-upload ref='upload' :action="fileAction" :auto-upload="true" :before-upload="fileBeforeUpload"
:data="{ id: currentId }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp"
:show-file-list="false" accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar'
- style="width: 80px !important;">
+ style="width: 80px !important;" v-if="!isLook">
<el-button size="small" style="height: 38px" type="primary">闄勪欢涓婁紶</el-button>
</el-upload>
</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="javaApi + '/word/' + currentInfo.fileUrl" :currentFile="{}"
+ <filePreview v-if="lookDialogVisible" :fileUrl="currentInfo.fileMinioUrl" :currentFile="currentInfo"
style="max-height: 90vh;overflow-y: auto;" />
</el-dialog>
</div>
@@ -26,7 +26,16 @@
limsTable,
filePreview,
},
- props: ['currentId'],
+ props: {
+ currentId: {
+ type: String,
+ default: ''
+ },
+ isLook: {
+ type: Boolean,
+ default: false
+ }
+ },
computed: {
fileAction() {
return this.javaApi + '/workShop/uploadFile'
@@ -79,6 +88,9 @@
type: 'text',
clickFun: (row) => {
this.delete(row);
+ },
+ showHide: (row) => {
+ return !this.isLook
}
},
{
@@ -109,6 +121,7 @@
this.tableLoadingFile = false
if (res.code === 200) {
this.tableDataFile = res.data
+ console.log('鏂囦欢鍒楄〃鏁版嵁:', this.tableDataFile)
}
}).catch(err => {
this.tableLoadingFile = false
--
Gitblit v1.9.3