chenyc
2024-01-26 d447355e6d08e3a48ea6fd0df132e3120ede6a16
优化细节
3个文件已修改
16 ■■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/samples/deviceApi/mbp7000.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -1,6 +1,6 @@
{
  "name": "sign-tool",
  "version": "2.7.5",
  "version": "2.7.7",
  "icon": "public/favicon.ico",
  "main": "dist/electron/main/index.js",
  "author": "",
src/samples/deviceApi/mbp7000.ts
@@ -36,7 +36,7 @@
        if(value.length>=20){
            sockteStore().setxyjSockte(
                {
                    deviceName:'TM2655VP',
                    deviceName:'mbp7000',
                    type:"血压计",
                    result:value[14]+','+value[16]+','+value[18],
                    resultTime:new Date().toString(),
src/views/home/index.vue
@@ -54,7 +54,9 @@
                        <div style="display: grid;grid-template-columns: minmax(250px, 40%) 1fr; height: 100%; padding-left: 20px;padding-top: 20px;">
                            <!-- 头像 -->
                            <div  :style="{backgroundImage:`url(${patientInfo.patientAvatarIcon})`}" style="background-size:100% 100%;height: 100%;">
                              <div style="width:140px; height: 50px; line-height: 50px; font-size: 25px; background: #DFB144;color: #FFFFFF; font-weight: 500; text-align: center; border-radius: 0px 8px 0px 30px; float: right;">
                                {{patientInfo.name}}
                              </div>
                            </div>
                            <div style="display: grid;place-items: center;font-size: 120px;font-family: AlibabaPuHuiTi, AlibabaPuHuiTi;font-weight: 800;color: #65AAF6;">
                                <template v-if="configData.deviceType==='体重秤'">
@@ -581,7 +583,7 @@
  const xAxisData: any[]=[]
  const series=[
    {
      name: '透前伸缩压',
      name: '透前收缩压',
      type: 'line',
      color:'#E6A23C',
      smooth: true,
@@ -595,7 +597,7 @@
      data: <any>[]
    },
    {
      name: '透后伸缩压',
      name: '透后收缩压',
      type: 'line',
      color:'#606266',
      smooth: true,
@@ -603,7 +605,7 @@
    },{
      name: '透后舒张压',
      type: 'line',
      color:'#E6A23C',
      color:'#F56C6C',
      smooth: true,
      data: []
    }
@@ -619,7 +621,7 @@
        series[2].data.push(e.透后伸缩压)
        series[3].data.push(e.透后舒张压)
      })
      const legendData=['透前伸缩压', '透前舒张压', '透后伸缩压','透后舒张压']
      const legendData=['透前收缩压', '透前舒张压', '透后收缩压','透后舒张压']
      huatu2(series,xAxisData,legendData,'血压趋势图')
    }
  })