From 1993ef2efaf55b8b42a51f3b9fd0ddfa80b2d0cd Mon Sep 17 00:00:00 2001
From: fujunling <2984387807@qq.com>
Date: 星期一, 10 七月 2023 14:25:15 +0800
Subject: [PATCH] fjl

---
 Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue |   74 ++++++++++++++++++++++---------------
 1 files changed, 44 insertions(+), 30 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
index faae3ef..facc6d9 100644
--- a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
+++ b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue
@@ -78,7 +78,7 @@
         </div>
       </el-dialog>
 <!--      瀛樺偍鐨勪笟鍔$被鍨�-->
-      <el-dialog  :visible.sync="BtmdialogVisible"   title="涓恒�愮浉浼奸」鏌ヨ瑙勫垯銆戦�夊彇鍊�" append-to-body>
+      <el-dialog  :visible.sync="BtmdialogVisible"   title="涓恒�愪笟鍔$被鍨嬨�戦�夊彇鍊�" append-to-body>
         <template>
           <el-select v-model="SelectValue" placeholder="璇烽�夋嫨" style="width: 135px !important;">
             <el-option
@@ -110,7 +110,7 @@
 import {TreeEditSave} from '@/api/template/templateAttr'
 export default {
   name: "classifyTreeform.vue",
-  props: ['loneTreeNewForm','flag','Editclose'],
+  props: ['loneTreeNewForm','flag','Editclose','TreeFlag'],
   data() {
     return {
       SelectFInd:"",
@@ -198,9 +198,9 @@
         column: [
           {
             label: '涓婚搴�/鍒嗙被缂栧彿',
-            prop: 'btmtypeid',
+            prop: 'id',
             labelWidth:135,
-            readonly: true,
+            disabled: true,
             rules: [{
               required: true,
               message: "涓婚搴�/鍒嗙被缂栧彿",
@@ -210,7 +210,7 @@
           {
             label: '涓婚搴�/鍒嗙被鍚嶇О',
             prop: 'name',
-            readonly: true,
+            disabled: true,
             labelWidth:135,
             rules: [{
               required: true,
@@ -222,13 +222,13 @@
             label:"鎻忚堪",
             prop:"description",
             labelWidth:128,
-            readonly: true,
+            disabled: true,
           },
           {
             label: '瀛樺偍鐨勪笟鍔$被鍨�',
             prop: 'btmtypename',
             labelWidth:128,
-            readonly: true,
+            disabled: true,
             rules: [{
               required: true,
               message: "瀛樺偍鐨勪笟鍔$被鍨�",
@@ -239,19 +239,19 @@
             label:"缂栫爜瑙勫垯",
             prop:"coderuleoidName",
             labelWidth:128,
-            readonly: true,
+            disabled: true,
           },
           {
             label:"鍏抽敭灞炴�ф煡璇㈣鍒�",
             prop:"codekeyattrrepeatoidName",
             labelWidth:128,
-            readonly: true,
+            disabled: true,
           },
           {
             label:"鐩镐技鏌ヨ瑙勫垯",
             prop:"codeResembleRuleOidName",
             labelWidth:128,
-            readonly: true,
+            disabled: true,
           },
         ]
       },
@@ -259,7 +259,7 @@
         column: [
           {
             label: '涓婚搴�/鍒嗙被缂栧彿',
-            prop: 'btmtypeid',
+            prop: 'id',
             labelWidth:128,
             rules: [{
               required: true,
@@ -287,6 +287,8 @@
             prop: 'btmtypename',
             labelWidth:128,
             focus:this.btmFoucus,
+            readonly: true,
+            hide:this.TreeFlag,
             rules: [{
               required: true,
               message: "瀛樺偍鐨勪笟鍔$被鍨�",
@@ -297,19 +299,22 @@
             label:"缂栫爜瑙勫垯",
             prop:"coderuleoidName",
             labelWidth:128,
-            focus:this.CodeFoucus
+            focus:this.CodeFoucus,
+            readonly: true,
           },
           {
             label:"鍏抽敭灞炴�ф煡璇㈣鍒�",
             prop:"codekeyattrrepeatoidName",
             labelWidth:128,
-            focus:this.Keyfouce
+            focus:this.Keyfouce,
+            readonly: true,
           },
           {
             label:"鐩镐技鏌ヨ瑙勫垯",
             prop:"codeResembleRuleOidName",
             labelWidth:128,
-            focus: this.simFouce
+            focus: this.simFouce,
+            readonly: true,
           },
 
         ]
@@ -322,6 +327,14 @@
     }
   },
   created() {
+  },
+  watch:{
+    // TreeFlag:{
+    //   handler(newval){
+    //     const falg=newval;
+    //     this.findObject(this.)
+    //   }
+    // }
   },
   methods: {
     submits(form,done){
@@ -368,9 +381,9 @@
         this.MasterdialogVisible=false;
         this.masterSelectList=[]
         this.$set(this.loneTreeNewForm,'coderuleoidName',this.masterName)
-        this.$set(this.loneTreeNewForm,'coderuleOid',this.masterOid)
+        this.$set(this.loneTreeNewForm,'coderuleoid',this.masterOid)
         this.$emit('MasterHandler',this.loneTreeNewForm)
-        console.log(this.loneTreeNewForm)
+        // console.log(this.loneTreeNewForm)
       }
     },
     //缂栫爜澶氶��
@@ -378,7 +391,7 @@
       this.masterSelectList=row;
       this.masterName=row[0].name;
       this.masterOid=row[0].oid;
-      console.log('oid',this.oid)
+      // console.log('oid',this.oid)
     },
     //缂栫爜鎺ュ彛
     MasterdefaultRend(masterParameter){
@@ -391,7 +404,7 @@
         this.masterData=res.data.records;
       })
     },
-    // 鍏抽敭灞炴�уけ鐒�
+    //鍏抽敭灞炴�уけ鐒�
     Keyfouce(){
       this.KeydialogVisible=true;
       this.KeydefaultRend()
@@ -405,9 +418,10 @@
       }else {
         this.KeydialogVisible=false;
         this.KeySelectLIst=[]
-        this.$set(this.loneTreeNewForm,'codeResembleRuleOidName',this.simName)
-        this.$set(this.loneTreeNewForm,'codeResembleRuleOid',this.simOid)
+        this.$set(this.loneTreeNewForm,'codekeyattrrepeatoidName',this.KeyName)
+        this.$set(this.loneTreeNewForm,'codekeyattrrepeatoid',this.KeyOid)
         this.$emit('MasterHandler',this.loneTreeNewForm)
+        console.log(this.loneTreeNewForm)
       }
     },
     //鍏抽敭灞炴�ф煡璇�
@@ -438,13 +452,13 @@
         this.KeyData=res.data.records;
       })
     },
-    // 鍏抽敭澶氶��
+    //鍏抽敭澶氶��
     KeySelect(row){
       this.KeySelectLIst=row;
       this.KeyName=row[0].name;
       this.KeyOid=row[0].oid;
     },
-    // 鐩镐技椤瑰け鐒�
+    //鐩镐技椤瑰け鐒�
     simFouce(){
       this.SimidialogVisible=true;
       this.simdefaultRend()
@@ -481,7 +495,7 @@
         this.SelectFInd=""
       }
     },
-  //  鐩镐技椤瑰閫�
+    //鐩镐技椤瑰閫�
     simSelect(row){
       this.simSelectList=row;
       this.simName=row[0].name;
@@ -503,17 +517,17 @@
       this.BtmdialogVisible=true;
       this.btmdefaultRend()
     },
-  //  涓氬姟绫诲瀷纭畾
+    //涓氬姟绫诲瀷纭畾
     btmHandlerClick(){
       if(this.btmSelectList.length>1){
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃暟鎹�')
       }else if(this.btmSelectList.length<=0){
         this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹�')
       }else {
-        this.SimidialogVisible=false;
-        this.simSelectList=[]
-        this.$set(this.loneTreeNewForm,'btmtypename',this.btmName)
-        this.$set(this.loneTreeNewForm,'btmtypeoid',this.btmOid)
+        this.BtmdialogVisible=false;
+        this.btmSelectList=[]
+        this.$set(this.loneTreeNewForm,'btmtypename',this.btmName ||this.btmOid)
+        this.$set(this.loneTreeNewForm,'btmtypeid',this.btmOid)
         this.$emit('MasterHandler',this.loneTreeNewForm)
       }
     },
@@ -535,7 +549,7 @@
         this.SelectFInd=""
       }
     },
-  //  涓氬姟绫诲瀷澶氶��
+    //涓氬姟绫诲瀷澶氶��
     btmSelect(row){
       this.btmSelectList=row;
       this.btmName=row[0].name;
@@ -544,7 +558,7 @@
     //涓氬姟绫诲瀷鎺ュ彛
     btmdefaultRend(masterParameter){
       referDataGrid({valueField:'id',isMuti:'false',...masterParameter}).then(res=>{
-        console.log(res)
+        // console.log(res)
         this.BtmData=res.data.data.records
       })
     }

--
Gitblit v1.9.3