新建小组管理员选择的组织架构范围调整
This commit is contained in:
parent
6b96925ecb
commit
e88ea664c5
@ -375,11 +375,13 @@
|
|||||||
const that = this;
|
const that = this;
|
||||||
that.adminUserInfo.loading = true;
|
that.adminUserInfo.loading = true;
|
||||||
const data = {
|
const data = {
|
||||||
url:'jd',
|
url:'jd',
|
||||||
data:{
|
data:{
|
||||||
cmd: 'com.actionsoft.apps.coe.pal.cooperation_pal_user_tree_subjson',
|
cmd: 'com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson',
|
||||||
pid: ''
|
addressType: that.addressType,
|
||||||
}
|
pid: '',
|
||||||
|
highSecurityFilter: ''
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if (node.level === 0) {
|
if (node.level === 0) {
|
||||||
// 获取根目录
|
// 获取根目录
|
||||||
@ -392,7 +394,7 @@
|
|||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
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 isUser = that.addressType.indexOf('user') > -1;
|
||||||
const isRole = that.addressType.indexOf('role') > -1;
|
const isRole = that.addressType.indexOf('role') > -1;
|
||||||
for (let i = 0; i < ro.data.length; i++) {
|
for (let i = 0; i < ro.data.length; i++) {
|
||||||
@ -400,8 +402,8 @@
|
|||||||
if (curr.type == 'company') {
|
if (curr.type == 'company') {
|
||||||
curr.disabled = true;
|
curr.disabled = true;
|
||||||
} else {
|
} else {
|
||||||
if (isDept && curr.type == 'dept') curr.disabled = false;
|
if (isDept && curr.type == 'department') curr.disabled = false;
|
||||||
if (!isDept && curr.type == 'dept') curr.disabled = true;
|
if (!isDept && curr.type == 'department') curr.disabled = true;
|
||||||
if (isUser && curr.type == 'user') curr.disabled = false;
|
if (isUser && curr.type == 'user') curr.disabled = false;
|
||||||
if (!isUser && curr.type == 'user') curr.disabled = true;
|
if (!isUser && curr.type == 'user') curr.disabled = true;
|
||||||
if (curr.type == 'user') {
|
if (curr.type == 'user') {
|
||||||
|
|||||||
@ -375,11 +375,13 @@
|
|||||||
const that = this;
|
const that = this;
|
||||||
that.adminUserInfo.loading = true;
|
that.adminUserInfo.loading = true;
|
||||||
const data = {
|
const data = {
|
||||||
url:'jd',
|
url:'jd',
|
||||||
data:{
|
data:{
|
||||||
cmd: 'com.actionsoft.apps.coe.pal.cooperation_pal_user_tree_subjson',
|
cmd: 'com.actionsoft.apps.coe.pal_bpm_org_address_component_subjson',
|
||||||
pid: ''
|
addressType: that.addressType,
|
||||||
}
|
pid: '',
|
||||||
|
highSecurityFilter: ''
|
||||||
|
}
|
||||||
};
|
};
|
||||||
if (node.level === 0) {
|
if (node.level === 0) {
|
||||||
// 获取根目录
|
// 获取根目录
|
||||||
@ -392,7 +394,7 @@
|
|||||||
// 查询数据
|
// 查询数据
|
||||||
awsuiAxios.post(data).then(function (ro) {
|
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 isUser = that.addressType.indexOf('user') > -1;
|
||||||
const isRole = that.addressType.indexOf('role') > -1;
|
const isRole = that.addressType.indexOf('role') > -1;
|
||||||
for (let i = 0; i < ro.data.length; i++) {
|
for (let i = 0; i < ro.data.length; i++) {
|
||||||
@ -400,8 +402,8 @@
|
|||||||
if (curr.type == 'company') {
|
if (curr.type == 'company') {
|
||||||
curr.disabled = true;
|
curr.disabled = true;
|
||||||
} else {
|
} else {
|
||||||
if (isDept && curr.type == 'dept') curr.disabled = false;
|
if (isDept && curr.type == 'department') curr.disabled = false;
|
||||||
if (!isDept && curr.type == 'dept') curr.disabled = true;
|
if (!isDept && curr.type == 'department') curr.disabled = true;
|
||||||
if (isUser && curr.type == 'user') curr.disabled = false;
|
if (isUser && curr.type == 'user') curr.disabled = false;
|
||||||
if (!isUser && curr.type == 'user') curr.disabled = true;
|
if (!isUser && curr.type == 'user') curr.disabled = true;
|
||||||
if (curr.type == 'user') {
|
if (curr.type == 'user') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user