From cfe5a96af3f1331bf7efad3e7c4976517605864c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 15 十一月 2023 10:12:07 +0800 Subject: [PATCH] 主题库-关键属性参与校验switch --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue | 21 ++++++++++++++++++++- 1 files changed, 20 insertions(+), 1 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue index ae3a1ef..1f2d69d 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTrees.vue @@ -63,6 +63,16 @@ <el-input v-model="TreeAddform.codeKeyAttrRepeatOidName" autocomplete="off" style="width: 585px" @focus="Keyfouce"></el-input> </el-form-item> + <el-form-item label="鏄惁鍙備笌鍏抽敭灞炴�ф牎楠岋細" label-width="150px"> + <el-switch + v-model="TreeAddform.codeKeyAttrValue" + active-text="鏄�" + inactive-text="鍚�" + active-color="#13ce66" + inactive-color="#ff4949" + @change="switchChange"> + </el-switch> + </el-form-item> <el-form-item label="鐩镐技鏌ヨ瑙勫垯锛�" label-width="150px"> <el-input v-model="TreeAddform.codeResembleRuleOidName" autocomplete="off" style="width: 585px" @focus="simFouce"></el-input> @@ -586,7 +596,9 @@ //缂栫爜瑙勫垯 codeRuleOidName: "", //瀛樺偍鐨勪笟鍔$被鍨� - btmTypeName: "" + btmTypeName: "", + codeKeyAttrValue:false, + isParticipateCheck:0 }, rules: { id: [ @@ -853,6 +865,11 @@ created() { }, methods: { + // switch + switchChange(){ + this.TreeAddform.isParticipateCheck = this.TreeAddform.codeKeyAttrValue ? 1 : 0; + console.log(this.TreeAddform.isParticipateCheck) + }, //瀛樺偍鐨勪笟鍔$被鍨嬪叧闂� BtmEscHandler() { this.SelectFInd = ''; @@ -1157,6 +1174,8 @@ }); Object.keys(this.TreeAddform).forEach(key => { this.TreeAddform[key] = ""; + this.TreeAddform.codeKeyAttrValue = false; + this.TreeAddform.isParticipateCheck = 0; }); this.getAttr(); this.TreeAddFormVisible = false; -- Gitblit v1.9.3