chenyc
2025-12-09 a7fb2f5eab3e548f040004c1019f1c994eb91ad4
src/stores/StoresConfing.ts
@@ -2,20 +2,46 @@
import { ref } from 'vue'
export const confingInfoStore =defineStore('confingInfo',()=>{
    const confingInfo=ref({
        clientCode:"",//客户端编号
        isLanFace:false,//内网版
        faceType:"百度",//人脸识别类型  baidu 阿里云
        faceApi:'',
        screenTimeout: 150,
        // 启用人脸识别
        isUseFaceRecogService: true,
        deviceType:"体重秤",
        deviceType:"血压计",
        face_database:"Face_jq",
        // 数据准度
        face_score:0.55,
        //结果展示等待页面读秒
        timeJg:10000,
        base_api:"",
        // 人脸识别请求间隔
        face_push:3,
        imgHeight:200,
        // 播报定时间隔
        BobaoJg:4,
        beginWorkTime:5,
       endWorkTime:22,
        // 默认显示床号 开启就显示干体重
        gantiziShow:false,
        Is_ce_wen:false,
        portPath:'COM5',
        baudRate:115200,
        Is_xyj:false,
        Is_xyj:true,
        xyj_type:'mbp7000',
        // HBP-9030 波特率115200 ,TM2655 波特率 2400   mbp7000 波特率9600   yuyue 波特率115300
        xueyanjiPortPath:"COM35",
        xueyanjiBaudRate:115200
        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体重秤有效  检验体重秤多次数据相等就传送
        isHiddenActuallyClliang:false,// 是否显示实际测量值
        
    })
    /**
@@ -23,7 +49,21 @@
     * @param roleText 配置文件设置 
     */
    function setconfingInfo(info:any){
        if(info.gantiziShow===undefined){
            info.gantiziShow=false
        }
        confingInfo.value=info
        // 给默认值
        if(info.BobaoJg===undefined){
            confingInfo.value.BobaoJg=10
        }
        //
        if(info.isLanFace===undefined){
            confingInfo.value.isLanFace=false
        }
        if(info.faceType===undefined){
            confingInfo.value.faceType="阿里云"
        }
    }
    return {confingInfo,setconfingInfo}
})