From 3a05fd672f3cf6fcd847e28d93ad3e3b9c01fea2 Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期三, 16 四月 2025 15:58:32 +0800
Subject: [PATCH] 网络分析仪

---
 src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue |   17 ++++++++++++++---
 1 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
index 6cdd690..476d257 100644
--- a/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
+++ b/src/views/structural/capabilityAndLaboratory/workshop/components/fileList.vue
@@ -4,7 +4,7 @@
       <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>
@@ -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,13 +88,15 @@
               type: 'text',
               clickFun: (row) => {
                 this.delete(row);
+              },
+              showHide: (row) => {
+                return !this.isLook
               }
             },
             {
               name: '棰勮',
               type: 'text',
               clickFun: (row) => {
-                console.log('棰勮鏂囦欢淇℃伅:', row)
                 this.currentInfo = row
                 this.lookDialogVisible = true
               }

--
Gitblit v1.9.3