新建小组管理员选择的组织架构范围调整

This commit is contained in:
anhc 2022-07-14 09:58:42 +08:00
parent 6b96925ecb
commit e88ea664c5
2 changed files with 20 additions and 16 deletions

View File

@ -375,11 +375,13 @@
const that = this;
that.adminUserInfo.loading = true;
const data = {
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal.cooperation_pal_user_tree_subjson',
pid: ''
}
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson',
addressType: that.addressType,
pid: '',
highSecurityFilter: ''
}
};
if (node.level === 0) {
//
@ -392,7 +394,7 @@
//
awsuiAxios.post(data).then(function (ro) {
//
const isDept = that.addressType.indexOf('dept') > -1;
const isDept = that.addressType.indexOf('department') > -1;
const isUser = that.addressType.indexOf('user') > -1;
const isRole = that.addressType.indexOf('role') > -1;
for (let i = 0; i < ro.data.length; i++) {
@ -400,8 +402,8 @@
if (curr.type == 'company') {
curr.disabled = true;
} else {
if (isDept && curr.type == 'dept') curr.disabled = false;
if (!isDept && curr.type == 'dept') curr.disabled = true;
if (isDept && curr.type == 'department') curr.disabled = false;
if (!isDept && curr.type == 'department') curr.disabled = true;
if (isUser && curr.type == 'user') curr.disabled = false;
if (!isUser && curr.type == 'user') curr.disabled = true;
if (curr.type == 'user') {

View File

@ -375,11 +375,13 @@
const that = this;
that.adminUserInfo.loading = true;
const data = {
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal.cooperation_pal_user_tree_subjson',
pid: ''
}
url:'jd',
data:{
cmd: 'com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson',
addressType: that.addressType,
pid: '',
highSecurityFilter: ''
}
};
if (node.level === 0) {
//
@ -392,7 +394,7 @@
//
awsuiAxios.post(data).then(function (ro) {
//
const isDept = that.addressType.indexOf('dept') > -1;
const isDept = that.addressType.indexOf('department') > -1;
const isUser = that.addressType.indexOf('user') > -1;
const isRole = that.addressType.indexOf('role') > -1;
for (let i = 0; i < ro.data.length; i++) {
@ -400,8 +402,8 @@
if (curr.type == 'company') {
curr.disabled = true;
} else {
if (isDept && curr.type == 'dept') curr.disabled = false;
if (!isDept && curr.type == 'dept') curr.disabled = true;
if (isDept && curr.type == 'department') curr.disabled = false;
if (!isDept && curr.type == 'department') curr.disabled = true;
if (isUser && curr.type == 'user') curr.disabled = false;
if (!isUser && curr.type == 'user') curr.disabled = true;
if (curr.type == 'user') {