From 7e82eeb5960df8c225234402a6b0187aa53adde2 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期五, 04 八月 2023 18:44:06 +0800 Subject: [PATCH] 代码提交 --- Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue index 02f63df..7339e02 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeClassifyTreeform.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="this.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> <!-- 缂栫爜瑙勫垯--> @@ -92,7 +92,11 @@ <el-input style="width: 260px;margin-left: 15px" placeholder="杈撳叆鍊煎悗杩涜妯$硦鏌ヨ" v-model="SelectFInd"></el-input> <el-button size="small" type="primary" plain @click="BtmSelectFindeHandler" style="margin-left: 20px">鏌ヨ</el-button> </template> - <avue-crud :data="BtmData" :option="masterOption" @select="btmSelect"></avue-crud> + <avue-crud :data="BtmData" :option="masterOption" @row-click="btmSelect"> + <template slot="radio" slot-scope="{row}"> + <el-radio v-model="masterRow" :label="row.$index" style="padding-left: 10px !important;">{{''}}</el-radio> + </template> + </avue-crud> <div style="height: 30px"> <div style="display: inline-block;float: left;border: 1px solid #eee;padding: 5px;margin-top: 5px;font-size: 14px " >宸茶缃殑鍊间负:[{{this.loneTreeNewForm.btmTypeName}}]</div> <div style="padding-top: 10px;display: flex; justify-content: flex-end;float: right;overflow: hidden" > @@ -113,6 +117,7 @@ props: ['loneTreeNewForm','flag','Editclose','TreeFlag','nodeClickList'], data() { return { + masterRow:0, SelectFInd:"", masterName:"", masterOid:"", @@ -166,10 +171,15 @@ addBtn:false, index:true, border:true, - selection:true, menu:false, height:380, column:[ + { + label: '', + prop: 'radio', + width: 60, + display: false + }, { label:'鑻辨枃鍚嶇О', prop:'id' @@ -541,7 +551,7 @@ }else { this.BtmdialogVisible=false; this.btmSelectList=[] - this.$set(this.loneTreeNewForm,'btmTypeName',this.btmName ||this.btmOid) + this.$set(this.loneTreeNewForm,'btmTypeName',this.btmName ||this.btmId) this.$set(this.loneTreeNewForm,'btmTypeId',this.btmId) this.$emit('MasterHandler',this.loneTreeNewForm) } @@ -567,9 +577,9 @@ //涓氬姟绫诲瀷澶氶�� btmSelect(row){ this.btmSelectList=row; - this.btmName=row[0].name; - this.btmOid=row[0].oid; - this.btmId=row[0].id; + this.btmName=row.name; + this.btmOid=row.oid; + this.btmId=row.id; }, //涓氬姟绫诲瀷鎺ュ彛 btmdefaultRend(masterParameter){ -- Gitblit v1.9.3