Commit 79838b62 authored by 芮自成's avatar 芮自成

新增血压计开始测量接口

parent 1eaa4c1e
...@@ -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 } })
}
...@@ -66,7 +66,7 @@ export default { ...@@ -66,7 +66,7 @@ export default {
if (!token) { if (!token) {
token = sessionStorage.getItem('token') token = sessionStorage.getItem('token')
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
token = '41c17a67-ba9d-4d08-9696-96c2f25f037a' token = 'e0356b6a-7cfd-4b83-8cc8-9951205ac990'
} }
} }
if (token) { if (token) {
......
...@@ -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