From 7f8bec5bfcc2ed80cdb79768c05575ccf6f6fb68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=B0=8F=E7=8E=8B=E5=AD=90?= Date: Fri, 12 Apr 2024 21:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=BC=94=E7=A4=BA=E6=A8=A1=E5=9D=97=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AF=BC=E5=85=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mf/product/types.ts | 122 +++---- src/api/mf/student/types.ts | 153 ++++---- src/views/mf/product/index.vue | 639 +++++++++++++++++++-------------- src/views/mf/student/index.vue | 113 +++++- 4 files changed, 613 insertions(+), 414 deletions(-) diff --git a/src/api/mf/product/types.ts b/src/api/mf/product/types.ts index 447fef6..c690468 100644 --- a/src/api/mf/product/types.ts +++ b/src/api/mf/product/types.ts @@ -1,76 +1,76 @@ export interface ProductVO extends BaseEntity { - /** - * 父产品id - */ - parentId: string | number; + /** + * 产品编号 + */ + productId: string | number; - /** - * 产品名称 - */ - productName: string; + /** + * 产品名称 + */ + productName: string; - /** - * 显示顺序 - */ - orderNum: number; + /** + * 显示顺序 + */ + orderNum: number; - /** - * 产品状态(0正常 1停用) - */ - status: string; + /** + * 产品状态(0正常 1停用) + */ + status: string; - /** - * 子对象 - */ - children: ProductVO[]; -} +/** +* 子树对象 +*/ +children: ProductVO[]; + } -export interface ProductForm { - /** - * 产品id - */ - productId?: string | number; + export interface ProductForm { + /** + * 产品编号 + */ + productId?: string | number; - /** - * 父产品id - */ - parentId?: string | number; + /** + * 上级编号 + */ + parentId?: string | number; - /** - * 产品名称 - */ - productName?: string; + /** + * 产品名称 + */ + productName?: string; - /** - * 显示顺序 - */ - orderNum?: number; + /** + * 显示顺序 + */ + orderNum?: number; - /** - * 产品状态(0正常 1停用) - */ - status?: string; + /** + * 产品状态(0正常 1停用) + */ + status?: string; - /** - * 乐观锁 - */ - version?: number; + /** + * 乐观锁 + */ + version?: number; -} + } -export interface ProductQuery { - /** - * 产品名称 - */ - productName?: string; + export interface ProductQuery { + /** + * 产品名称 + */ + productName?: string; - /** - * 产品状态(0正常 1停用) - */ - status?: string; + /** + * 产品状态(0正常 1停用) + */ + status?: string; - /** - * 日期范围参数 - */ - params?: any; -} + /** + * 日期范围参数 + */ + params?: any; + } diff --git a/src/api/mf/student/types.ts b/src/api/mf/student/types.ts index 517af02..8e21766 100644 --- a/src/api/mf/student/types.ts +++ b/src/api/mf/student/types.ts @@ -1,96 +1,97 @@ export interface StudentVO extends BaseEntity { - /** - * 学生名称 - */ - studentName: string; + /** + * 编号 + */ + studentId: string | number; - /** - * 年龄 - */ - studentAge: number; + /** + * 学生名称 + */ + studentName: string; - /** - * 爱好(0代码 1音乐 2电影) - */ - studentHobby: string; + /** + * 年龄 + */ + studentAge: number; - /** - * 性别(1男 2女 3未知) - */ - studentGender: string; + /** + * 爱好(0代码 1音乐 2电影) + */ + studentHobby: string; - /** - * 状态(0正常 1停用) - */ - studentStatus: string; + /** + * 性别(1男 2女 3未知) + */ + studentGender: string; - /** - * 生日 - */ - studentBirthday: string; + /** + * 状态(0正常 1停用) + */ + studentStatus: string; -} + /** + * 生日 + */ + studentBirthday: string; -export interface StudentForm { - /** - * 编号 - */ - studentId?: string | number; + } - /** - * 学生名称 - */ - studentName?: string; + export interface StudentForm { + /** + * 编号 + */ + studentId?: string | number; - /** - * 年龄 - */ - studentAge?: number; + /** + * 学生名称 + */ + studentName?: string; - /** - * 爱好(0代码 1音乐 2电影) - */ - studentHobby?: string; + /** + * 年龄 + */ + studentAge?: number; - /** - * 性别(1男 2女 3未知) - */ - studentGender?: string; + /** + * 爱好(0代码 1音乐 2电影) + */ + studentHobby?: string; - /** - * 状态(0正常 1停用) - */ - studentStatus?: string; + /** + * 性别(1男 2女 3未知) + */ + studentGender?: string; - /** - * 生日 - */ - studentBirthday?: string; + /** + * 状态(0正常 1停用) + */ + studentStatus?: string; - /** - * 乐观锁 - */ - version?: number; + /** + * 生日 + */ + studentBirthday?: string; -} + /** + * 乐观锁 + */ + version?: number; -export interface StudentQuery extends PageQuery { - - /** - * 学生名称 - */ - studentName?: string; - - /** - * 状态(0正常 1停用) - */ - studentStatus?: string; - - /** - * 日期范围参数 - */ - params?: any; -} + } + export interface StudentQuery extends PageQuery { + /** + * 学生名称 + */ + studentName?: string; + /** + * 状态(0正常 1停用) + */ + studentStatus?: string; + /** + * 日期范围参数 + */ + params?: any; + } diff --git a/src/views/mf/product/index.vue b/src/views/mf/product/index.vue index eb1c594..75ddd89 100644 --- a/src/views/mf/product/index.vue +++ b/src/views/mf/product/index.vue @@ -1,289 +1,392 @@ - diff --git a/src/views/mf/student/index.vue b/src/views/mf/student/index.vue index 52805f6..891ee9d 100644 --- a/src/views/mf/student/index.vue +++ b/src/views/mf/student/index.vue @@ -36,6 +36,9 @@ 删除 + + 导入 + 导出 @@ -45,7 +48,7 @@ - + @@ -89,7 +92,7 @@ /> - + @@ -145,27 +148,87 @@ + + + + + + + +
将文件拖到此处,或点击上传
+ +
+ +
-