From 9d8be8e7580ef577def96c852288a5a95eab4ea3 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期二, 11 七月 2023 19:22:53 +0800 Subject: [PATCH] 代码整合,前端代码打包 --- Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue | 141 +++++++++++++++++++++++++--------------------- 1 files changed, 77 insertions(+), 64 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue index 5eb3f23..9a71b38 100644 --- a/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue +++ b/Source/UBCS-WEB/src/components/Tree/classifyTreeform.vue @@ -2,7 +2,7 @@ <div> <avue-form v-model="loneTreeNewForm" :option="option" v-if="flag == 'renonly'"> </avue-form> - <avue-form v-model="loneTreeNewForm" :option="options" @submit="submits" v-else-if="flag == 'edit'"> + <avue-form v-model="loneTreeNewForm" :option="this.options" @submit="submits" v-else-if="flag == 'edit'"> </avue-form> <div> <!-- 缂栫爜瑙勫垯--> @@ -255,70 +255,7 @@ }, ] }, - options: { - column: [ - { - label: '涓婚搴�/鍒嗙被缂栧彿', - prop: 'id', - labelWidth:128, - rules: [{ - required: true, - message: "涓婚搴�/鍒嗙被缂栧彿", - trigger: "blur" - }] - }, - { - label: '涓婚搴�/鍒嗙被鍚嶇О', - prop: 'name', - labelWidth:128, - rules: [{ - required: true, - message: "涓婚搴�/鍒嗙被鍚嶇О", - trigger: "blur" - }] - }, - { - label:"鎻忚堪", - prop:"description", - labelWidth:128, - }, - { - label: '瀛樺偍鐨勪笟鍔$被鍨�', - prop: 'btmtypename', - labelWidth:128, - focus:this.btmFoucus, - readonly: true, - display:false, - rules: [{ - required: true, - message: "瀛樺偍鐨勪笟鍔$被鍨�", - trigger: "blur" - }] - }, - { - label:"缂栫爜瑙勫垯", - prop:"coderuleoidName", - labelWidth:128, - focus:this.CodeFoucus, - readonly: true, - }, - { - label:"鍏抽敭灞炴�ф煡璇㈣鍒�", - prop:"codekeyattrrepeatoidName", - labelWidth:128, - focus:this.Keyfouce, - readonly: true, - }, - { - label:"鐩镐技鏌ヨ瑙勫垯", - prop:"codeResembleRuleOidName", - labelWidth:128, - focus: this.simFouce, - readonly: true, - }, - ] - }, FormList: {}, masterSelectList:[], KeySelectLIst:[], @@ -326,6 +263,75 @@ btmSelectList:[] } }, + computed:{ + options(){ + return{ + column: [ + { + label: '涓婚搴�/鍒嗙被缂栧彿', + prop: 'id', + labelWidth:128, + rules: [{ + required: true, + message: "涓婚搴�/鍒嗙被缂栧彿", + trigger: "blur" + }] + }, + { + label: '涓婚搴�/鍒嗙被鍚嶇О', + prop: 'name', + labelWidth:128, + rules: [{ + required: true, + message: "涓婚搴�/鍒嗙被鍚嶇О", + trigger: "blur" + }] + }, + { + label:"鎻忚堪", + prop:"description", + labelWidth:128, + }, + { + label: '瀛樺偍鐨勪笟鍔$被鍨�', + prop: 'btmtypename', + labelWidth:128, + focus:this.btmFoucus, + // readonly: true, + display:this.TreeFlag, + rules: [{ + required: true, + message: "瀛樺偍鐨勪笟鍔$被鍨�", + trigger: "blur" + }] + }, + { + label:"缂栫爜瑙勫垯", + prop:"coderuleoidName", + labelWidth:128, + focus:this.CodeFoucus, + readonly: true, + }, + { + label:"鍏抽敭灞炴�ф煡璇㈣鍒�", + prop:"codekeyattrrepeatoidName", + labelWidth:128, + focus:this.Keyfouce, + readonly: true, + }, + { + label:"鐩镐技鏌ヨ瑙勫垯", + prop:"codeResembleRuleOidName", + labelWidth:128, + focus: this.simFouce, + readonly: true, + }, + + ] + + } + } + }, watch:{ nodeClickList:{ handler(newval,oldval){ @@ -333,6 +339,13 @@ }, deep:true, immediate:true + }, + TreeFlag:{ + handler(newval,oldval){ + console.log('鏍戠姸鎬�',newval,oldval) + }, + deep:true, + immediate:true } }, created() { -- Gitblit v1.9.3