Commit da4f6ce2 authored by gengchunlei's avatar gengchunlei

Merge branch 'chronic-dev' of http://gitlab.yiboshi.com/nightkis1995/frontend-h5 into chronic-dev

 Conflicts:
	src/doctor/Doctor.vue
parents 8079e7d3 79838b62
...@@ -60,4 +60,8 @@ export function getPressureDevices(unitId) { ...@@ -60,4 +60,8 @@ export function getPressureDevices(unitId) {
export function getPressureData(deviceNo) { export function getPressureData(deviceNo) {
return fetchBase({ url: '/chronic-admin/v1/base-info/list-blood', body: { deviceNo } }) return fetchBase({ url: '/chronic-admin/v1/base-info/list-blood', body: { deviceNo } })
} }
// 血压计-触发仪器开始测量
export function startPressureData(deviceNo) {
return fetchBase({ url: '/chronic-admin/v1/base-info/start-message', body: { deviceNo } })
}
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
</template> </template>
<script> <script>
import { getPressureDevices, getPressureData } from '@/api/base.js' import { getPressureDevices, getPressureData, startPressureData } from '@/api/base.js'
import { useStore } from '@/doctor/store/index.js' import { useStore } from '@/doctor/store/index.js'
import { showToast } from 'vant' import { showToast } from 'vant'
import dayjs from 'dayjs' import dayjs from 'dayjs'
...@@ -75,7 +75,8 @@ export default { ...@@ -75,7 +75,8 @@ export default {
this.loadDevice() this.loadDevice()
} }
// 获取测量值 // 获取测量值
this.pressureObj.getValue = (cb) => { this.pressureObj.getValue = async(cb) => {
await startPressureData(this.deviceNo)
this.valueTime = dayjs() this.valueTime = dayjs()
this.loadValue(cb) this.loadValue(cb)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment