From 1eb000b9b8ba5d2c481bd2ba6a852c9f5de161eb Mon Sep 17 00:00:00 2001
From: chenyc <501753378@qq.com>
Date: 星期一, 22 一月 2024 13:48:09 +0800
Subject: [PATCH] 更新ui
---
src/stores/StoresConfing.ts | 39 ++++++++++++++++++++++++++++++++++++---
1 files changed, 36 insertions(+), 3 deletions(-)
diff --git a/src/stores/StoresConfing.ts b/src/stores/StoresConfing.ts
index ce88aa2..23190e9 100644
--- a/src/stores/StoresConfing.ts
+++ b/src/stores/StoresConfing.ts
@@ -1,13 +1,46 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const confingInfoStore =defineStore('confingInfo',()=>{
- const confingInfo=ref({})
+ const confingInfo=ref({
+ screenTimeout: 150,
+ isUseFaceRecogService: true,
+ deviceType:"血压计",
+ face_database:"Face_jq",
+ face_score:0.55,
+ timeJg:10000,
+ base_api:"",
+ face_push:3,
+ // 播报定时
+ BobaoJg:4,
+ beginWorkTime:5,
+ endWorkTime:22,
+ Is_ce_wen:false,
+ portPath:'COM5',
+ baudRate:115200,
+ Is_xyj:true,
+ xyj_type:'mbp7000',
+ // HBP-9030 波特率115200 ,TM2655 波特率 2400 mbp7000 波特率9600
+ xueyanjiPortPath:"COM35",
+ xueyanjiBaudRate:9600,
+ Is_tzc:false,
+ // 志荣的[zhiRongT605];台衡的M523[taiHengM523] //[s]eca101]读文件夹// 耀华XK3190-A12 //台衡M503【M503】
+ tzc_type:"seca101",
+ tzcPortPath:"COM34",
+ tzcBaudRate:9600,// zhiRongT605波特率1200;台衡523波特率9600, 耀华XK3190-A12 9600 耀华XK3190-A11E 1200 //M503 9600
+ seca101Path:"D:/seca101/data/",//该参数只对体重秤 赛康101 文件获取目录,
+ jianyancishu:4,// 该参数只对耀华XK3190-A12体重秤有效 检验体重秤多次数据相等就传送
+
+ })
/**
- * 更新用户选择角色
- * @param roleText 角色名称
+ * 更新配置文件设置
+ * @param roleText 配置文件设置
*/
function setconfingInfo(info:any){
confingInfo.value=info
+ // 给默认值
+ if(info.BobaoJg===undefined){
+ confingInfo.value.BobaoJg=4
+ }
}
return {confingInfo,setconfingInfo}
})
\ No newline at end of file
--
Gitblit v1.8.0