From 1ed1f6efc362c5ff58c6976ef5bedaaf4438e9be Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Tue, 6 May 2025 10:07:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=9D=99=E6=80=81=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/getPages.ts | 573 ++++++++++++------ src/views/development/menu/index.ts | 0 src/views/development/menu/index.vue | 7 - .../{screen => foodSafetyEducation}/index.vue | 8 +- src/views/hardwareData/index.vue | 11 + src/views/overviewLargeScreen/index.vue | 9 + .../departmentStructure/index.ts | 33 + .../departmentStructure/index.vue | 9 + .../enterpriseStaff/index.ts | 48 ++ .../enterpriseStaff/index.vue | 9 + .../historicalPurchase/index.vue | 10 + .../securityStaff/index.vue | 9 + src/views/shareRecipes/index.vue | 10 + src/views/smartRecipes/dailyRecipes/index.vue | 11 + .../smartRecipes/dishesManagement/index.vue | 11 + .../smartRecipes/foodManagement/index.vue | 11 + .../foodSampleRetention/index.vue | 11 + .../smartRecipes/menuManagement/index.vue | 11 + src/views/system/dept/index.vue | 9 +- src/views/system/user/index.vue | 12 +- src/views/workAccounts/index.vue | 11 + 21 files changed, 635 insertions(+), 188 deletions(-) delete mode 100644 src/views/development/menu/index.ts delete mode 100644 src/views/development/menu/index.vue rename src/views/{screen => foodSafetyEducation}/index.vue (70%) create mode 100644 src/views/hardwareData/index.vue create mode 100644 src/views/overviewLargeScreen/index.vue create mode 100644 src/views/personnelManagement/departmentStructure/index.ts create mode 100644 src/views/personnelManagement/departmentStructure/index.vue create mode 100644 src/views/personnelManagement/enterpriseStaff/index.ts create mode 100644 src/views/personnelManagement/enterpriseStaff/index.vue create mode 100644 src/views/personnelManagement/historicalPurchase/index.vue create mode 100644 src/views/personnelManagement/securityStaff/index.vue create mode 100644 src/views/shareRecipes/index.vue create mode 100644 src/views/smartRecipes/dailyRecipes/index.vue create mode 100644 src/views/smartRecipes/dishesManagement/index.vue create mode 100644 src/views/smartRecipes/foodManagement/index.vue create mode 100644 src/views/smartRecipes/foodSampleRetention/index.vue create mode 100644 src/views/smartRecipes/menuManagement/index.vue create mode 100644 src/views/workAccounts/index.vue diff --git a/src/router/getPages.ts b/src/router/getPages.ts index b709779..a20d7d5 100644 --- a/src/router/getPages.ts +++ b/src/router/getPages.ts @@ -3,6 +3,82 @@ export const getPages = (): Promise => { resolve({ code: 200, data: [ + { + btnList: [], + + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "总览大屏", + orderIndex: null, + parentId: "0", + path: "/overviewLargeScreen", + redirect: "", + remark: "", + snowFlakeId: "overviewLargeScreen", + status: null, + type: { + extData: null, + label: "目录", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, + { + btnList: [], + + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "共享食谱", + orderIndex: null, + parentId: "0", + path: "/shareRecipes", + redirect: "", + remark: "", + snowFlakeId: "shareRecipes", + status: null, + type: { + extData: null, + label: "目录", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, { btnList: [], children: [ @@ -28,7 +104,7 @@ export const getPages = (): Promise => { value: 0, }, link: "", - name: "部门架构", + name: "采购名录", orderIndex: null, parentId: "1907342465921191936", path: "/personnelManagement/departmentStructure", @@ -66,7 +142,7 @@ export const getPages = (): Promise => { value: 0, }, link: "", - name: "企业员工", + name: "库存盘点", orderIndex: null, parentId: "1907342465921191936", path: "/personnelManagement/enterpriseStaff", @@ -104,7 +180,7 @@ export const getPages = (): Promise => { value: 0, }, link: "", - name: "安保员工", + name: "采购计划", orderIndex: null, parentId: "1907342465921191936", path: "/personnelManagement/securityStaff", @@ -120,6 +196,44 @@ export const getPages = (): Promise => { updateBy: null, updateTime: null, }, + { + btnList: [], + children: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "历史采购", + orderIndex: null, + parentId: "1907342465921191936", + path: "/personnelManagement/historicalPurchase", + redirect: "", + remark: "", + snowFlakeId: "1907344307979816962", + status: null, + type: { + extData: null, + label: "菜单", + value: "menu", + }, + updateBy: null, + updateTime: null, + } ], createBy: null, createTime: null, @@ -140,7 +254,7 @@ export const getPages = (): Promise => { value: 0, }, link: "", - name: "人事管理", + name: "采购管理", orderIndex: null, parentId: "0", path: "/personnelManagement", @@ -205,6 +319,82 @@ export const getPages = (): Promise => { updateBy: null, updateTime: null, }, + { + btnList: [], + children: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "EosIconsRoleBinding", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + link: "", + name: "用户管理", + orderIndex: null, + parentId: "1904795567075102720", + path: "/system/user", + redirect: "", + remark: "", + snowFlakeId: "1904812573660811546", + status: null, + type: { + extData: null, + label: "菜单", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, + { + btnList: [], + children: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "EosIconsRoleBinding", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + link: "", + name: "操作日志", + orderIndex: null, + parentId: "1904795567075102720", + path: "/system/dept", + redirect: "", + remark: "", + snowFlakeId: "1904812573660812154", + status: null, + type: { + extData: null, + label: "菜单", + value: "menu", + }, + updateBy: null, + updateTime: null, + } ], createBy: null, createTime: null, @@ -229,7 +419,7 @@ export const getPages = (): Promise => { orderIndex: null, parentId: "0", path: "/system", - redirect: "/system/user", + redirect: "/system", remark: "", snowFlakeId: "1904795567075102720", status: null, @@ -266,87 +456,10 @@ export const getPages = (): Promise => { value: 1, }, link: "", - name: "菜单管理", - orderIndex: null, - parentId: "1905455414980382720", - path: "/development/menu", - redirect: "", - remark: "", - snowFlakeId: "1905455579321602048", - status: null, - type: { - extData: null, - label: "菜单", - value: "menu", - }, - updateBy: null, - updateTime: null, - }, - ], - createBy: null, - createTime: null, - deleteFlag: null, - icon: "LineMdDocumentCode", - isFull: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - isKeepAlive: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - link: "", - name: "开发管理", - orderIndex: null, - parentId: "0", - path: "/development", - redirect: "", - remark: "", - snowFlakeId: "1905455414980382720", - status: null, - type: { - extData: null, - label: "目录", - value: "dir", - }, - updateBy: null, - updateTime: null, - }, - { - btnList: [], - children: [ - { - btnList: [], - children: [], - createBy: null, - createTime: null, - deleteFlag: null, - icon: "LineMdList", - isFull: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - isKeepAlive: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - link: "", - name: "测试1菜单2", + name: "每日食谱", orderIndex: null, parentId: "1910252674549288960", - path: "/test1/test1menu2", + path: "/smartRecipes/dailyRecipes", redirect: "", remark: "", snowFlakeId: "1910253280865292288", @@ -381,10 +494,10 @@ export const getPages = (): Promise => { value: 1, }, link: "", - name: "测试1菜单1", + name: "食材管理", orderIndex: null, parentId: "1910252674549288960", - path: "/test1/test1menu1", + path: "/smartRecipes/foodManagement", redirect: "", remark: "", snowFlakeId: "1910253160014811136", @@ -399,88 +512,11 @@ export const getPages = (): Promise => { }, { btnList: [], - children: [ - { - btnList: [], - children: [], - createBy: null, - createTime: null, - deleteFlag: null, - icon: "LineMdList", - isFull: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - isKeepAlive: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - link: "", - name: "测试2菜单2", - orderIndex: null, - parentId: "1910252952203825152", - path: "/test1/test2/test2menu2", - redirect: "", - remark: "", - snowFlakeId: "1910253703755993088", - status: null, - type: { - extData: null, - label: "菜单", - value: "menu", - }, - updateBy: null, - updateTime: null, - }, - { - btnList: [], - children: [], - createBy: null, - createTime: null, - deleteFlag: null, - icon: "LineMdList", - isFull: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - isKeepAlive: { - extData: { - boolVal: false, - }, - label: "否", - value: 1, - }, - link: "", - name: "测试2菜单1", - orderIndex: null, - parentId: "1910252952203825152", - path: "/test1/test2/test2menu1", - redirect: "", - remark: "", - snowFlakeId: "1910253563792068608", - status: null, - type: { - extData: null, - label: "菜单", - value: "menu", - }, - updateBy: null, - updateTime: null, - }, - ], + children: [], createBy: null, createTime: null, deleteFlag: null, - icon: "CarbonSubtractAlt", + icon: "LineMdList", isFull: { extData: { boolVal: false, @@ -490,28 +526,104 @@ export const getPages = (): Promise => { }, isKeepAlive: { extData: { - boolVal: true, + boolVal: false, }, - label: "是", - value: 0, + label: "否", + value: 1, }, link: "", - name: "测试2", + name: "菜品管理", orderIndex: null, parentId: "1910252674549288960", - path: "/test2", + path: "/smartRecipes/dishesManagement", redirect: "", remark: "", - snowFlakeId: "1910252952203825152", + snowFlakeId: "1910253160014811137", status: null, type: { extData: null, - label: "目录", - value: "dir", + label: "菜单", + value: "menu", }, updateBy: null, updateTime: null, }, + { + btnList: [], + children: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdList", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + link: "", + name: "菜单管理", + orderIndex: null, + parentId: "1910252674549288960", + path: "/smartRecipes/menuManagement", + redirect: "", + remark: "", + snowFlakeId: "1910253160014811245", + status: null, + type: { + extData: null, + label: "菜单", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, + { + btnList: [], + children: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdList", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + link: "", + name: "食品留样", + orderIndex: null, + parentId: "1910252674549288960", + path: "/smartRecipes/foodSampleRetention", + redirect: "", + remark: "", + snowFlakeId: "1910253160014811854", + status: null, + type: { + extData: null, + label: "菜单", + value: "menu", + }, + updateBy: null, + updateTime: null, + } ], createBy: null, createTime: null, @@ -532,10 +644,10 @@ export const getPages = (): Promise => { value: 0, }, link: "", - name: "测试1", + name: "智慧菜谱", orderIndex: null, parentId: "0", - path: "/test1", + path: "/smartRecipes", redirect: "", remark: "", snowFlakeId: "1910252674549288960", @@ -548,6 +660,117 @@ export const getPages = (): Promise => { updateBy: null, updateTime: null, }, + { + btnList: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "食安教育", + orderIndex: null, + parentId: "0", + path: "/foodSafetyEducation", + redirect: "", + remark: "", + snowFlakeId: "foodSafetyEducation", + status: null, + type: { + extData: null, + label: "目录", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, + { + btnList: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "硬件数据", + orderIndex: null, + parentId: "0", + path: "/hardwareData", + redirect: "", + remark: "", + snowFlakeId: "hardwareData", + status: null, + type: { + extData: null, + label: "目录", + value: "menu", + }, + updateBy: null, + updateTime: null, + }, + { + btnList: [], + createBy: null, + createTime: null, + deleteFlag: null, + icon: "LineMdAccount", + isFull: { + extData: { + boolVal: false, + }, + label: "否", + value: 1, + }, + isKeepAlive: { + extData: { + boolVal: true, + }, + label: "是", + value: 0, + }, + link: "", + name: "工作台账", + orderIndex: null, + parentId: "0", + path: "/workAccounts", + redirect: "", + remark: "", + snowFlakeId: "workAccounts", + status: null, + type: { + extData: null, + label: "目录", + value: "menu", + }, + updateBy: null, + updateTime: null, + } ], message: "操作成功!", }); diff --git a/src/views/development/menu/index.ts b/src/views/development/menu/index.ts deleted file mode 100644 index e69de29..0000000 diff --git a/src/views/development/menu/index.vue b/src/views/development/menu/index.vue deleted file mode 100644 index c219c3b..0000000 --- a/src/views/development/menu/index.vue +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/src/views/screen/index.vue b/src/views/foodSafetyEducation/index.vue similarity index 70% rename from src/views/screen/index.vue rename to src/views/foodSafetyEducation/index.vue index 3a48a85..f9c33c2 100644 --- a/src/views/screen/index.vue +++ b/src/views/foodSafetyEducation/index.vue @@ -1,9 +1,11 @@ - + + + \ No newline at end of file diff --git a/src/views/hardwareData/index.vue b/src/views/hardwareData/index.vue new file mode 100644 index 0000000..2cb5ec2 --- /dev/null +++ b/src/views/hardwareData/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/overviewLargeScreen/index.vue b/src/views/overviewLargeScreen/index.vue new file mode 100644 index 0000000..3ea9fe8 --- /dev/null +++ b/src/views/overviewLargeScreen/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/views/personnelManagement/departmentStructure/index.ts b/src/views/personnelManagement/departmentStructure/index.ts new file mode 100644 index 0000000..65e29c4 --- /dev/null +++ b/src/views/personnelManagement/departmentStructure/index.ts @@ -0,0 +1,33 @@ +export interface ModelValue { + /** + * @snowFlakeId 部门id + */ + snowFlakeId?: string | number + /** + * @name 部门名称 + */ + name: string + /** + * @name 父级部门id + */ + parentId?: string | number + /** + * @name 部门负责人id + */ + leaderUserId?: string | number + /** + * @name 备注 + */ + remark?: string +} +export const modelDefaultValue: ModelValue = { + snowFlakeId: '', + name: '', + leaderUserId: '', + remark: '', +} + +export interface Role { + label: string + value: string +} diff --git a/src/views/personnelManagement/departmentStructure/index.vue b/src/views/personnelManagement/departmentStructure/index.vue new file mode 100644 index 0000000..d812661 --- /dev/null +++ b/src/views/personnelManagement/departmentStructure/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/views/personnelManagement/enterpriseStaff/index.ts b/src/views/personnelManagement/enterpriseStaff/index.ts new file mode 100644 index 0000000..240740c --- /dev/null +++ b/src/views/personnelManagement/enterpriseStaff/index.ts @@ -0,0 +1,48 @@ +export interface userInterface { + /** + * @snowFlakeId 头像 + */ + snowFlakeId?: string + /** + * @name 头像 + */ + avatar?: string + /** + * @name 用户名_必传 + */ + name: string + /** + * @sex 性别_必传 + */ + sex: string + /** + * @phoneNumber 手机号_必传 + */ + phoneNumber: string + /** + * @phoneNumber 账号状态_必传 + */ + + status: string + + /** + * @authClient 授权的客户端_必传 + */ + + authClient: any[] + /** + * @deptIds 所属部门id_必传 + */ + + deptIds?: any[] + /** + * @roleIds 所属角色id_必传 + */ + + roleIds?: any[] +} +export interface passwordInterface { + oldPassword: string + newPassword: string + confirmPassword: string +} diff --git a/src/views/personnelManagement/enterpriseStaff/index.vue b/src/views/personnelManagement/enterpriseStaff/index.vue new file mode 100644 index 0000000..1cea4b8 --- /dev/null +++ b/src/views/personnelManagement/enterpriseStaff/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/views/personnelManagement/historicalPurchase/index.vue b/src/views/personnelManagement/historicalPurchase/index.vue new file mode 100644 index 0000000..7378d6e --- /dev/null +++ b/src/views/personnelManagement/historicalPurchase/index.vue @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/src/views/personnelManagement/securityStaff/index.vue b/src/views/personnelManagement/securityStaff/index.vue new file mode 100644 index 0000000..928bee4 --- /dev/null +++ b/src/views/personnelManagement/securityStaff/index.vue @@ -0,0 +1,9 @@ + + + \ No newline at end of file diff --git a/src/views/shareRecipes/index.vue b/src/views/shareRecipes/index.vue new file mode 100644 index 0000000..84537e8 --- /dev/null +++ b/src/views/shareRecipes/index.vue @@ -0,0 +1,10 @@ + + + + \ No newline at end of file diff --git a/src/views/smartRecipes/dailyRecipes/index.vue b/src/views/smartRecipes/dailyRecipes/index.vue new file mode 100644 index 0000000..3098007 --- /dev/null +++ b/src/views/smartRecipes/dailyRecipes/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/smartRecipes/dishesManagement/index.vue b/src/views/smartRecipes/dishesManagement/index.vue new file mode 100644 index 0000000..45fa421 --- /dev/null +++ b/src/views/smartRecipes/dishesManagement/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/smartRecipes/foodManagement/index.vue b/src/views/smartRecipes/foodManagement/index.vue new file mode 100644 index 0000000..44a0dba --- /dev/null +++ b/src/views/smartRecipes/foodManagement/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/smartRecipes/foodSampleRetention/index.vue b/src/views/smartRecipes/foodSampleRetention/index.vue new file mode 100644 index 0000000..4aa6e0e --- /dev/null +++ b/src/views/smartRecipes/foodSampleRetention/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/smartRecipes/menuManagement/index.vue b/src/views/smartRecipes/menuManagement/index.vue new file mode 100644 index 0000000..641bc84 --- /dev/null +++ b/src/views/smartRecipes/menuManagement/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 688d098..fcf10bf 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -1,4 +1,11 @@ + + + \ No newline at end of file diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index dae2fd5..fb533ca 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -1,3 +1,11 @@ \ No newline at end of file +
用户管理
+ + + + + \ No newline at end of file diff --git a/src/views/workAccounts/index.vue b/src/views/workAccounts/index.vue new file mode 100644 index 0000000..82c5957 --- /dev/null +++ b/src/views/workAccounts/index.vue @@ -0,0 +1,11 @@ + + + + + \ No newline at end of file