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

pull/2310/head
zhangdaiscott 2021-02-24 15:25:31 +08:00
parent d6cf2b502b
commit e49d76bc80
1 changed files with 6 additions and 0 deletions

View File

@ -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 forhttps://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 forhttps://gitee.com/jeecg/jeecg-boot/issues/I2SDU1------------
this.$refs.modalForm.title = "新增";
}
},