diff --git a/frontend/src/api/system/dictionary/dictTree/index.ts b/frontend/src/api/system/dictionary/dictTree/index.ts index 47b58e8..efc5d00 100644 --- a/frontend/src/api/system/dictionary/dictTree/index.ts +++ b/frontend/src/api/system/dictionary/dictTree/index.ts @@ -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}`) } diff --git a/frontend/src/api/system/dictionary/interface/index.ts b/frontend/src/api/system/dictionary/interface/index.ts index 5202ddb..f9ba87e 100644 --- a/frontend/src/api/system/dictionary/interface/index.ts +++ b/frontend/src/api/system/dictionary/interface/index.ts @@ -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 { - - } } diff --git a/frontend/src/api/user/interface/index.ts b/frontend/src/api/user/interface/index.ts index c261864..248f334 100644 --- a/frontend/src/api/user/interface/index.ts +++ b/frontend/src/api/user/interface/index.ts @@ -39,6 +39,7 @@ export namespace User { loginTime?: string;//最后一次登录时间 loginErrorTimes: number;//登录错误次数 lockTime?: string; //用户密码错误锁定时间 + state:number;//0-删除;1-正常;2-锁定;3-待审核;4-休眠;5-密码过期 createBy?: string;//创建用户 createTime?: string;//创建时间 updateBy?: string;//更新用户 diff --git a/frontend/src/views/authority/resource/index.vue b/frontend/src/views/authority/resource/index.vue index 6626e50..35bf05e 100644 --- a/frontend/src/views/authority/resource/index.vue +++ b/frontend/src/views/authority/resource/index.vue @@ -6,6 +6,7 @@ :data='resourceData' @selection-change="handleSelectionChange" type="selection" + :pagination="false" >