From 6c405ba42039fd849a387e53df0799419d7a6000 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Thu, 16 Nov 2023 23:48:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=EF=BC=9A?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=BB=E5=AD=90=E8=A1=A8=20inner=20?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E7=9A=84=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/infra/demo/demo03/inner/index.ts | 53 ++++ src/api/infra/demo11/index.ts | 57 ---- src/api/infra/demo12/index.ts | 95 ------ .../demo03/inner/Demo03StudentForm.vue} | 116 ++++---- .../inner/components/Demo03CourseForm.vue | 100 +++++++ .../inner/components/Demo03CourseList.vue | 51 ++++ .../inner/components/Demo03GradeForm.vue | 72 +++++ .../inner/components/Demo03GradeList.vue | 55 ++++ .../{demo11 => demo/demo03/inner}/index.vue | 90 +++--- .../infra/demo04/DemoStudentAddressForm.vue | 58 ---- .../infra/demo04/DemoStudentAddressList.vue | 39 --- .../infra/demo04/DemoStudentContactForm.vue | 96 ------ .../infra/demo04/DemoStudentContactList.vue | 70 ----- src/views/infra/demo04/DemoStudentForm.vue | 132 --------- src/views/infra/demo04/index.vue | 184 ------------ src/views/infra/demo11/Demo11StudentForm.vue | 183 ------------ .../components/Demo11StudentContactForm.vue | 174 ----------- .../components/Demo11StudentTeacherForm.vue | 122 -------- src/views/infra/demo12/Demo12StudentForm.vue | 183 ------------ .../components/Demo12StudentContactList.vue | 148 ---------- .../components/Demo12StudentTeacherForm.vue | 155 ---------- .../components/Demo12StudentTeacherList.vue | 148 ---------- src/views/infra/demo12/index.vue | 278 ------------------ src/views/infra/testDemo/index.vue | 4 - 24 files changed, 423 insertions(+), 2240 deletions(-) create mode 100644 src/api/infra/demo/demo03/inner/index.ts delete mode 100644 src/api/infra/demo11/index.ts delete mode 100644 src/api/infra/demo12/index.ts rename src/views/infra/{demo12/components/Demo12StudentContactForm.vue => demo/demo03/inner/Demo03StudentForm.vue} (61%) create mode 100644 src/views/infra/demo/demo03/inner/components/Demo03CourseForm.vue create mode 100644 src/views/infra/demo/demo03/inner/components/Demo03CourseList.vue create mode 100644 src/views/infra/demo/demo03/inner/components/Demo03GradeForm.vue create mode 100644 src/views/infra/demo/demo03/inner/components/Demo03GradeList.vue rename src/views/infra/{demo11 => demo/demo03/inner}/index.vue (74%) delete mode 100644 src/views/infra/demo04/DemoStudentAddressForm.vue delete mode 100644 src/views/infra/demo04/DemoStudentAddressList.vue delete mode 100644 src/views/infra/demo04/DemoStudentContactForm.vue delete mode 100644 src/views/infra/demo04/DemoStudentContactList.vue delete mode 100644 src/views/infra/demo04/DemoStudentForm.vue delete mode 100644 src/views/infra/demo04/index.vue delete mode 100644 src/views/infra/demo11/Demo11StudentForm.vue delete mode 100644 src/views/infra/demo11/components/Demo11StudentContactForm.vue delete mode 100644 src/views/infra/demo11/components/Demo11StudentTeacherForm.vue delete mode 100644 src/views/infra/demo12/Demo12StudentForm.vue delete mode 100644 src/views/infra/demo12/components/Demo12StudentContactList.vue delete mode 100644 src/views/infra/demo12/components/Demo12StudentTeacherForm.vue delete mode 100644 src/views/infra/demo12/components/Demo12StudentTeacherList.vue delete mode 100644 src/views/infra/demo12/index.vue delete mode 100644 src/views/infra/testDemo/index.vue diff --git a/src/api/infra/demo/demo03/inner/index.ts b/src/api/infra/demo/demo03/inner/index.ts new file mode 100644 index 00000000..f15ee1dc --- /dev/null +++ b/src/api/infra/demo/demo03/inner/index.ts @@ -0,0 +1,53 @@ +import request from '@/config/axios' + +export interface Demo03StudentVO { + id: number + name: string + sex: number + birthday: Date + description: string +} + +// 查询学生分页 +export const getDemo03StudentPage = async (params) => { + return await request.get({ url: `/infra/demo03-student/page`, params }) +} + +// 查询学生详情 +export const getDemo03Student = async (id: number) => { + return await request.get({ url: `/infra/demo03-student/get?id=` + id }) +} + +// 新增学生 +export const createDemo03Student = async (data: Demo03StudentVO) => { + return await request.post({ url: `/infra/demo03-student/create`, data }) +} + +// 修改学生 +export const updateDemo03Student = async (data: Demo03StudentVO) => { + return await request.put({ url: `/infra/demo03-student/update`, data }) +} + +// 删除学生 +export const deleteDemo03Student = async (id: number) => { + return await request.delete({ url: `/infra/demo03-student/delete?id=` + id }) +} + +// 导出学生 Excel +export const exportDemo03Student = async (params) => { + return await request.download({ url: `/infra/demo03-student/export-excel`, params }) +} + +// ==================== 子表(学生课程) ==================== + +// 获得学生课程列表 +export const getDemo03CourseListByStudentId = async (studentId) => { + return await request.get({ url: `/infra/demo03-student/demo03-course/list-by-student-id?studentId=` + studentId }) +} + +// ==================== 子表(学生班级) ==================== + +// 获得学生班级 +export const getDemo03GradeByStudentId = async (studentId) => { + return await request.get({ url: `/infra/demo03-student/demo03-grade/get-by-student-id?studentId=` + studentId }) +} \ No newline at end of file diff --git a/src/api/infra/demo11/index.ts b/src/api/infra/demo11/index.ts deleted file mode 100644 index 4c4c7b4e..00000000 --- a/src/api/infra/demo11/index.ts +++ /dev/null @@ -1,57 +0,0 @@ -import request from '@/config/axios' - -export interface Demo11StudentVO { - id: number - name: string - description: string - birthday: Date - sex: number - enabled: boolean - avatar: string - video: string - memo: string -} - -// 查询学生列表 -export const getDemo11StudentPage = async (params) => { - return await request.get({ url: `/infra/demo11-student/page`, params }) -} - -// 查询学生详情 -export const getDemo11Student = async (id: number) => { - return await request.get({ url: `/infra/demo11-student/get?id=` + id }) -} - -// 新增学生 -export const createDemo11Student = async (data: Demo11StudentVO) => { - return await request.post({ url: `/infra/demo11-student/create`, data }) -} - -// 修改学生 -export const updateDemo11Student = async (data: Demo11StudentVO) => { - return await request.put({ url: `/infra/demo11-student/update`, data }) -} - -// 删除学生 -export const deleteDemo11Student = async (id: number) => { - return await request.delete({ url: `/infra/demo11-student/delete?id=` + id }) -} - -// 导出学生 Excel -export const exportDemo11Student = async (params) => { - return await request.download({ url: `/infra/demo11-student/export-excel`, params }) -} - -// ==================== 子表(学生联系人) ==================== - -// 获得学生联系人列表 -export const getDemo11StudentContactListByStudentId = async (studentId) => { - return await request.get({ url: `/infra/demo11-student/demo11-student/list-by-student-id?studentId=` + studentId }) -} - -// ==================== 子表(学生班主任) ==================== - -// 获得学生班主任 -export const getDemo11StudentTeacherByStudentId = async (studentId) => { - return await request.get({ url: `/infra/demo11-student/demo11-student/get-by-student-id?studentId=` + studentId }) -} \ No newline at end of file diff --git a/src/api/infra/demo12/index.ts b/src/api/infra/demo12/index.ts deleted file mode 100644 index 3f2be47e..00000000 --- a/src/api/infra/demo12/index.ts +++ /dev/null @@ -1,95 +0,0 @@ -import request from '@/config/axios' - -export interface Demo12StudentVO { - id: number - name: string - description: string - birthday: Date - sex: number - enabled: boolean - avatar: string - video: string - memo: string -} - -// 查询学生列表 -export const getDemo12StudentPage = async (params) => { - return await request.get({ url: `/infra/demo12-student/page`, params }) -} - -// 查询学生详情 -export const getDemo12Student = async (id: number) => { - return await request.get({ url: `/infra/demo12-student/get?id=` + id }) -} - -// 新增学生 -export const createDemo12Student = async (data: Demo12StudentVO) => { - return await request.post({ url: `/infra/demo12-student/create`, data }) -} - -// 修改学生 -export const updateDemo12Student = async (data: Demo12StudentVO) => { - return await request.put({ url: `/infra/demo12-student/update`, data }) -} - -// 删除学生 -export const deleteDemo12Student = async (id: number) => { - return await request.delete({ url: `/infra/demo12-student/delete?id=` + id }) -} - -// 导出学生 Excel -export const exportDemo12Student = async (params) => { - return await request.download({ url: `/infra/demo12-student/export-excel`, params }) -} - -// ==================== 子表(学生联系人) ==================== - -// 获得学生联系人分页 -export const getDemo12StudentContactPage = async (params) => { - return await request.get({ url: `/infra/demo12-student/demo12-student-contact/page`, params }) -} -// 新增学生联系人 -export const createDemo12StudentContact = async (data) => { - return await request.post({ url: `/infra/demo12-student/demo12-student-contact/create`, data }) -} - -// 修改学生联系人 -export const updateDemo12StudentContact = async (data) => { - return await request.put({ url: `/infra/demo12-student/demo12-student-contact/update`, data }) -} - -// 删除学生联系人 -export const deleteDemo12StudentContact = async (id: number) => { - return await request.delete({ url: `/infra/demo12-student/demo12-student-contact/delete?id=` + id }) -} - -// 获得学生联系人 -export const getDemo12StudentContact = async (id: number) => { - return await request.get({ url: `/infra/demo12-student/demo12-student-contact/get?id=` + id }) -} - -// ==================== 子表(学生班主任) ==================== - -// 获得学生班主任分页 -export const getDemo12StudentTeacherPage = async (params) => { - return await request.get({ url: `/infra/demo12-student/demo12-student-teacher/page`, params }) -} -// 新增学生班主任 -export const createDemo12StudentTeacher = async (data) => { - return await request.post({ url: `/infra/demo12-student/demo12-student-teacher/create`, data }) -} - -// 修改学生班主任 -export const updateDemo12StudentTeacher = async (data) => { - return await request.put({ url: `/infra/demo12-student/demo12-student-teacher/update`, data }) -} - -// 删除学生班主任 -export const deleteDemo12StudentTeacher = async (id: number) => { - return await request.delete({ url: `/infra/demo12-student/demo12-student-teacher/delete?id=` + id }) -} - -// 获得学生班主任 -export const getDemo12StudentTeacher = async (id: number) => { - return await request.get({ url: `/infra/demo12-student/demo12-student-teacher/get?id=` + id }) -} \ No newline at end of file diff --git a/src/views/infra/demo12/components/Demo12StudentContactForm.vue b/src/views/infra/demo/demo03/inner/Demo03StudentForm.vue similarity index 61% rename from src/views/infra/demo12/components/Demo12StudentContactForm.vue rename to src/views/infra/demo/demo03/inner/Demo03StudentForm.vue index e246678b..fe9327b9 100644 --- a/src/views/infra/demo12/components/Demo12StudentContactForm.vue +++ b/src/views/infra/demo/demo03/inner/Demo03StudentForm.vue @@ -10,8 +10,16 @@ - - + + + + {{ dict.label }} + + - - - - - - - - - {{ dict.label }} - - - - - - - - - - - + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/infra/demo/demo03/inner/components/Demo03CourseList.vue b/src/views/infra/demo/demo03/inner/components/Demo03CourseList.vue new file mode 100644 index 00000000..d912fc5d --- /dev/null +++ b/src/views/infra/demo/demo03/inner/components/Demo03CourseList.vue @@ -0,0 +1,51 @@ + + \ No newline at end of file diff --git a/src/views/infra/demo/demo03/inner/components/Demo03GradeForm.vue b/src/views/infra/demo/demo03/inner/components/Demo03GradeForm.vue new file mode 100644 index 00000000..e0eeb192 --- /dev/null +++ b/src/views/infra/demo/demo03/inner/components/Demo03GradeForm.vue @@ -0,0 +1,72 @@ + + \ No newline at end of file diff --git a/src/views/infra/demo/demo03/inner/components/Demo03GradeList.vue b/src/views/infra/demo/demo03/inner/components/Demo03GradeList.vue new file mode 100644 index 00000000..96905414 --- /dev/null +++ b/src/views/infra/demo/demo03/inner/components/Demo03GradeList.vue @@ -0,0 +1,55 @@ + + \ No newline at end of file diff --git a/src/views/infra/demo11/index.vue b/src/views/infra/demo/demo03/inner/index.vue similarity index 74% rename from src/views/infra/demo11/index.vue rename to src/views/infra/demo/demo03/inner/index.vue index 36529eb9..4ce6037d 100644 --- a/src/views/infra/demo11/index.vue +++ b/src/views/infra/demo/demo03/inner/index.vue @@ -17,16 +17,6 @@ class="!w-240px" /> - - - - - - - - 新增 @@ -84,7 +59,7 @@ plain @click="handleExport" :loading="exportLoading" - v-hasPermi="['infra:demo11-student:export']" + v-hasPermi="['infra:demo03-student:export']" > 导出 @@ -95,9 +70,26 @@ + + + + - + + + - - - - - - - - - + 编辑 @@ -139,7 +119,7 @@ link type="danger" @click="handleDelete(scope.row.id)" - v-hasPermi="['infra:demo11-student:delete']" + v-hasPermi="['infra:demo03-student:delete']" > 删除 @@ -156,32 +136,32 @@ - + diff --git a/src/views/infra/demo04/DemoStudentAddressList.vue b/src/views/infra/demo04/DemoStudentAddressList.vue deleted file mode 100644 index 92143456..00000000 --- a/src/views/infra/demo04/DemoStudentAddressList.vue +++ /dev/null @@ -1,39 +0,0 @@ - - - diff --git a/src/views/infra/demo04/DemoStudentContactForm.vue b/src/views/infra/demo04/DemoStudentContactForm.vue deleted file mode 100644 index c8744eb0..00000000 --- a/src/views/infra/demo04/DemoStudentContactForm.vue +++ /dev/null @@ -1,96 +0,0 @@ - - diff --git a/src/views/infra/demo04/DemoStudentContactList.vue b/src/views/infra/demo04/DemoStudentContactList.vue deleted file mode 100644 index b944c407..00000000 --- a/src/views/infra/demo04/DemoStudentContactList.vue +++ /dev/null @@ -1,70 +0,0 @@ - - - diff --git a/src/views/infra/demo04/DemoStudentForm.vue b/src/views/infra/demo04/DemoStudentForm.vue deleted file mode 100644 index fe0788c4..00000000 --- a/src/views/infra/demo04/DemoStudentForm.vue +++ /dev/null @@ -1,132 +0,0 @@ - - diff --git a/src/views/infra/demo04/index.vue b/src/views/infra/demo04/index.vue deleted file mode 100644 index 9a6b8bfe..00000000 --- a/src/views/infra/demo04/index.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - diff --git a/src/views/infra/demo11/Demo11StudentForm.vue b/src/views/infra/demo11/Demo11StudentForm.vue deleted file mode 100644 index 39c21a2b..00000000 --- a/src/views/infra/demo11/Demo11StudentForm.vue +++ /dev/null @@ -1,183 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/infra/demo11/components/Demo11StudentContactForm.vue b/src/views/infra/demo11/components/Demo11StudentContactForm.vue deleted file mode 100644 index ba900017..00000000 --- a/src/views/infra/demo11/components/Demo11StudentContactForm.vue +++ /dev/null @@ -1,174 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/infra/demo11/components/Demo11StudentTeacherForm.vue b/src/views/infra/demo11/components/Demo11StudentTeacherForm.vue deleted file mode 100644 index a8697be1..00000000 --- a/src/views/infra/demo11/components/Demo11StudentTeacherForm.vue +++ /dev/null @@ -1,122 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/infra/demo12/Demo12StudentForm.vue b/src/views/infra/demo12/Demo12StudentForm.vue deleted file mode 100644 index af4e2733..00000000 --- a/src/views/infra/demo12/Demo12StudentForm.vue +++ /dev/null @@ -1,183 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/infra/demo12/components/Demo12StudentContactList.vue b/src/views/infra/demo12/components/Demo12StudentContactList.vue deleted file mode 100644 index b9b1e717..00000000 --- a/src/views/infra/demo12/components/Demo12StudentContactList.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/infra/demo12/components/Demo12StudentTeacherForm.vue b/src/views/infra/demo12/components/Demo12StudentTeacherForm.vue deleted file mode 100644 index 92e2b373..00000000 --- a/src/views/infra/demo12/components/Demo12StudentTeacherForm.vue +++ /dev/null @@ -1,155 +0,0 @@ - - \ No newline at end of file diff --git a/src/views/infra/demo12/components/Demo12StudentTeacherList.vue b/src/views/infra/demo12/components/Demo12StudentTeacherList.vue deleted file mode 100644 index d0594534..00000000 --- a/src/views/infra/demo12/components/Demo12StudentTeacherList.vue +++ /dev/null @@ -1,148 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/infra/demo12/index.vue b/src/views/infra/demo12/index.vue deleted file mode 100644 index 47ec7f21..00000000 --- a/src/views/infra/demo12/index.vue +++ /dev/null @@ -1,278 +0,0 @@ - - - \ No newline at end of file diff --git a/src/views/infra/testDemo/index.vue b/src/views/infra/testDemo/index.vue deleted file mode 100644 index ca6a5b07..00000000 --- a/src/views/infra/testDemo/index.vue +++ /dev/null @@ -1,4 +0,0 @@ - -