From eaf3ae4122a374e469b8fe7705f81ecdc0c377f7 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 31 七月 2023 17:21:37 +0800 Subject: [PATCH] 新增 删除开启编辑bug --- Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue | 24 +++++++++++++++++------- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue index 0e22d34..c8422f9 100644 --- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue +++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue @@ -207,8 +207,8 @@ </el-container> </el-dialog> <!-- 鍏ㄥ睆缂栬緫--> - <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true"> - <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag" :editOpenFlag="editOpenFlag" :crudArrayFlag="this.crudArrayFlag"></attrCrud> + <el-dialog :visible.sync="attrEditVisible" append-to-body fullscreen="true" :before-close="escEdit" > + <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag" :editStyleFlag="editStyleFlag" :editOpenFlag="editOpenFlag" :crudArrayFlag="this.crudArrayFlag"></attrCrud> </el-dialog> <!-- 缁勫悎瑙勫垯--> <formula-editor :systemVariableTableData="systemVariableTableData" @@ -252,7 +252,7 @@ </div> <el-table :data="ProData" style="width: 100%" - :height="!this.editStyleFlag ? 450 : 900" + :height="this.editStyleFlag? 800 : 343" @cell-click="handleCellClicks" @select="selectHandle" @selection-change="selectionChange" @@ -331,7 +331,12 @@ type: Boolean, default: false }, + //鎺у埗鏄惁寮�鍚紪杈� editOpenFlag:{ + type: Boolean, + default: false + }, + editStyleFlag:{ type: Boolean, default: false }, @@ -356,9 +361,16 @@ crudArrayFlag:{ type: Boolean, default: false - } + }, }, watch:{ + crudOid:{ + handler(newval,oldval){ + if(newval){ + this.editOpenFlag=false + } + } + }, crudArray:{ handler(newval,oldval){ if(newval != undefined){ @@ -401,7 +413,7 @@ }, editOpenFlag:{ handler(newval,oldval){ - console.log(newval) + console.log('editOpenFlag',newval) }, deep:true, immediate:true @@ -1629,7 +1641,6 @@ this.rowOid = row.oid; this.CurrentCell=row; if(column.property == 'referConfig' ){ - console.log( this.CurrentCell.referConfig) this.referConfigVisble= true; this.referConfigOption = { referConfig: this.CurrentCell.referConfig || '', @@ -1904,7 +1915,6 @@ this.$message.warning('璇烽�夋嫨涓�涓ā鏉�') } else { this.editStyleFlag=true; - // this.editOpenFlag=true; this.attrEditVisible = true; this.attrFlag = true; } -- Gitblit v1.9.3