This commit is contained in:
2024-06-20 15:30:04 +08:00
parent 8a18771d78
commit ac1335985f
2 changed files with 15 additions and 4 deletions

View File

@@ -172,7 +172,7 @@ export function getUserListByIds(data:any) {
} }
/** /**
* 查询所有用户 * 查询所有用户不包括管理员
*/ */
export const getUserSimpleList = () => { export const getUserSimpleList = () => {
return request({ return request({
@@ -181,6 +181,18 @@ export const getUserSimpleList = () => {
}) })
} }
/**
* 查询所有用户包括管理员
*/
export const getAllUserSimpleList = () => {
return request({
url: '/user-boot/user/getAllUserSimpleList',
method: 'GET'
})
}

View File

@@ -23,8 +23,7 @@ import { adminBaseRoutePath } from '@/router/static'
import { getRouteMenu, dictDataCache } from '@/api/auth' import { getRouteMenu, dictDataCache } from '@/api/auth'
import { getAreaList, areaSelect } from '@/api/common' import { getAreaList, areaSelect } from '@/api/common'
import { BasicDictData } from '@/stores/interface' import { BasicDictData } from '@/stores/interface'
import { getUserById } from '@/api/user-boot/user' import { getAllUserSimpleList, getUserById } from '@/api/user-boot/user'
import { getUserSimpleList } from '@/api/user-boot/user'
defineOptions({ defineOptions({
components: { Default, Classic, Streamline, Double } components: { Default, Classic, Streamline, Double }
@@ -52,7 +51,7 @@ onBeforeMount(() => {
}) })
const init = async () => { const init = async () => {
await Promise.all([getAreaList(), dictDataCache(), getUserById(), areaSelect(),getUserSimpleList()]).then(res => { await Promise.all([getAreaList(), dictDataCache(), getUserById(), areaSelect(),getAllUserSimpleList()]).then(res => {
dictData.state.area = res[0].data dictData.state.area = res[0].data
dictData.state.basic = res[1].data dictData.state.basic = res[1].data
dictData.state.userList=res[4].data dictData.state.userList=res[4].data