This commit is contained in:
吴红兵
2026-03-07 01:34:48 +08:00
parent adc511cfdc
commit 94c3473958
1211 changed files with 599405 additions and 322105 deletions

View File

@@ -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 },
});
}