| | |
| | | async function createWindow() { |
| | | win = new BrowserWindow({ |
| | | title: 'Main window', |
| | | fullscreen: false, |
| | | // autoHideMenuBar:true, |
| | | fullscreen: true,// 开启默认全屏 |
| | | // autoHideMenuBar:true, //关闭菜单栏 |
| | | webPreferences: { |
| | | preload: splash, |
| | | nodeIntegration: true, |
| | |
| | | { |
| | | "name": "sign-tool", |
| | | "version": "2.4.0", |
| | | "version": "2.5.0", |
| | | "icon": "public/favicon.ico", |
| | | "main": "dist/electron/main/index.js", |
| | | "author": "", |
| | |
| | | |
| | | const connect=()=> { |
| | | const cong=confingInfoStore().confingInfo |
| | | console.log('获取congf',cong.faceRecogServicePort,cong.faceRecogServiceUrl) |
| | | client.connect({ |
| | | port:cong.faceRecogServicePort, |
| | | host:cong.faceRecogServiceUrl |
| | | }) |
| | | if(cong.isUseFaceRecogService){ |
| | | console.log('获取congf',cong.faceRecogServicePort,cong.faceRecogServiceUrl) |
| | | client.connect({ |
| | | port:cong.faceRecogServicePort, |
| | | host:cong.faceRecogServiceUrl |
| | | }) |
| | | }else{ |
| | | console.log('不启用人脸识别') |
| | | } |
| | | |
| | | } |
| | | |
| | | function launchIntervalConnect() { |
| | |
| | | stompClient.subscribe(`/queue/patient/info/${pcName}`,PatientCallback) |
| | | // 订阅配置文件事件已经弃用 现在不用更新本地配置文件了 |
| | | // stompClient.subscribe(`/queue/workstation/config/set/${clientCode}/${pcName}`,configCallback) |
| | | devices.forEach(el=>{ |
| | | if(stompClient!==null) |
| | | stompClient.subscribe(`/queue/${clientCode}/${el.deviceName}/result`,callback) |
| | | }) |
| | | // 发送配置文件到服务端 |
| | | stompClient.send(`/app/workstation/config/set/${clientCode}/${pcName}`,{}, |
| | | JSON.stringify(config)) |
| | |
| | | </el-row> |
| | | <el-row class="divbody"> |
| | | <div class="bodeText"> |
| | | {{ gao_ya }}/{{ di_ya }} |
| | | <br/>{{mai_bu}} |
| | | {{ Number(gao_ya) }}/{{ Number(di_ya) }} |
| | | <br/>{{Number(mai_bu)}} |
| | | </div> |
| | | </el-row> |
| | | </div> |