From e84d49610233be4e0d86c46e4279854a35c5a94d Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 09:08:09 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E6=96=B0=E5=A2=9E=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E6=A0=91=E4=BB=A5=E5=8F=8A=E7=B1=BB=E5=88=AB?= =?UTF-8?q?=E7=BC=96=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept/types.ts | 6 +- src/api/system/post/types.ts | 7 + src/views/system/dept/index.vue | 14 +- src/views/system/post/index.vue | 285 +++++++++++++++++++++----------- 4 files changed, 205 insertions(+), 107 deletions(-) diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index 6921c82..494745c 100644 --- a/src/api/system/dept/types.ts +++ b/src/api/system/dept/types.ts @@ -3,7 +3,7 @@ */ export interface DeptQuery extends PageQuery { deptName?: string; - categoryCode?: string; + deptCategory?: string; status?: number; } @@ -17,7 +17,7 @@ export interface DeptVO extends BaseEntity { children: DeptVO[]; deptId: number | string; deptName: string; - categoryCode: string; + deptCategory: string; orderNum: number; leader: string; phone: string; @@ -37,7 +37,7 @@ export interface DeptForm { children?: DeptForm[]; deptId?: number | string; deptName?: string; - categoryCode?: string; + deptCategory?: string; orderNum?: number; leader?: string; phone?: string; diff --git a/src/api/system/post/types.ts b/src/api/system/post/types.ts index 84e6786..1f43cef 100644 --- a/src/api/system/post/types.ts +++ b/src/api/system/post/types.ts @@ -1,7 +1,10 @@ export interface PostVO extends BaseEntity { postId: number | string; + deptId: number | string; postCode: string; postName: string; + postCategory: string; + deptName: string; postSort: number; status: string; remark: string; @@ -9,15 +12,19 @@ export interface PostVO extends BaseEntity { export interface PostForm { postId: number | string | undefined; + deptId: number | string | undefined; postCode: string; postName: string; + postCategory: string; postSort: number; status: string; remark: string; } export interface PostQuery extends PageQuery { + deptId: number | string; postCode: string; postName: string; + postCategory: string; status: string; } diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index f0e8fd1..3464b4b 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -7,8 +7,8 @@ - - + + @@ -46,7 +46,7 @@ :default-expand-all="isExpandAll" > - + @@ -95,8 +95,8 @@ - - + + @@ -175,7 +175,7 @@ const initFormData: DeptForm = { deptId: undefined, parentId: undefined, deptName: undefined, - categoryCode: undefined, + deptCategory: undefined, orderNum: 0, leader: undefined, phone: undefined, @@ -188,7 +188,7 @@ const initData: PageData = { pageNum: 1, pageSize: 10, deptName: undefined, - categoryCode: undefined, + deptCategory: undefined, status: undefined }, rules: { diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 172c386..911d419 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -1,114 +1,157 @@ - - + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + 新增 + + + 修改 + + + + 删除 + + + + 导出 + + + + + + + + + + + + + + + + + + + + {{ parseTime(scope.row.createTime) }} + + + + + + + + + + + + + + + + + + + + - + - - - - + + + + + + + - - 搜索 - 重置 + + + + + + + + + {{ dict.label }} + + + + - - - - - - - - 新增 - - - 修改 - - - - 删除 - - - - 导出 - - - - - - - - - - - - - - + + - - - - {{ parseTime(scope.row.createTime) }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ dict.label }} - - - - - - - - - - + + +