chenyincheng
2023-01-07 2510046e4e09c929cdb0d5adcecde62fd3a20cf4
更新外网订阅
5个文件已修改
29 ■■■■■ 已修改文件
electron/main/index.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/samples/socketClient.ts 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/samples/sockteStomp.ts 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
electron/main/index.ts
@@ -66,8 +66,8 @@
async function createWindow() {
  win = new BrowserWindow({
    title: 'Main window',
    fullscreen: false,
    // autoHideMenuBar:true,
    fullscreen: true,// 开启默认全屏
    // autoHideMenuBar:true, //关闭菜单栏
    webPreferences: {
      preload: splash,
      nodeIntegration: true,
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.4.0",
  "version": "2.5.0",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/samples/socketClient.ts
@@ -8,11 +8,16 @@
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() {
src/samples/sockteStomp.ts
@@ -178,6 +178,10 @@
        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))
src/views/home/index.vue
@@ -436,8 +436,8 @@
            </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>