From 1e3db94687d1409640a2bbbd6eb9d32436fad032 Mon Sep 17 00:00:00 2001 From: zhangzhiqiang Date: Fri, 9 Dec 2022 10:21:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=8F=9C=E5=8D=95=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lms/nladmin-ui/src/views/system/dept/index.vue | 7 ++++--- lms/nladmin-ui/src/views/system/dict/index.vue | 5 ++++- lms/nladmin-ui/src/views/system/menu/index.vue | 12 ++++++------ 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lms/nladmin-ui/src/views/system/dept/index.vue b/lms/nladmin-ui/src/views/system/dept/index.vue index 63ebcd416..d7e745462 100644 --- a/lms/nladmin-ui/src/views/system/dept/index.vue +++ b/lms/nladmin-ui/src/views/system/dept/index.vue @@ -207,7 +207,7 @@ export default { if (form.pid != null) { this.getSupDepts(form.pid) } else { - this.getDepts() + this.getDepts({ pidIsNull: true }) } }, getSupDepts(id) { @@ -227,8 +227,9 @@ export default { } }) }, - getDepts() { - crudDept.getDeptvo({ is_used: '1' }).then(res => { + getDepts(data) { + data['is_used'] = '1' + crudDept.getDeptvo(data).then(res => { this.depts = res.content.map(function(obj) { if (obj.hasChildren) { obj.children = null diff --git a/lms/nladmin-ui/src/views/system/dict/index.vue b/lms/nladmin-ui/src/views/system/dict/index.vue index fb9eb0d0a..53d1dc41f 100644 --- a/lms/nladmin-ui/src/views/system/dict/index.vue +++ b/lms/nladmin-ui/src/views/system/dict/index.vue @@ -36,7 +36,8 @@ highlight-current-row style="width: 100%;" @selection-change="crud.selectionChangeHandler" - @current-change="handleCurrentChange"> + @current-change="handleCurrentChange" + > @@ -127,6 +128,8 @@ export default { // 选中字典后,设置字典详情数据 handleCurrentChange(val) { if (val) { + this.$refs.table.clearSelection() + this.$refs.table.toggleRowSelection(val, true) this.$refs.dictDetail.query.code = val.code this.$refs.dictDetail.form.dictCode = val.code this.$refs.dictDetail.crud.toQuery() diff --git a/lms/nladmin-ui/src/views/system/menu/index.vue b/lms/nladmin-ui/src/views/system/menu/index.vue index 230b4f86a..d2f83ef69 100644 --- a/lms/nladmin-ui/src/views/system/menu/index.vue +++ b/lms/nladmin-ui/src/views/system/menu/index.vue @@ -69,8 +69,8 @@ - - + + @@ -138,7 +138,7 @@ > - + @@ -155,19 +155,19 @@ - + - + - +