总部查看子公司台账
This commit is contained in:
parent
61a46c9903
commit
f67bc56a43
@ -66,6 +66,20 @@ export function getRequestHeaders(url, type = 'post', data, isIgnoreTenant) {
|
||||
}
|
||||
// 非 OP 路径接口,header 需要添加 Tenant
|
||||
const Tenant = storage('lacal').getItem('Tenant').val
|
||||
//wyw 总部数据搜索 子公司切换处理
|
||||
if (data && data.OrgId && data.OrgId === '00300000-0000-0000-0000-000000000000' && url && data.FilterGroup.
|
||||
Groups && data.FilterGroup.Groups.length > 0 && (data.Parameter22 == null || data.Parameter22 === '')) {
|
||||
data.FilterGroup.Groups.forEach(e => {
|
||||
if (e.Rules && e.Rules.length > 0 && (data.Parameter22 == null || data.Parameter22 === '')) {
|
||||
e.Rules.forEach(e => {
|
||||
if (e.Field === "ORG_ID") {
|
||||
data.Parameter22 = e.Value
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (url.indexOf('PF/Login/Login') !== -1) {
|
||||
// Login接口使用最新的Tenant、Orgid、userid、Username值
|
||||
const latestTenant = storage('lacal').getItem('Tenant').val
|
||||
|
||||
Loading…
Reference in New Issue
Block a user