提交 e49d76bc 编写于 作者: JEECG低代码平台's avatar JEECG低代码平台

部门管理员添加上级用户时缺失负责部门列issues/I2SDU1

上级 d6cf2b50
...@@ -123,6 +123,7 @@ ...@@ -123,6 +123,7 @@
return { return {
description: '用户信息', description: '用户信息',
currentDeptId: '', currentDeptId: '',
currentDept: {},
// 表头 // 表头
columns: [{ columns: [{
title: '用户账号', title: '用户账号',
...@@ -260,6 +261,7 @@ ...@@ -260,6 +261,7 @@
open(record) { open(record) {
//console.log(record); //console.log(record);
this.currentDeptId = record.id; this.currentDeptId = record.id;
this.currentDept = record;
this.loadData(1); this.loadData(1);
}, },
clearList() { clearList() {
...@@ -291,8 +293,12 @@ ...@@ -291,8 +293,12 @@
this.$message.error("请选择一个部门!") this.$message.error("请选择一个部门!")
} else { } else {
this.$refs.modalForm.departDisabled = true; this.$refs.modalForm.departDisabled = true;
//初始化负责部门
this.$refs.modalForm.userDepartModel.departIdList = [this.currentDeptId]; //传入一个部门id this.$refs.modalForm.userDepartModel.departIdList = [this.currentDeptId]; //传入一个部门id
this.$refs.modalForm.add(); 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 = "新增"; this.$refs.modalForm.title = "新增";
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册