From 616c910aff988ffcad936005aee6576771c82c70 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期一, 12 八月 2024 11:57:39 +0800 Subject: [PATCH] 1、列表普遍存在一个问题,如果点击列表行(不是checkbox),应该选中点击行,checkbox选中,其他行的checkbox取消,如果点击行的checkbox,则其他行的checkbox不变,当前点击行的checkbox选中状态切换。 2、部门管理单元格设置为左对齐 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue index 4acc188..706fd41 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/modeling/linkType/index.vue @@ -16,7 +16,8 @@ </el-button> <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadClickHandler">瀵煎叆 </el-button> - <el-button class="smallBtn" style="padding-left: 7px !important;" icon="el-icon-circle-plus-outline" plain size="small" + <el-button class="smallBtn" icon="el-icon-circle-plus-outline" plain size="small" + style="padding-left: 7px !important;" type="primary" @click="createViewClickHandler">鍒涘缓瑙嗗浘 </el-button> <el-button class="smallBtn" icon="el-icon-menu" plain size="small" style="padding-left: 1px" @@ -659,6 +660,8 @@ main: 'el-icon-warning-outline', desc: 'el-icon-chat-line-square' }, + bizLastIndex: null, + attrLastIndex:null } }, created() { @@ -865,7 +868,14 @@ // 娣诲姞灞炴�ф睜 琛岀偣鍑� dialogAttrRowClickHandler(row) { - this.$refs.dialogAttrCrud.toggleRowSelection(row); + + func.rowClickHandler( + row, + this.$refs.dialogAttrCrud, + this.attrLastIndex, + (newIndex) => { this.attrLastIndex = newIndex; }, + () => { this.selectList = []; } + ); }, // 娣诲姞灞炴�ф睜 鍏抽棴瀵硅瘽妗� @@ -997,7 +1007,13 @@ // form to 绫诲瀷琛岀偣鍑� bizTypeRowClick(row) { - this.$refs.bizTypeCrud.toggleRowSelection(row); + func.rowClickHandler( + row, + this.$refs.bizTypeCrud, + this.bizLastIndex, + (newIndex) => { this.bizLastIndex = newIndex; }, + () => { this.selectList = []; } + ); }, // form to 绫诲瀷淇濆瓨 -- Gitblit v1.9.3