fix
This commit is contained in:
@@ -17,21 +17,21 @@ export function listDicUrl(url: string, query?) {
|
||||
url: url,
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
export function listDicUrlArr(url: string, ids?, query?) {
|
||||
const lastPart = url.split('/').pop().split('?')[0];
|
||||
let name = lastPart.replace(/-(\w)/g, (match, p1) => p1.toUpperCase());
|
||||
|
||||
const urlArr = ids.map(id => `${name}=${encodeURIComponent(id)}`).join('&');
|
||||
url = url + (url.includes('?') ? '&' : '?') + urlArr
|
||||
const urlArr = ids.map((id) => `${name}=${encodeURIComponent(id)}`).join('&');
|
||||
url = url + (url.includes('?') ? '&' : '?') + urlArr;
|
||||
|
||||
return request({
|
||||
url: url,
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 参与者选择器数据
|
||||
@@ -39,7 +39,7 @@ export function fetchUserRolePicker() {
|
||||
return request({
|
||||
url: '/jsonflow/user-role-auditor/user-role/picker',
|
||||
method: 'get',
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// 查询参与者下人员
|
||||
@@ -47,7 +47,6 @@ export function listUsersByRoleId(roleId, jobType) {
|
||||
return request({
|
||||
url: '/jsonflow/user-role-auditor/list-users/' + roleId,
|
||||
method: 'get',
|
||||
params: {jobType: jobType}
|
||||
})
|
||||
params: { jobType: jobType },
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user