From c8a3c5a3ad8995e5b1fc98aa70826da8385ade19 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 9 Nov 2023 23:10:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E5=AD=90=E8=A1=A8=EF=BC=9A=E6=9A=82?= =?UTF-8?q?=E6=97=B6=E5=AD=98=E5=82=A8=EF=BC=8C=E5=87=86=E5=A4=87=E9=87=8D?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 4e413a10e621a34235a6f520f8b97cd77cc00c95) --- src/api/infra/demo02/index.ts | 35 ++++ .../infra/demo02/DemoStudentContactForm.vue | 71 ++++++++ src/views/infra/demo02/DemoStudentForm.vue | 97 +++++++++++ src/views/infra/demo02/index.vue | 159 ++++++++++++++++++ 4 files changed, 362 insertions(+) create mode 100644 src/api/infra/demo02/index.ts create mode 100644 src/views/infra/demo02/DemoStudentContactForm.vue create mode 100644 src/views/infra/demo02/DemoStudentForm.vue create mode 100644 src/views/infra/demo02/index.vue diff --git a/src/api/infra/demo02/index.ts b/src/api/infra/demo02/index.ts new file mode 100644 index 00000000..b575dba4 --- /dev/null +++ b/src/api/infra/demo02/index.ts @@ -0,0 +1,35 @@ +import request from '@/config/axios' + +export interface DemoStudentVO { + id: number +} + +// 查询学生列表 +export const getDemoStudentPage = async (params) => { + return await request.get({ url: `/infra/demo-student/page`, params }) +} + +// 查询学生详情 +export const getDemoStudent = async (id: number) => { + return await request.get({ url: `/infra/demo-student/get?id=` + id }) +} + +// 新增学生 +export const createDemoStudent = async (data: DemoStudentVO) => { + return await request.post({ url: `/infra/demo-student/create`, data }) +} + +// 修改学生 +export const updateDemoStudent = async (data: DemoStudentVO) => { + return await request.put({ url: `/infra/demo-student/update`, data }) +} + +// 删除学生 +export const deleteDemoStudent = async (id: number) => { + return await request.delete({ url: `/infra/demo-student/delete?id=` + id }) +} + +// 导出学生 Excel +export const exportDemoStudent = async (params) => { + return await request.download({ url: `/infra/demo-student/export-excel`, params }) +} diff --git a/src/views/infra/demo02/DemoStudentContactForm.vue b/src/views/infra/demo02/DemoStudentContactForm.vue new file mode 100644 index 00000000..98c97fab --- /dev/null +++ b/src/views/infra/demo02/DemoStudentContactForm.vue @@ -0,0 +1,71 @@ + + diff --git a/src/views/infra/demo02/DemoStudentForm.vue b/src/views/infra/demo02/DemoStudentForm.vue new file mode 100644 index 00000000..62303dc0 --- /dev/null +++ b/src/views/infra/demo02/DemoStudentForm.vue @@ -0,0 +1,97 @@ + + diff --git a/src/views/infra/demo02/index.vue b/src/views/infra/demo02/index.vue new file mode 100644 index 00000000..ae46f8b4 --- /dev/null +++ b/src/views/infra/demo02/index.vue @@ -0,0 +1,159 @@ + + +