From e49d76bc8021ed2c3a8660f3eadc759e75afa88c Mon Sep 17 00:00:00 2001 From: zhangdaiscott Date: Wed, 24 Feb 2021 15:25:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86=E5=91=98?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E7=BA=A7=E7=94=A8=E6=88=B7=E6=97=B6?= =?UTF-8?q?=E7=BC=BA=E5=A4=B1=E8=B4=9F=E8=B4=A3=E9=83=A8=E9=97=A8=E5=88=97?= =?UTF-8?q?issues/I2SDU1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/system/modules/DeptUserInfo.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue b/ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue index 6868b50..3ceb1e0 100644 --- a/ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue +++ b/ant-design-vue-jeecg/src/views/system/modules/DeptUserInfo.vue @@ -123,6 +123,7 @@ return { description: '用户信息', currentDeptId: '', + currentDept: {}, // 表头 columns: [{ title: '用户账号', @@ -260,6 +261,7 @@ open(record) { //console.log(record); this.currentDeptId = record.id; + this.currentDept = record; this.loadData(1); }, clearList() { @@ -291,8 +293,12 @@ this.$message.error("请选择一个部门!") } else { this.$refs.modalForm.departDisabled = true; + //初始化负责部门 this.$refs.modalForm.userDepartModel.departIdList = [this.currentDeptId]; //传入一个部门id this.$refs.modalForm.add(); + //update-begin---author:liusq Date:20210223 for:https://gitee.com/jeecg/jeecg-boot/issues/I2SDU1------------ + this.$refs.modalForm.resultDepartOptions=[{key:this.currentDept.key,title:this.currentDept.title}] + //update-end---author:liusq Date:20210223 for:https://gitee.com/jeecg/jeecg-boot/issues/I2SDU1------------ this.$refs.modalForm.title = "新增"; } }, -- GitLab