diff --git a/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts b/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts index 3d2f656..bcfaff4 100644 --- a/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts +++ b/SafeCampus.WEB/src/api/interface/sys/usermanage/clothing.ts @@ -11,8 +11,6 @@ * 5.请不得将本软件应用于危害国家安全、荣誉和利益的行为,不能以任何形式用于非法为目的的行为不要删除和修改作者声明。 * 6.任何基于本软件而产生的一切法律纠纷和责任,均于我司无关 */ - -import { ReqPage } from "@/api"; /** * @Description: 服装底库管理接口 * @Author: syy @@ -22,54 +20,20 @@ import { ReqPage } from "@/api"; export namespace SysUserCloth { // 服装底库树 export interface Page { - clothSetId: number | string; - clothSetName: number | string; + clothSetId?: number | string; + clothSetName?: number | string; } - /** id请求参数 */ - export interface ReqName { - name: number | string; - } - /** 底库信息 */ - export interface ClassPage { - personSetId?: string | number | undefined; - personSetName?: string | undefined; - id?: string | undefined; - name?: string | undefined; - personId?: string | undefined | number; - } - /** 人脸信息 */ - export interface SysUserAvatar { - /** 人脸 */ - personId?: string | undefined | number; - faceId?: string | number; - faceUrl: string; - uid?: string | number; + export interface list { + clothUrl: string; + clothId: number | string; + clothSetId: string; } - // 人脸删除 - export interface SysUserFace { - personId: string | undefined; - faceIds: Array; - } - /** 用户信息 */ export interface SysUserClothInfo { - /** 人员id */ - personId?: string; - /** 姓名 */ - name?: string; - /** 年龄 */ - age?: number | string; - /** 性别 */ - gender?: string; - /** 手机 */ - phone?: string; - /** 扩展字段 */ - extData?: string; - /** 人脸 */ - faces: Array; - /** 分组 */ - personSets: Array; - personSetId?: number | string; + clothSetId: number | string; + clothSetName: number | string; + /** 列表 */ + clothes?: Array; } } diff --git a/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts b/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts index b1aff8e..69bdb51 100644 --- a/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts +++ b/SafeCampus.WEB/src/api/modules/usermanage/clothing.ts @@ -34,24 +34,24 @@ const userManageClothApi = { return http.delete("deleteClothDataBaseD", params); }, /** 新增服装底库 */ - addClothDataBaseA(params: SysUserCloth.ReqName) { + addClothDataBaseA(params: SysUserCloth.Page) { return http.post("addClothDataBaseA", params); }, /** 更新服装底库 */ - update(params: SysUserCloth.SysUserPerInfo) { + update(params: SysUserCloth.Page) { return http.put("updateClothU", params); }, /** 服装图片上传 */ - uploadFile(params: SysUserCloth.SysUserAvatar) { + uploadFile(params: any) { return http.post("uploadFile", params); }, /** 新增服装 */ - add(params: SysUserCloth.SysUserPerInfo) { + add(params: any) { return http.post("addClothA", params); }, /** 删除服装 */ - delete(params: SysUserCloth.SysUserFace) { + delete(params: SysUserCloth.list) { return http.post("deleteClothD", params); } }; diff --git a/SafeCampus.WEB/src/typings/props.d.ts b/SafeCampus.WEB/src/typings/props.d.ts index 684a882..6875428 100644 --- a/SafeCampus.WEB/src/typings/props.d.ts +++ b/SafeCampus.WEB/src/typings/props.d.ts @@ -27,6 +27,8 @@ declare namespace FormProps { disabled?: boolean; /** 行内表单模式 */ inline?: boolean; + // 树数据 + treeAllData?: Array; /** 表单布局 */ successful?: () => void; } diff --git a/SafeCampus.WEB/src/views/userManage/clothing/components/form/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/components/form/index.vue new file mode 100644 index 0000000..2b29484 --- /dev/null +++ b/SafeCampus.WEB/src/views/userManage/clothing/components/form/index.vue @@ -0,0 +1,156 @@ + + + + + + + diff --git a/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue new file mode 100644 index 0000000..d184d60 --- /dev/null +++ b/SafeCampus.WEB/src/views/userManage/clothing/components/form1/index.vue @@ -0,0 +1,105 @@ + + + + + + diff --git a/SafeCampus.WEB/src/views/userManage/clothing/index.vue b/SafeCampus.WEB/src/views/userManage/clothing/index.vue new file mode 100644 index 0000000..0615271 --- /dev/null +++ b/SafeCampus.WEB/src/views/userManage/clothing/index.vue @@ -0,0 +1,194 @@ + + + +