feat: 新增需求

This commit is contained in:
caijun
2026-01-19 17:34:15 +08:00
parent 8fa31df250
commit 9f5b2a92c4
67 changed files with 7518 additions and 481 deletions

View File

@@ -72,13 +72,32 @@ export function getOrganizeSelector(data) {
parentId: '0'
};
return request({
url: '/api/permission/Organize/Selector',
url: '/admin-api/jeelowcode/adapter/dept/list',
options: {
load: false
},
data
})
}
// 获取人员选项
export function getAdapterUserList(data, options) {
return request({
url: `/admin-api/jeelowcode/adapter/user/list`,
method: 'POST',
data,
options: {
load: true
}
})
}
// 获取人员角色
export function getAdapterRoleList() {
return request({
url: '/admin-api/jeelowcode/adapter/role/list',
method: 'GET'
})
}
// 获取组织和岗位下拉框列表
export function getOrgAndPosSelector(data) {
if (!data) data = {
@@ -203,14 +222,21 @@ export function getDataInterfaceRes(id, data) {
// 用户登录
export function login(data) {
return request({
url: '/api/oauth/Login',
url: '/admin-api/system/auth/login',
method: 'post',
data,
header: {
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Type': 'application/json',
}
})
}
// 获取用户角色
export function getPermissionInfo() {
return request({
url: '/admin-api/system/auth/get-permission-info',
method: 'GET'
})
}
// 账号注销
export function accountCancel(token) {
return request({
@@ -349,6 +375,16 @@ export function getConfig(account) {
}
})
}
// 获取配置信息
export function getByName(name) {
return request({
url: `/admin-api/system/tenant/get-id-by-name?name=${name}`,
method: 'get',
options: {
load: false
}
})
}
// 获取行政区划下拉框数据
export function getProvinceSelector(id) {
return request({