From f097802c6898879b23bbd0398f3a854b10698189 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期四, 17 四月 2025 17:29:31 +0800
Subject: [PATCH] qx

---
 src/views/hosp/project/index.vue |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/src/views/hosp/project/index.vue b/src/views/hosp/project/index.vue
index e21b34c..cd53927 100644
--- a/src/views/hosp/project/index.vue
+++ b/src/views/hosp/project/index.vue
@@ -130,6 +130,7 @@
           v-loading="loading"
           :data="projectList"
           ref="tableRef"
+          height="580"
           border
         >
           <el-table-column
@@ -994,7 +995,7 @@
       multiple: true,
       showSearch: true,
       total: 0,
-      treeId: ["532"],
+      treeId: [],
       ListId: [],
       noclick: false,
       consumableList: [],
@@ -1085,6 +1086,7 @@
       this.debounceFilter(val);
     },
     treeId(newVal) {
+      console.log(newVal,8989)
       if (newVal && newVal.length > 0) {
         this.$nextTick(() => {
           const lastId = newVal[newVal.length - 1] || "532";
@@ -1119,9 +1121,9 @@
   created() {
     this.getConsumables();
     this.getDeptList();
-    this.getDeptTree().then(() => {
-      this.precomputePinyin();
-    });
+    // this.getDeptTree().then(() => {
+    //   this.precomputePinyin();
+    // });
   },
   mounted() {
     this.getDeptTree().then(() => {
@@ -1150,7 +1152,6 @@
       traverse(this.deptOptions);
     },
     filterNode(value, data) {
-      console.log(value, data, 2233);
       if (!value) return true;
       const cached = this.pinyinCache.get(data.id);
       if (!cached) return false;
@@ -1410,12 +1411,18 @@
     getDeptTree() {
       return deptTree111().then((response) => {
         this.deptOptions = response.data;
-        this.treeId.push(this.treeDate.id);
+        this.treeId = []
+        if(this.treeDate.id){
+          this.treeId.push( this.treeDate.id)
+        }else{
+          this.treeId.push("532")
+        }
+        
       });
     },
     handleNodeClick(date) {
       this.treeDate = date;
-      console.log(this.treeDate);
+      this.xiugaiList ={}
       this.xiugais = date.qf === "0";
       let proId = date.id;
       getInfoByProId(proId).then((response) => {
@@ -1570,6 +1577,7 @@
       }
     },
     handleUpdate1() {
+      this.form={}
       this.form = this.xiugaiList;
       this.form.proStatus = this.form.proStatus.toString();
       this.proParent = true;
@@ -1717,6 +1725,7 @@
           this.precomputePinyin();
         });
       }
+      console.log(this.treeId)
     },
     submit() {
       this.ChangeList.forEach((item) => {

--
Gitblit v1.8.0