微调
This commit is contained in:
@@ -2,7 +2,7 @@ import http from '@/api'
|
||||
import { type Dict } from '@/api/system/dictionary/interface'
|
||||
|
||||
//获取字典类型
|
||||
export const getDictTreeList = (params: Dict.ReqDictTreeParams) => {
|
||||
export const getDictTreeList = (params: Dict.ResDictTree) => {
|
||||
return http.get(`/dictTree/queryTree`, params)
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export const updateDictTree = (params: Dict.ResDictTree) => {
|
||||
}
|
||||
|
||||
//删除字典类型
|
||||
export const deleteDictTree = (params: string[]) => {
|
||||
return http.post(`/dictTree/delete`, params)
|
||||
export const deleteDictTree = (params: Dict.ResDictTree) => {
|
||||
return http.post(`/dictTree/delete?id=${params.id}`)
|
||||
}
|
||||
|
||||
|
||||
@@ -141,18 +141,6 @@ export namespace Dict {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 树形字典数据表格分页查询参数
|
||||
*/
|
||||
export interface ReqDictTreeParams extends ReqPage{
|
||||
id: string;//指标字典表Id
|
||||
pid: string;//
|
||||
pids: string;//
|
||||
name:string;//
|
||||
code:string;//
|
||||
sort:number;//
|
||||
}
|
||||
|
||||
/**
|
||||
* 树形字典数据新增、修改、根据id查询返回的对象
|
||||
@@ -165,7 +153,7 @@ export namespace Dict {
|
||||
code:string;//
|
||||
sort:number;//
|
||||
remark?:string;//
|
||||
status?:number;//'状态(字典 0正常 1停用 2删除)
|
||||
state?:number;//'状态(字典 0正常 1停用 2删除)
|
||||
createBy?:string | null;//
|
||||
createTime?:string | null;//
|
||||
updateBy?:string | null;//
|
||||
@@ -176,11 +164,5 @@ export namespace Dict {
|
||||
children?: ResDictTree[];
|
||||
}
|
||||
|
||||
/**
|
||||
* 电能质量指标字典数据表格查询分页返回的对象;
|
||||
*/
|
||||
export interface ResDictTreePage extends ResPage<ResDictTree> {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user