From 388daad59d20da84118067593fc88a89e3f8c9d8 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 07 七月 2023 17:59:50 +0800 Subject: [PATCH] 主题库7-7完善发现bug --- Source/UBCS-WEB/src/components/Tree/attrCrud.vue | 31 +++++++++++++++++++++---------- 1 files changed, 21 insertions(+), 10 deletions(-) diff --git a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue index 1eb7dde..34279e1 100644 --- a/Source/UBCS-WEB/src/components/Tree/attrCrud.vue +++ b/Source/UBCS-WEB/src/components/Tree/attrCrud.vue @@ -211,7 +211,7 @@ ></formula-editor> <!-- 鏂板 --> <el-dialog :visible.sync="addVisible" append-to-body title="浠庝笟鍔$被鍨嬩腑閫夋嫨灞炴��"> - <avue-crud :data="businessData" :option="businessOption" @selection-change="businessSelect"> + <avue-crud ref="AddOriginPlace" :data="businessData" :option="businessOption" @selection-change="businessSelect"> <template slot="menuLeft"> <div style="display: flex;"> <el-select v-model="SelectValue" placeholder="璇烽�夋嫨" style="width: 150px !important;"> @@ -350,6 +350,7 @@ }, data() { return { + screenWidth: document.documentElement.clientWidth, // 灞忓箷瀹藉害 //褰撳墠鍗曞厓鏍� CurrentCell:'', // 鏂板 @@ -1341,6 +1342,17 @@ } }, mounted() { + window.addEventListener( + 'resize', + () => { + if(Math.abs(this.screenWidth - document.body.clientWidth) > 20) { + this.$nextTick(() => { + this.$refs.AddOriginPlace.refreshTable(); + }) + } + this.screenWidth = document.body.clientWidth; + } + ) }, created() { @@ -1382,19 +1394,18 @@ }, //灞炴�у垎缁勬寜閽� attrVisibleHandle() { - if (this.attrSelectList.length > 1) { - this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�') - } else if (this.attrSelectList < 1) { + if (this.attrSelectList < 1) { this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉垮睘鎬�') - } else if (this.attrSelectList.length === 1) { + } else { this.attrVisible = true; + console.log(this.attrSelectList) } }, //灞炴�у垎缁勬彁浜� attrHandle() { - this.$set(this.attrRow, 'attributeGroup', JSON.stringify(this.attrModel)) - this.attrModel = "" - this.attrVisible = false + this.$set(this.attrRow, 'attributeGroup', this.attrModel) + this.attrModel = ""; + this.attrVisible = false; }, //灞炴�у垎缁勬竻绌� attrRemove() { @@ -1482,7 +1493,6 @@ 'conditionMap[classifyTemplateOid]': this.Formlist[0].oid, 'conditionMap[oid_notequal]': this.attrOid }).then(res => { - console.log(res) this.CascadeData = res.data.data; }) } @@ -1514,8 +1524,9 @@ console.log(row) }, //琛ㄦ牸閫夋嫨 - selectionChange(list) { + selectionChange(list,) { this.attrSelectList = list; + console.log(list) }, //淇濆瓨 addsHandler() { -- Gitblit v1.9.3