From 620fc3210cb9af9e86e7679d21d323502fcb5ead Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 17 二月 2025 14:23:32 +0800
Subject: [PATCH] 项目中心只有提交审核的才显示审核按钮

---
 src/views/projectEngineering/projectLibrary/index.vue |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/views/projectEngineering/projectLibrary/index.vue b/src/views/projectEngineering/projectLibrary/index.vue
index d3a81eb..c3e2492 100644
--- a/src/views/projectEngineering/projectLibrary/index.vue
+++ b/src/views/projectEngineering/projectLibrary/index.vue
@@ -251,7 +251,7 @@
         <template slot-scope="scope">
           <el-tooltip class="item" effect="dark" content="瀹℃牳" placement="top">
             <el-button
-              v-if="scope.row.auditRole && $route.query.projectCategory==='6'"
+              v-if="scope.row.auditRole && $route.query.projectCategory==='6' && scope.row.usedStatus === 1"
               size="medium"
               type="text"
               icon="el-icon-circle-check"
@@ -406,6 +406,13 @@
       item.index = index + 1;
       item.key = index;
       item.serialNumber = index + 1;
+      if(item.id ==='usedStatus' ){
+        if(projectCategory !== '6') {
+          item.visible = false
+        }  else {
+          item.visible = true
+        }
+      }
       return item;
     });
     this.columns = columns;
@@ -446,12 +453,26 @@
         item.index = index + 1;
         item.key = index;
         item.serialNumber = index + 1
+        if(item.id ==='usedStatus' ){
+          if(projectCategory !== '6') {
+            item.visible = false
+          }  else {
+            item.visible = true
+          }
+        }
         return item;
       });
       this.columns = currentRest.map((item, index) => {
         item.index = index + 1;
         item.key = index;
         item.serialNumber = index + 1
+        if(item.id ==='usedStatus' ){
+          if(projectCategory !== '6') {
+            item.visible = false
+          }  else {
+            item.visible = true
+          }
+        }
         return item;
       });
       //寮哄埗table娓叉煋

--
Gitblit v1.8.0