From 0797ea046f8082556bc92de51fdc74b1a24511cf Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Mon, 11 Nov 2024 15:40:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/system/dictionary/dictTree/index.ts | 6 ++-- .../api/system/dictionary/interface/index.ts | 20 +---------- frontend/src/api/user/interface/index.ts | 1 + .../src/views/authority/resource/index.vue | 1 + .../role/components/permissionUnit.vue | 6 ---- .../machine/device/components/devicePopup.vue | 35 +++++++++++++++---- frontend/src/views/machine/device/index.vue | 10 ++++-- .../system/dictionary/dictData/index.vue | 12 +++---- .../dictionary/dictPq/components/pqPopup.vue | 2 +- .../views/system/dictionary/dictPq/index.vue | 2 +- .../dictTree/components/treePopup.vue | 31 ++++++++++------ .../system/dictionary/dictTree/index.vue | 28 +++++++++------ .../system/dictionary/dictType/index.vue | 13 ++++--- 13 files changed, 97 insertions(+), 70 deletions(-) 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" >