pull/420/head
shizhong 2024-03-06 22:44:40 +08:00
parent 7319d24cbc
commit 73f6f15c54
6 changed files with 17 additions and 5 deletions

View File

@ -48,7 +48,7 @@ export const getReturnList = async (params) => {
}
// 回退
export const okRollback = async (data) => {
export const returnTask = async (data) => {
return await request.put({ url: '/bpm/task/rollback', data })
}

View File

@ -22,6 +22,10 @@ export const listSimpleDeptApi = async () => {
return await request.get({ url: '/system/dept/simple-list' })
}
export const getSimpleDeptList = async () => {
return await request.get({ url: '/system/dept/simple-list' })
}
// 查询部门列表
export const getDeptPageApi = async (params: DeptPageReqVO) => {
return await request.get({ url: '/system/dept/list', params })

View File

@ -28,6 +28,10 @@ export const listSimpleMenusApi = () => {
return request.get({ url: '/system/menu/list-all-simple' })
}
export const getSimpleMenusList = () => {
return request.get({ url: '/system/menu/list-all-simple' })
}
// 查询菜单列表
export const getMenuListApi = (params: MenuPageReqVO) => {
return request.get({ url: '/system/menu/list', params })

View File

@ -42,6 +42,6 @@ export const deleteNoticeApi = (id: number) => {
}
// 推送公告
export const pushNotice = (id: number) => {
export const pushNoticeApi = (id: number) => {
return request.post({ url: '/system/notice/push?id=' + id })
}

View File

@ -92,5 +92,9 @@ export const updateUserStatusApi = (id: number, status: number) => {
// 获取用户精简信息列表
export const getListSimpleUsersApi = () => {
return request.get({ url: '/system/user/list-all-simple' })
return request.get({ url: '/system/user/simple-list' })
}
export const getSimpleUserList = () => {
return request.get({ url: '/system/user/simple-list' })
}

View File

@ -218,7 +218,7 @@ const getCode = async () => {
//ID
const getTenantId = async () => {
if (loginData.tenantEnable) {
const res = await LoginApi.getTenantIdByName(loginData.loginForm.tenantName)
const res = await LoginApi.getTenantIdByNameApi(loginData.loginForm.tenantName)
authUtil.setTenantId(res)
}
}
@ -274,7 +274,7 @@ const handleLogin = async (params) => {
const code = route?.query?.code as string
const state = route?.query?.state as string
const res = await LoginApi.login({
const res = await LoginApi.loginApi({
//
username: loginData.loginForm.username,
password: loginData.loginForm.password,