From b5d842b900757a2fb48d673cb33bb551e8da7b89 Mon Sep 17 00:00:00 2001
From: Tcsm <1377977403@qq.com>
Date: 星期日, 06 八月 2023 00:35:36 +0800
Subject: [PATCH] 完善电子文件问题

---
 ruoyi-ui/src/views/secret/index.vue |   33 +++++++++++++++++----------------
 1 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/ruoyi-ui/src/views/secret/index.vue b/ruoyi-ui/src/views/secret/index.vue
index b5a593e..ca1fdb2 100644
--- a/ruoyi-ui/src/views/secret/index.vue
+++ b/ruoyi-ui/src/views/secret/index.vue
@@ -128,22 +128,23 @@
         <el-table-column label="鐢靛瓙鏂囦欢" prop="url" align="center" sortable  width="110" >
           <template slot-scope="scope" >
             <div  @click="handleCheck(scope.row)">
-            <img
-              class="el-upload-list__item-thumbnail"
-              src="../../assets/images/deviceLis.png"
-              alt=""
-              style="width: 35px; height: 35px;"
-              fit="cover"
-              v-if="scope.row.url !== ','"
-            >
-            <img
-              class="el-upload-list__item-thumbnail"
-              src="../../assets/images/deviceA.png"
-              alt=""
-              style="width: 35px; height: 35px;"
-              fit="cover"
-              v-if="scope.row.url === ','"
-            ></div>
+              <img
+                class="el-upload-list__item-thumbnail"
+                src="../../assets/images/deviceLis.png"
+                alt=""
+                style="width: 35px; height: 35px;"
+                fit="cover"
+                v-if="!(scope.row.url === '' || scope.row.url === ',' || scope.row.url === null)"
+              >
+              <img
+                v-else
+                class="el-upload-list__item-thumbnail"
+                src="../../assets/images/deviceA.png"
+                alt=""
+                style="width: 35px; height: 35px;"
+                fit="cover"
+
+              ></div>
           </template>
         </el-table-column>
 

--
Gitblit v1.9.1