From ac1cf9f57ed1ef031ddd57fa8c6a9fee3f18e158 Mon Sep 17 00:00:00 2001
From: wente <329538422@qq.com>
Date: 星期五, 12 一月 2024 10:23:21 +0800
Subject: [PATCH] 项目表

---
 web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue |   20 +++++++++-----------
 1 files changed, 9 insertions(+), 11 deletions(-)

diff --git a/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue b/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
index f6bc816..daa8cb2 100644
--- a/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
+++ b/web/src/views/modules/configItemWarehouse/ConfigItemWarehouse-AddOrUpdate.vue
@@ -28,7 +28,7 @@
             </el-date-picker>
           </el-form-item>
           <el-form-item class="marginTopAndMarginBottom2" label="搴撶被鍨�" style="width: 99%">
-            <zt-dict :disabled="stepMarker!=='pzxrk_first'" v-model="dataForm.configItemWarehouse.libraryType" :radio="true" dict="library_type"></zt-dict>
+            <zt-dict disabled="disabled" v-model="dataForm.configItemWarehouse.libraryType" :radio="true" dict="library_type"></zt-dict>
           </el-form-item>
         </div>
         <div class="el-flexManageDialog el-border-bottom">
@@ -300,10 +300,10 @@
     },
     created() {
       const roleName = localStorage.getItem('roleName')
-      if (roleName && roleName.includes('QA')) {
+      if (roleName && roleName.includes('瀹℃牳浜哄憳')) {
         this.showColumn = true;
       }
-      if (roleName && roleName.includes('娴嬭瘯鍛�')) {
+      if (roleName && roleName.includes('妫�娴嬩汉鍛�')) {
         this.showAddAndEdit = true;
       }
     },
@@ -325,6 +325,10 @@
         if (row.projectId) {
           this.dataForm.projectId = row.projectId
         }
+        if (row.libraryType) {
+          console.log(row.libraryType,"row.libraryType")
+          this.dataForm.configItemWarehouse.libraryType = row.libraryType
+        }
         this.getInfo()
         if (!this.dataForm.disabled) {
           if (!row.stepMarker) {
@@ -337,13 +341,6 @@
         }
         console.log(this.dataForm.id, this.dataForm.projectId, 'params params')
       },
-      // addConfigItemWarehouseRow(){
-      //   this.dataForm.configItemList.push({})
-      //   this.$nextTick(()=>{
-      //     const tableBody=this.$refs.tableConfigItemList.$el.querySelector('.el-table__body-wrapper')
-      //     tableBody.scrollTop = tableBody.scrollHeight;
-      //   })
-      // },
       handleCommand(pageCode) {
         const selectedItem = this.menuOptions.find(item => item.pageCode === pageCode);
         console.log(selectedItem, "handleCommand(pageCode) selectedItem")
@@ -378,7 +375,8 @@
       async getInfo() {
         let params = {
           warehouseId: this.dataForm.id,
-          projectId: this.dataForm.projectId
+          projectId: this.dataForm.projectId,
+          libraryType:this.dataForm.configItemWarehouse.libraryType
         }
         let res = await this.$http.get(`/configItemWarehouse/ConfigItemWarehouse/getDto`, {params: params})
         this.dataForm = {

--
Gitblit v1.9.1