From 8fc48c64a5d31b137f0d3673bb0f0221d087a8fc Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 15 十一月 2023 16:02:16 +0800
Subject: [PATCH] 关键属性开启默认True

---
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue |    1 +
 Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue    |   14 ++++++++------
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue
index f21526d..5e5bcce 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue
@@ -399,6 +399,7 @@
               activeColor: "#13ce66",
               inactiveColor: "#ff4949",
               labelWidth:160,
+              value:1,
               dicData: [{
                 label: '鍚�',
                 value: 0
diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
index 88d4b0b..b7f0be2 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue
@@ -597,8 +597,8 @@
         codeRuleOidName: "",
         //瀛樺偍鐨勪笟鍔$被鍨�
         btmTypeName: "",
-        codeKeyAttrValue:false,
-        isParticipateCheck:0
+        codeKeyAttrValue:true,
+        isParticipateCheck:1
       },
       rules: {
         id: [
@@ -868,7 +868,7 @@
     // switch
     switchChange(){
       this.TreeAddform.isParticipateCheck = this.TreeAddform.codeKeyAttrValue ? 1 : 0;
-      console.log(this.TreeAddform.isParticipateCheck)
+      // console.log(this.TreeAddform.isParticipateCheck)
     },
     //瀛樺偍鐨勪笟鍔$被鍨嬪叧闂�
     BtmEscHandler() {
@@ -1156,6 +1156,8 @@
     TreeEscHandler() {
       this.TreeAddform = {};
       this.TreeAddFormVisible = false;
+      this.TreeAddform.codeKeyAttrValue = true;
+      this.TreeAddform.isParticipateCheck = 1;
       // 鍏抽棴寮圭獥娓呯┖鏍¢獙
       this.$refs.myForm.clearValidate();
     },
@@ -1174,8 +1176,8 @@
             });
             Object.keys(this.TreeAddform).forEach(key => {
               this.TreeAddform[key] = "";
-              this.TreeAddform.codeKeyAttrValue = false;
-              this.TreeAddform.isParticipateCheck = 0;
+              this.TreeAddform.codeKeyAttrValue = true;
+              this.TreeAddform.isParticipateCheck = 1;
             });
             this.getAttr();
             this.TreeAddFormVisible = false;
@@ -1370,7 +1372,7 @@
         }
         this.TreeList = res3.data.data;
         if(!this.TreeList.isParticipateCheck){
-          this.$set(this.TreeList,"isParticipateCheck",0)
+          this.$set(this.TreeList,"isParticipateCheck",1)
           return
         }
       } catch (error) {

--
Gitblit v1.9.3