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 @@ + +