Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
frontend-h5
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
songrui
frontend-h5
Commits
79838b62
Commit
79838b62
authored
Mar 21, 2025
by
芮自成
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增血压计开始测量接口
parent
1eaa4c1e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
base.js
src/api/base.js
+4
-0
Doctor.vue
src/doctor/Doctor.vue
+1
-1
BloodPressure.vue
src/doctor/components/bloodPressure/BloodPressure.vue
+3
-2
No files found.
src/api/base.js
View file @
79838b62
...
...
@@ -60,4 +60,8 @@ export function getPressureDevices(unitId) {
export
function
getPressureData
(
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
}
})
}
src/doctor/Doctor.vue
View file @
79838b62
...
...
@@ -66,7 +66,7 @@ export default {
if
(
!
token
)
{
token
=
sessionStorage
.
getItem
(
'token'
)
if
(
process
.
env
.
NODE_ENV
!==
'production'
)
{
token
=
'
41c17a67-ba9d-4d08-9696-96c2f25f037a
'
token
=
'
e0356b6a-7cfd-4b83-8cc8-9951205ac990
'
}
}
if
(
token
)
{
...
...
src/doctor/components/bloodPressure/BloodPressure.vue
View file @
79838b62
...
...
@@ -28,7 +28,7 @@
</
template
>
<
script
>
import
{
getPressureDevices
,
getPressureData
}
from
'@/api/base.js'
import
{
getPressureDevices
,
getPressureData
,
startPressureData
}
from
'@/api/base.js'
import
{
useStore
}
from
'@/doctor/store/index.js'
import
{
showToast
}
from
'vant'
import
dayjs
from
'dayjs'
...
...
@@ -75,7 +75,8 @@ export default {
this
.
loadDevice
()
}
// 获取测量值
this
.
pressureObj
.
getValue
=
(
cb
)
=>
{
this
.
pressureObj
.
getValue
=
async
(
cb
)
=>
{
await
startPressureData
(
this
.
deviceNo
)
this
.
valueTime
=
dayjs
()
this
.
loadValue
(
cb
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment