diff --git a/com.actionsoft.apps.coe.pal.cooperation/src/components/CooperationUpdate/component.vue b/com.actionsoft.apps.coe.pal.cooperation/src/components/CooperationUpdate/component.vue index d0fbf8c..7eae67f 100644 --- a/com.actionsoft.apps.coe.pal.cooperation/src/components/CooperationUpdate/component.vue +++ b/com.actionsoft.apps.coe.pal.cooperation/src/components/CooperationUpdate/component.vue @@ -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') { diff --git a/com.actionsoft.apps.coe.pal/src/components/CooperationUpdate/component.vue b/com.actionsoft.apps.coe.pal/src/components/CooperationUpdate/component.vue index 40ca7a8..0705ca5 100644 --- a/com.actionsoft.apps.coe.pal/src/components/CooperationUpdate/component.vue +++ b/com.actionsoft.apps.coe.pal/src/components/CooperationUpdate/component.vue @@ -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') {