From 5367b524786608af1dbe4f78a12034c4dbdb80c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=BB=B4=E7=82=B3?= Date: Mon, 21 Apr 2025 15:30:57 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=96=B0=E5=A2=9E=E3=80=91=E4=B8=93?= =?UTF-8?q?=E4=B8=9A-=E8=AF=BE=E7=A8=8B-=E9=A2=98=E5=9E=8B=E7=AE=A1?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/exam/specialty/index.ts | 43 +++++ src/views/exam/specialty/SpecialtyForm.vue | 151 +++++++++++++++++ src/views/exam/specialty/index.vue | 186 +++++++++++++++++++++ 3 files changed, 380 insertions(+) create mode 100644 src/api/exam/specialty/index.ts create mode 100644 src/views/exam/specialty/SpecialtyForm.vue create mode 100644 src/views/exam/specialty/index.vue diff --git a/src/api/exam/specialty/index.ts b/src/api/exam/specialty/index.ts new file mode 100644 index 0000000..e48311c --- /dev/null +++ b/src/api/exam/specialty/index.ts @@ -0,0 +1,43 @@ +import request from '@/config/axios' + +export interface SpecialtyVO { + id?: number + name: string + parentId: number + status: number + sort: number + leaderUserId: number + phone: string + email: string + createTime: Date +} + +// 查询部门(精简)列表 +export const getSimpleSpecialtyist = async (): Promise => { + return await request.get({ url: '/exam/specialty/simple-list' }) +} + +// 查询部门列表 +export const getSpecialtyPage = async (params: PageParam) => { + return await request.get({ url: '/exam/specialty/list', params }) +} + +// 查询部门详情 +export const getSpecialty = async (id: number) => { + return await request.get({ url: '/exam/specialty/' + id }) +} + +// 新增部门 +export const createSpecialty = async (data: any) => { + return await request.post({ url: '/exam/specialty', data: data }) +} + +// 修改部门 +export const updateSpecialty = async (params: any) => { + return await request.put({ url: '/exam/specialty', data: params }) +} + +// 删除部门 +export const deleteSpecialty = async (id: number) => { + return await request.delete({ url: '/exam/specialty/' + id }) +} diff --git a/src/views/exam/specialty/SpecialtyForm.vue b/src/views/exam/specialty/SpecialtyForm.vue new file mode 100644 index 0000000..e36c3f1 --- /dev/null +++ b/src/views/exam/specialty/SpecialtyForm.vue @@ -0,0 +1,151 @@ + + diff --git a/src/views/exam/specialty/index.vue b/src/views/exam/specialty/index.vue new file mode 100644 index 0000000..389620d --- /dev/null +++ b/src/views/exam/specialty/index.vue @@ -0,0 +1,186 @@ + +