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
da4f6ce2
Commit
da4f6ce2
authored
Apr 28, 2025
by
gengchunlei
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'chronic-dev' of
http://gitlab.yiboshi.com/nightkis1995/frontend-h5
into chronic-dev
Conflicts: src/doctor/Doctor.vue
parents
8079e7d3
79838b62
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
base.js
src/api/base.js
+4
-0
BloodPressure.vue
src/doctor/components/bloodPressure/BloodPressure.vue
+3
-2
No files found.
src/api/base.js
View file @
da4f6ce2
...
@@ -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
}
})
}
src/doctor/components/bloodPressure/BloodPressure.vue
View file @
da4f6ce2
...
@@ -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
)
}
}
...
...
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