Refactor API requests and update component styles
This commit is contained in:
@ -15,8 +15,8 @@ export const create = (params: TcreateReq) => {
|
||||
* @param params
|
||||
* @returns
|
||||
*/
|
||||
export const parent = (params: { type: string | number; parentId: number }) => {
|
||||
return useFetchRequest.get<IResponse<parentRes[]>>('/prod-api/app-api/business/app/dict/parent', params)
|
||||
export const parent = (params: { type: string | number; parentId: number | string }) => {
|
||||
return useFetchRequest.get<IResponse<parentRes[]>>('/prod-api/app-api/business/app/dict/parent', { query:params })
|
||||
}
|
||||
/**
|
||||
* 获取具有上下级的字典信息
|
||||
@ -48,7 +48,7 @@ export const labels = (params: { type: string | number }) => {
|
||||
* @returns
|
||||
*/
|
||||
export const page = (params: pageReq) => {
|
||||
return useFetchRequest.get<IResponse<pageRes>>('/prod-api/app-api/business/app/project-draw/page', params)
|
||||
return useFetchRequest.get<IResponse<pageRes>>('/prod-api/app-api/business/app/project-draw/page', {query:params})
|
||||
}
|
||||
/**
|
||||
* 获得项目表内容信息分页
|
||||
|
||||
@ -52,7 +52,7 @@ export interface pageReq {
|
||||
projectId?: number | string
|
||||
title?: string
|
||||
ownedUserId?: string
|
||||
editions?: string
|
||||
editions?: any
|
||||
labels?: any[]
|
||||
type?: number // 类型: 1 图纸 2 文本 3 模型
|
||||
source?: number | string
|
||||
@ -60,7 +60,7 @@ export interface pageReq {
|
||||
status?: any
|
||||
createAddress?: string
|
||||
createIp?: string
|
||||
projectType?: string
|
||||
projectType?: any
|
||||
}
|
||||
export interface pageRes {
|
||||
list: {
|
||||
|
||||
Reference in New Issue
Block a user