From 7adbf0551f6a6b307e66cdd6537ab45fc5a2bf11 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期五, 29 十一月 2024 04:00:10 +0800
Subject: [PATCH] bug修复和页面查询

---
 src/views/projectEngineering/projectLibrary/projectDetails.vue |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/src/views/projectEngineering/projectLibrary/projectDetails.vue b/src/views/projectEngineering/projectLibrary/projectDetails.vue
index 59ca747..593af4b 100644
--- a/src/views/projectEngineering/projectLibrary/projectDetails.vue
+++ b/src/views/projectEngineering/projectLibrary/projectDetails.vue
@@ -1,7 +1,7 @@
 <template>
-  <el-card class="card-container">
+  <el-card class="card-container" >
     <div class="flex-container mb-4">
-      <el-tabs v-model="currentTab" @tab-click="handleClick">
+      <el-tabs v-model="currentTab" @tab-click="handleClick" v-show="isShow">
         <el-tab-pane
           v-for="item in TABS_DATA"
           :key="item.value"
@@ -19,6 +19,8 @@
       ref="childRef"
       :disabled="disabled"
       @toNext="changeTable"
+      @updateIsShow="updateIsShow"
+      :isShow="isShow"
       class="full-width custom-height"
     />
     <div v-if="!disabled" class="button-container">
@@ -41,6 +43,7 @@
   name: 'ProjectDetails',
   data() {
     return {
+      isShow: false,
       currentTab: '椤圭洰绠$悊鍩虹淇℃伅',
       disabled: false,
       projectForm:{},
@@ -81,8 +84,11 @@
     };
   },
   methods: {
+    updateIsShow(newValue) {
+      this.isShow = newValue;
+    },
     handleClick(tabTarget) {
-      this.componentName = this.TABS_DATA[tabTarget.index].componentName;
+        this.componentName = this.TABS_DATA[tabTarget.index].componentName;
     },
     changeTable(index) {
       this.componentName = this.TABS_DATA[index].componentName;

--
Gitblit v1.8.0