From 20a96e4c483a38c27d7fe5951b01dc923ea5997f Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Mon, 22 Apr 2024 15:50:52 +0800 Subject: [PATCH 1/6] =?UTF-8?q?add=20=E9=83=A8=E9=97=A8=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=B1=BB=E5=88=AB=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dept/types.ts | 3 +++ src/views/system/dept/index.vue | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index 867dbded..6921c82b 100644 --- a/src/api/system/dept/types.ts +++ b/src/api/system/dept/types.ts @@ -3,6 +3,7 @@ */ export interface DeptQuery extends PageQuery { deptName?: string; + categoryCode?: string; status?: number; } @@ -16,6 +17,7 @@ export interface DeptVO extends BaseEntity { children: DeptVO[]; deptId: number | string; deptName: string; + categoryCode: string; orderNum: number; leader: string; phone: string; @@ -35,6 +37,7 @@ export interface DeptForm { children?: DeptForm[]; deptId?: number | string; deptName?: string; + categoryCode?: string; orderNum?: number; leader?: string; phone?: string; diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 30942df4..f0e8fd15 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -7,6 +7,9 @@ + + + @@ -43,6 +46,7 @@ :default-expand-all="isExpandAll" > + @@ -90,6 +94,11 @@ + + + + + @@ -166,6 +175,7 @@ const initFormData: DeptForm = { deptId: undefined, parentId: undefined, deptName: undefined, + categoryCode: undefined, orderNum: 0, leader: undefined, phone: undefined, @@ -178,6 +188,7 @@ const initData: PageData = { pageNum: 1, pageSize: 10, deptName: undefined, + categoryCode: undefined, status: undefined }, rules: { -- Gitee 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 2/6] =?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 | 283 +++++++++++++++++++++----------- 4 files changed, 204 insertions(+), 106 deletions(-) diff --git a/src/api/system/dept/types.ts b/src/api/system/dept/types.ts index 6921c82b..494745c4 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 84e6786c..1f43cef0 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 f0e8fd15..3464b4bf 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 172c3861..911d4190 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 }} - - - - - - - - - - + + + -- Gitee From bd801757e68a595d56654a4d442c3a37494576dc Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 09:31:35 +0800 Subject: [PATCH 3/6] =?UTF-8?q?update=20=E4=BC=98=E5=8C=96=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E7=BC=96=E7=A0=81=E4=B8=8E=E5=90=8E=E5=8F=B0=E4=B8=80?= =?UTF-8?q?=E8=87=B4=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/dept/index.vue | 4 ++-- src/views/system/post/index.vue | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 3464b4bf..71aeff1c 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -8,7 +8,7 @@ - + @@ -96,7 +96,7 @@ - + diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 911d4190..a5aff0c5 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -28,7 +28,7 @@ - + @@ -121,7 +121,7 @@ - + -- Gitee From 6af0f6b0b83a65fd9bba157589a744f14ebcfb2b Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 12:38:38 +0800 Subject: [PATCH 4/6] =?UTF-8?q?update=20=E5=B2=97=E4=BD=8D=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=A2=9E=E5=8A=A0=E5=8D=95=E9=83=A8=E9=97=A8=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/post/types.ts | 1 + src/views/system/post/index.vue | 19 ++++++++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/api/system/post/types.ts b/src/api/system/post/types.ts index 1f43cef0..45a0540c 100644 --- a/src/api/system/post/types.ts +++ b/src/api/system/post/types.ts @@ -23,6 +23,7 @@ export interface PostForm { export interface PostQuery extends PageQuery { deptId: number | string; + belongDeptId: number | string; postCode: string; postName: string; postCategory: string; diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index a5aff0c5..690d9292 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -33,6 +33,15 @@ + + + @@ -72,8 +81,8 @@ - - + + @@ -106,13 +115,13 @@ - + @@ -229,7 +238,7 @@ const getTreeSelect = async () => { /** 节点单击事件 */ const handleNodeClick = (data: DeptVO) => { - queryParams.value.deptId = data.id; + queryParams.value.belongDeptId = data.id; handleQuery(); }; -- Gitee From c29be5009b469d967c5566072f4839f4161a3df1 Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 13:41:07 +0800 Subject: [PATCH 5/6] =?UTF-8?q?update=20=E5=B2=97=E4=BD=8D=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=A0=91=E8=A1=A8=E5=92=8C=E5=8D=95=E8=A1=A8=E7=9B=B8?= =?UTF-8?q?=E4=BA=92undefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/post/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index 690d9292..87ccf923 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -239,6 +239,7 @@ const getTreeSelect = async () => { /** 节点单击事件 */ const handleNodeClick = (data: DeptVO) => { queryParams.value.belongDeptId = data.id; + queryParams.value.deptId = undefined; handleQuery(); }; @@ -266,6 +267,9 @@ const reset = () => { /** 搜索按钮操作 */ const handleQuery = () => { queryParams.value.pageNum = 1; + if (queryParams.value.deptId) { + queryParams.value.belongDeptId = undefined; + } getList(); }; -- Gitee From 21fc5b6ada4003628b05b42e0de2330ddc8fd724 Mon Sep 17 00:00:00 2001 From: AprilWind <2100166581@qq.com> Date: Tue, 23 Apr 2024 17:30:26 +0800 Subject: [PATCH 6/6] =?UTF-8?q?add=20=E6=96=B0=E5=A2=9E=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B2=97=E4=BD=8D=E9=80=89=E6=8B=A9=E6=A1=86=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/post/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 3e523ab9..1b565a8d 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -19,6 +19,15 @@ export function getPost(postId: string | number): AxiosPromise { }); } +// 获取岗位选择框列表 +export function optionselect(query: PostQuery): AxiosPromise { + return request({ + url: '/system/post/optionselect', + method: 'get', + params: query + }); +} + // 新增岗位 export function addPost(data: PostForm) { return request({ -- Gitee