Forráskód Böngészése

健康监测-新增设备

hd 1 hónapja
szülő
commit
90293ca48b
1 módosított fájl, 21 hozzáadás és 17 törlés
  1. 21 17
      app/rehabilitation/html/healthMonitor.html

+ 21 - 17
app/rehabilitation/html/healthMonitor.html

@ -237,20 +237,20 @@
            const vm = this
            httpRequest.get('doctor/health_index/last', { data: { patient: this.patient } }).then(function (res) {
              vm.bodyData = res.data
              
              vm.getXtType(res.data.xt)
            })
          },
          getDeviceList() {
            const vm = this
            httpRequest.get('doctor/device/PatientDeviceList', { data: { page: 1, pagesize: 100, patient: this.patient } }).then(function (res) {
              vm.deviceList = res.data.map(function(item){
              vm.deviceList = res.data.map(function (item) {
                var bindUser = '患者绑定'
                if (!!item.doctor) {
                  bindUser = item.doctorName
                }
                item.people = bindUser
                return{
                return {
                  ...item,
                  people: bindUser
                }
@ -259,10 +259,10 @@
          },
          getHealthProtect() {
            const vm = this
            
            httpRequest.get('doctor/health_record/recent', { data: { patient: this.patient } }).then(function (res) {
              const healthProtect = res.data
              
              for (let i in healthProtect) {
                switch (i) {
                  case 'sprot':
@ -282,14 +282,14 @@
                    break
                }
              }
              
              vm.$forceUpdate()
            })
          },
          getBJRecordType(isDevice) {
            return isDevice === 0 ? '手动记录' : isDevice == 1 ? '设备上传' : ''
          },
          openBodyRecordDetail(key,time) {
          openBodyRecordDetail(key, time) {
            var title = ''
            switch (key) {
              case 0:
@ -308,7 +308,7 @@
                title = '心率'
                break
            }
            
            top.layer.open({
              type: 2,
              area: ['700px', '700px'],
@ -322,7 +322,7 @@
              content: `../../rehabilitation/html/healthBodyRecord.html?key=${key}&patient=${this.patient}&time=${time.substring(0, 10)}`
            })
          },
          openHealthProtectDetail(key,time) {
          openHealthProtectDetail(key, time) {
            var title = ''
            switch (key) {
              case 0:
@ -349,6 +349,7 @@
            })
          },
          addDevice() {
            var vm = this
            top.layer.open({
              type: 2,
              area: ['700px', '700px'],
@ -359,23 +360,26 @@
              closeBtn: 1,
              // shift: 5,
              shadeClose: false, //点击遮罩关闭层
              content: '../../rehabilitation/html/device.html?patient=' + this.patient
              content: '../../rehabilitation/html/device.html?patient=' + this.patient,
              end: function () {
                vm.getDeviceList()
              }
            })
          },
          openDeviceDetail(item){
            if(item.categoryCode=='11'){
          openDeviceDetail(item) {
            if (item.categoryCode == '11') {
              return
            }
            var title = ""
            switch(item.categoryCode){
            var title = ''
            switch (item.categoryCode) {
              case '2':
                title = "血压计"
                title = '血压计'
                break
              case '4':
                title = "智能手表"
                title = '智能手表'
                break
              case '1':
                title = "血糖仪"
                title = '血糖仪'
                break
            }
            top.layer.open({