From c71e6dead377944f114827b1c3aa41ef561364e5 Mon Sep 17 00:00:00 2001
From: wangyilin <1454641981@qq.com>
Date: Mon, 12 May 2025 16:02:32 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=B1=E4=BA=AB=E9=A3=9F=E8=B0=B1=E7=BC=96?=
=?UTF-8?q?=E5=86=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/hardwareData/index.ts | 344 +++++++++++++
src/views/hardwareData/index.vue | 560 +++++++++++++++++----
src/views/hardwareData/morningDetector.tsx | 145 ++++++
src/views/shareRecipes/index.ts | 45 ++
src/views/shareRecipes/index.vue | 147 +++++-
src/views/system/user/index.ts | 6 +-
src/views/system/user/index.vue | 13 +-
src/views/workAccounts/index.ts | 20 +-
8 files changed, 1164 insertions(+), 116 deletions(-)
create mode 100644 src/views/hardwareData/index.ts
create mode 100644 src/views/hardwareData/morningDetector.tsx
create mode 100644 src/views/shareRecipes/index.ts
diff --git a/src/views/hardwareData/index.ts b/src/views/hardwareData/index.ts
new file mode 100644
index 0000000..6233728
--- /dev/null
+++ b/src/views/hardwareData/index.ts
@@ -0,0 +1,344 @@
+export interface HardwareData{
+ bodyImage?:string
+ bodyImageUrl? :string
+ checkDate?:string
+ checkDateStr?:string
+ checkResult? : string | number
+ checkResultStr?:string
+ checkStatus?: string | number
+ checkStatusStr?:string
+ checkUserId?:string
+ checkUserName?: string
+ createTime?:string
+ createTimeStr?:string
+ dataSource?:string
+ deptId?:string
+ deptIds?:string
+ deptName?:string
+ deviceId? :string
+ diseases?:string
+ handImage?:string
+ handImageUrl?:string
+ handbackImage?:string
+ handbackImageUrl?:string
+ headImage?:string
+ headImageUrl? :string
+ id?: string
+ ids?: string
+ isDefault?:boolean
+ moreIds ?: string
+ sex? : string
+ sexStr?:string
+ signatureImage?:string
+ statementVideo? : string
+ temperature?:string
+ updateTime? :string
+ userId?: string
+ userName?:string
+ userNameEncrypt?: string
+ checkInTime?:string
+}
+
+const datalistHardwareData:HardwareData[] = [
+ {
+ checkInTime:'2025-05-08 00:00:00',
+ bodyImage:"/img/mqtts/morning/record/1920283993400512513_bodyImg.jpg",
+ bodyImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ checkDate:"2025-05-08 00:00:00",
+ checkDateStr:"2025-05-08",
+ checkResult : 0,
+ checkResultStr:"合格",
+ checkStatus: 2,
+ checkStatusStr:"已完成",
+ checkUserId:"",
+ checkUserName: "",
+ createTime:"2025-05-08 09:05:56",
+ createTimeStr:"2025-05-08 09:05:56",
+ dataSource:"",
+ deptId:"1526803620325961729",
+ deptIds:"",
+ deptName:"南头央厨",
+ deviceId : "",
+ diseases:"无不适",
+ handImage:"/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handbackImage:"/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ handbackImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ headImage:"/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ headImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ id: "1920283993400512513",
+ ids: "",
+ isDefault:true,
+ moreIds : "",
+ sex : "",
+ sexStr:"未知",
+ signatureImage: "",
+ statementVideo : "",
+ temperature:"36.64",
+ updateTime :"",
+ userId: "1727695532542918657",
+ userName:"**静",
+ userNameEncrypt: "**静"
+ },
+ {
+ checkInTime:'2025-05-08 00:00:00',
+ bodyImage:"/img/mqtts/morning/record/1920283993400512513_bodyImg.jpg",
+ bodyImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ checkDate:"2025-05-08 00:00:00",
+ checkDateStr:"2025-05-08",
+ checkResult : 0,
+ checkResultStr:"合格",
+ checkStatus: 2,
+ checkStatusStr:"已完成",
+ checkUserId:"",
+ checkUserName: "",
+ createTime:"2025-05-08 09:05:56",
+ createTimeStr:"2025-05-08 09:05:56",
+ dataSource:"",
+ deptId:"1526803620325961729",
+ deptIds:"",
+ deptName:"南头央厨",
+ deviceId : "",
+ diseases:"无不适",
+ handImage:"/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handbackImage:"/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ handbackImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ headImage:"/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ headImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ id: "1920283993400512513",
+ ids: "",
+ isDefault:true,
+ moreIds : "",
+ sex : "",
+ sexStr:"未知",
+ signatureImage: "",
+ statementVideo : "",
+ temperature:"36.77",
+ updateTime :"",
+ userId: "1727695532542918657",
+ userName:"**静",
+ userNameEncrypt: "**静"
+ },
+ {
+ checkInTime:'2025-05-08 00:00:00',
+ bodyImage:"/img/mqtts/morning/record/1920283993400512513_bodyImg.jpg",
+ bodyImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ checkDate:"2025-05-08 00:00:00",
+ checkDateStr:"2025-05-08",
+ checkResult : 0,
+ checkResultStr:"合格",
+ checkStatus: 2,
+ checkStatusStr:"已完成",
+ checkUserId:"",
+ checkUserName: "",
+ createTime:"2025-05-08 09:05:56",
+ createTimeStr:"2025-05-08 09:05:56",
+ dataSource:"",
+ deptId:"1526803620325961729",
+ deptIds:"",
+ deptName:"南头央厨",
+ deviceId : "",
+ diseases:"无不适",
+ handImage:"/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handbackImage:"/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ handbackImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ headImage:"/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ headImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ id: "1920283993400512513",
+ ids: "",
+ isDefault:true,
+ moreIds : "",
+ sex : "",
+ sexStr:"未知",
+ signatureImage: "",
+ statementVideo : "",
+ temperature:"36.12",
+ updateTime :"",
+ userId: "1727695532542918657",
+ userName:"**静",
+ userNameEncrypt: "**静"
+ },
+ {
+ checkInTime:'2025-05-08 00:00:00',
+ bodyImage:"/img/mqtts/morning/record/1920283993400512513_bodyImg.jpg",
+ bodyImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ checkDate:"2025-05-08 00:00:00",
+ checkDateStr:"2025-05-08",
+ checkResult : 0,
+ checkResultStr:"合格",
+ checkStatus: 2,
+ checkStatusStr:"已完成",
+ checkUserId:"",
+ checkUserName: "",
+ createTime:"2025-05-08 09:05:56",
+ createTimeStr:"2025-05-08 09:05:56",
+ dataSource:"",
+ deptId:"1526803620325961729",
+ deptIds:"",
+ deptName:"南头央厨",
+ deviceId : "",
+ diseases:"恶心",
+ handImage:"/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handbackImage:"/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ handbackImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ headImage:"/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ headImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ id: "1920283993400512513",
+ ids: "",
+ isDefault:true,
+ moreIds : "",
+ sex : "",
+ sexStr:"未知",
+ signatureImage: "",
+ statementVideo : "",
+ temperature:"36.14",
+ updateTime :"",
+ userId: "1727695532542918657",
+ userName:"**静",
+ userNameEncrypt: "**静"
+ },
+ {
+ checkInTime:'2025-05-08 00:00:00',
+ bodyImage:"/img/mqtts/morning/record/1920283993400512513_bodyImg.jpg",
+ bodyImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ checkDate:"2025-05-08 00:00:00",
+ checkDateStr:"2025-05-08",
+ checkResult : 0,
+ checkResultStr:"合格",
+ checkStatus: 2,
+ checkStatusStr:"已完成",
+ checkUserId:"",
+ checkUserName: "",
+ createTime:"2025-05-08 09:05:56",
+ createTimeStr:"2025-05-08 09:05:56",
+ dataSource:"",
+ deptId:"1526803620325961729",
+ deptIds:"",
+ deptName:"南头央厨",
+ deviceId : "",
+ diseases:"湿疹",
+ handImage:"/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handImg.jpg",
+ handbackImage:"/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ handbackImageUrl:"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_handBackImg.jpg",
+ headImage:"/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ headImageUrl :"https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg",
+ id: "1920283993400512513",
+ ids: "",
+ isDefault:true,
+ moreIds : "",
+ sex : "",
+ sexStr:"未知",
+ signatureImage: "",
+ statementVideo : "",
+ temperature:"36.24",
+ updateTime :"",
+ userId: "1727695532542918657",
+ userName:"**静",
+ userNameEncrypt: "**静"
+ }
+]
+
+
+
+export interface ElectronicScale {
+ personInCharge?:string
+ nameOfIngredients?:string
+ quantityOfIngredients?:string
+ weight?:string | number
+ weighingTime?:string,
+ steadyState?:string,
+ outOfRange?:string,
+ unit?:string,
+ deviceModel?:string,
+ serialNumber?:string
+}
+
+const dataListElectronicScale:ElectronicScale[] = [
+ {
+ personInCharge:'管理员',
+ nameOfIngredients:'猪肉',
+ quantityOfIngredients:'',
+ weight:'200',
+ unit:'kg',
+ steadyState:'稳定',
+ outOfRange:'正常',
+ deviceModel:'ES-2000',
+ serialNumber:'SN123456789',
+ weighingTime:'2025-5-10 14:15:20'
+ },
+ {
+ personInCharge:'刘某',
+ nameOfIngredients:'牛肉',
+ quantityOfIngredients:'',
+ weight:'100',
+ unit:'kg',
+ steadyState:'稳定',
+ outOfRange:'正常',
+ deviceModel:'ES-2000',
+ serialNumber:'SN123456789',
+ weighingTime:'2025-5-10 14:15:20'
+ },
+ {
+ personInCharge:'张某',
+ nameOfIngredients:'鸡肉',
+ quantityOfIngredients:'20',
+ weight:'30',
+ unit:'kg',
+ steadyState:'不稳定',
+ outOfRange:'正常',
+ deviceModel:'ES-2000',
+ serialNumber:'SN123456789',
+ weighingTime:'2025-5-10 14:15:20'
+ },
+ {
+ personInCharge:'李某',
+ nameOfIngredients:'胡萝卜',
+ quantityOfIngredients:'',
+ weight:'50',
+ unit:'kg',
+ steadyState:'稳定',
+ outOfRange:'正常',
+ deviceModel:'ES-2000',
+ serialNumber:'SN123456789',
+ weighingTime:'2025-5-10 14:15:20'
+ }
+]
+
+
+
+export interface cameraDate{
+ id?:string,
+ cameraName?:string,
+ videoChannel?:string
+ states?:string,
+ cameraID?:string,
+ updatedBy?:string
+ founder?:string,
+ updateTime?:string,
+ images?:string
+}
+
+const dataListCameraDate:cameraDate[] = [
+ {
+ id:'1912428172322918402',
+ cameraName:'厨房',
+ videoChannel:'34020000001310000017',
+ states:'启用',
+ cameraID:'31011500991180143889',
+ updatedBy:'系统管理员',
+ founder:'系统管理员',
+ updateTime:'2025-4-4 14:12:21',
+ images:'https://file.wy2020.com/admin/weiyi/img/mqtts/morning/record/1920283993400512513_headImg.jpg'
+ }
+]
+
+
+
+
+
+
+export default { datalistHardwareData,dataListElectronicScale,dataListCameraDate };
\ No newline at end of file
diff --git a/src/views/hardwareData/index.vue b/src/views/hardwareData/index.vue
index 664b79f..ea059dc 100644
--- a/src/views/hardwareData/index.vue
+++ b/src/views/hardwareData/index.vue
@@ -1,26 +1,53 @@
-
+
-
-
-
- 添加
-
-
-
-
+
+
+
+
+
+ 一键导出
+
+
+
+
+
+
+ 一键导出
+
+
+
+
+
+
+ 一键导出
+
+
+
+
+
+
diff --git a/src/views/hardwareData/morningDetector.tsx b/src/views/hardwareData/morningDetector.tsx
new file mode 100644
index 0000000..b39676a
--- /dev/null
+++ b/src/views/hardwareData/morningDetector.tsx
@@ -0,0 +1,145 @@
+import { reactive } from "vue";
+import {type FormItemOptions } from "@/components";
+import {type HardwareData } from "./index.ts";
+
+export const formOptionsUser = reactive>({
+ userName:{
+ type: "select",
+ label: "员工",
+ required:true,
+ options:[
+ {
+ value:'张三',
+ label:'张三'
+ },
+ {
+ value:'李四',
+ label:'李四'
+ },
+ {
+ value:'王五',
+ label:'王五'
+ },
+ {
+ value:'赵六',
+ label:'赵六'
+ },
+ {
+ value:'刘七',
+ label:'刘七'
+ },
+ ]
+ },
+ temperature:{
+ type:'input',
+ label:'体温',
+ required:true
+ },
+ bodyImageUrl:{
+ type: "custom",
+ label: "衣着图片",
+ required:true,
+ customRender: (val) => {
+ return (
+
+
+
+ );
+ }
+ },
+ handImageUrl:{
+ type: "custom",
+ label: "手心图片",
+ required:true,
+ customRender: (val) => {
+ return (
+
+
+
+ );
+ }
+ },
+ handbackImageUrl:{
+ type: "custom",
+ label: "手背图片",
+ required:true,
+ customRender: (val) => {
+ return (
+
+
+
+ );
+ }
+ },
+ headImageUrl:{
+ type: "custom",
+ label: "头部图片",
+ required:true,
+ customRender: (val) => {
+ return (
+
+
+
+ );
+ }
+ },
+
+})
+
+
+export const formOptions1User = reactive>({
+ diseases:{
+ type:'checkboxGroup',
+ label:'健康状态',
+ options:[
+ {
+ value:'无不适',
+ label:'无不适'
+ },
+ {
+ value:'发热',
+ label:'发热'
+ },
+ {
+ value:'恶心',
+ label:'恶心'
+ },
+ {
+ value:'呕吐',
+ label:'呕吐'
+ },
+ {
+ value:'咳嗽',
+ label:'咳嗽'
+ },
+ {
+ value:'湿疹',
+ label:'湿疹'
+ },
+ {
+ value:'腹泻',
+ label:'腹泻'
+ },
+ {
+ value:'烫伤',
+ label:'烫伤'
+ },
+ ]
+ }
+})
\ No newline at end of file
diff --git a/src/views/shareRecipes/index.ts b/src/views/shareRecipes/index.ts
new file mode 100644
index 0000000..67977a8
--- /dev/null
+++ b/src/views/shareRecipes/index.ts
@@ -0,0 +1,45 @@
+export interface shareRecipesValue {
+ images?: string,
+ dishNames?: string,
+ classification?: string,
+ foundingUnits?: string,
+ collection?: string,
+ praise?: string
+}
+
+const shareRecipesValueList:shareRecipesValue[] = [
+ {
+ images:'https://file.wy2020.com/admin/weiyi/img/vip/nutri/dish/cbf28b18d47a4c378ad7c702dc9da6f8_1280w_956h.jpg',
+ dishNames:' 宫保鸡丁',
+ classification:'菜系',
+ foundingUnits:'某某学校单位A',
+ collection:'255',
+ praise:'1450'
+ },
+ {
+ images:'https://file.wy2020.com/admin/weiyi/img/vip/nutri/dish/cbf28b18d47a4c378ad7c702dc9da6f8_1280w_956h.jpg',
+ dishNames:'辣椒炒肉',
+ classification:'菜系',
+ foundingUnits:'某某学校单位B',
+ collection:'255',
+ praise:'1450'
+ },
+ {
+ images:'https://file.wy2020.com/admin/weiyi/img/vip/nutri/dish/cbf28b18d47a4c378ad7c702dc9da6f8_1280w_956h.jpg',
+ dishNames:' 番茄炖牛腩',
+ classification:'菜系',
+ foundingUnits:'某某学校单位C',
+ collection:'255',
+ praise:'1450'
+ },
+ {
+ images:'https://file.wy2020.com/admin/weiyi/img/vip/nutri/dish/cbf28b18d47a4c378ad7c702dc9da6f8_1280w_956h.jpg',
+ dishNames:' 番茄炒鸡蛋',
+ classification:'菜系',
+ foundingUnits:'某某学校单位D',
+ collection:'255',
+ praise:'1450'
+ }
+]
+
+export default shareRecipesValueList
\ No newline at end of file
diff --git a/src/views/shareRecipes/index.vue b/src/views/shareRecipes/index.vue
index 84537e8..6030b73 100644
--- a/src/views/shareRecipes/index.vue
+++ b/src/views/shareRecipes/index.vue
@@ -1,9 +1,152 @@
- 共享食谱
+
-