From de42c8e66e2303b46741fa66dc72f4b4183f8084 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期五, 28 七月 2023 12:00:56 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/Tree/classifyTrees.vue | 25 +++++++++++++++++-------- 1 files changed, 17 insertions(+), 8 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue index 3c04f39..63be185 100644 --- a/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue +++ b/Source/UBCS-WEB/src/components/Tree/classifyTrees.vue @@ -83,9 +83,12 @@ @row-save="CrudRowSave" @row-del="CrudRowDel" @row-update="CrudRowUpdata" - :before-close="beforeClose" - @select="selectHandle" + @row-click="rowHandle" > + <template slot="radio" slot-scope="{row}"> + <el-radio v-model="selectRow" :label="row.$index" style="padding-left: 10px !important;">{{''}}</el-radio> + </template> + <template slot="menuLeft"> <el-button plain size="small" type="primary" @click="FindeHanler">鏌ヨ</el-button> <el-button plain size="small" type="primary" @click="TemRefresh">鍒锋柊</el-button> @@ -210,9 +213,8 @@ > </template> </avue-crud> - </basic-container> - <templatePro :ProData="this.ProData" :crudOid="this.crudOid" :crudLCStatus="this.crudLCStatus" :crudArray="this.crudArray" :Formlist="this.Formlist" :codeClassifyOid="this.codeClassifyOid"></templatePro> + <templatePro :ProData="this.ProData" :rowIndex="this.selectRow" :crudOid="this.crudOid" :crudLCStatus="this.crudLCStatus" :crudArray="this.crudArray" :Formlist="this.Formlist" :codeClassifyOid="this.codeClassifyOid"></templatePro> </span> <!-- 缂栫爜瑙勫垯--> <el-dialog :visible.sync="MasterdialogVisible" title="涓恒�愮紪鐮佽鍒欍�戦�夊彇鍊�" append-to-body> @@ -344,6 +346,7 @@ inject: ["crudTreeData"], data() { return { + selectRow:'', //鏍戣妭鐐规樉绀洪殣钘� TreeFlagCode:false, //缂栫爜瑙勫垯 @@ -666,11 +669,16 @@ index: true, border: true, height:180, - selection:true, addBtn:this.Formlist.length<=0 && this.nodeClickList != "", editBtn:false, delBtn:false, column: [ + { + label: '', + prop: 'radio', + width: 60, + hide: false, + }, { label: "妯℃澘缂栧彿", prop: "id", @@ -932,11 +940,12 @@ MasterHandler(val){ this.TreeList=val; }, - //琛屽崟閫変簨浠� - selectHandle(selection,row){ + rowHandle(row, column){ + this.selectRow=row.$index; this.crudOid=row.oid; this.crudLCStatus=row.lcStatus; - this.crudArray=selection; + this.crudArray.push(row); + console.log(row.$index) gridCodeClassifyTemplateAttr({'conditionMap[classifyTemplateOid]': row.oid}).then(res => { this.ProData = res.data.data; //鍒嗙被娉ㄥ叆鏁版嵁鏍煎紡 -- Gitblit v1.9.3