Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
epidemic
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
史锦峰
epidemic
Commits
ba765a3e
Commit
ba765a3e
authored
5 years ago
by
sjf1256754123
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demo
parent
79ea1e7e
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1539 additions
and
449 deletions
+1539
-449
fillIn.vue
pages/fillIn/fillIn.vue
+1506
-440
security.vue
pages/security/security.vue
+33
-9
No files found.
pages/fillIn/fillIn.vue
View file @
ba765a3e
This diff is collapsed.
Click to expand it.
pages/security/security.vue
View file @
ba765a3e
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<view
v-show=
"abnormalFlag"
>
<view
v-show=
"abnormalFlag"
>
<view
class=
"cu-form-group"
>
<view
class=
"cu-form-group"
>
<view
class=
"title"
>
体温值:
</view>
<view
class=
"title"
>
体温值:
</view>
<input
class=
"text-left"
placeholder=
"请输入体温"
type=
"number"
:value=
"temperature"
name=
"input"
@
input=
"updateInputVal($event,'temperature
')"
></input>
<input
class=
"text-left"
type=
"number"
:value=
"form['heat']"
name=
"input"
@
input=
"updateInputVal($event,'heat
')"
></input>
</view>
</view>
<view
class=
"btnList"
style=
"padding-top: 55upx;"
>
<view
class=
"btnList"
style=
"padding-top: 55upx;"
>
<button
class=
"btnSubmit"
type=
"primary"
@
click=
"submit"
>
提交
</button>
<button
class=
"btnSubmit"
type=
"primary"
@
click=
"submit"
>
提交
</button>
...
@@ -24,6 +24,11 @@
...
@@ -24,6 +24,11 @@
name
:
"
home
"
,
name
:
"
home
"
,
data
()
{
data
()
{
return
{
return
{
form
:{
heat
:
''
,
heatNomal
:
-
1
,
userId
:
''
},
temperature
:
''
,
temperature
:
''
,
abnormalFlag
:
false
abnormalFlag
:
false
};
};
...
@@ -35,10 +40,18 @@
...
@@ -35,10 +40,18 @@
methods
:
{
methods
:
{
// 体温正常
// 体温正常
normal
()
{
normal
()
{
uni
.
showToast
({
this
.
form
.
heatNomal
=
0
icon
:
'
success
'
,
this
.
form
.
userId
=
this
.
$store
.
state
.
user
.
userInfo
.
id
title
:
"
允许通行!
"
this
.
form
.
heat
=
''
this
.
$http
.
post
(
`/sict-ncov/report/daily/heat`
,
this
.
form
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
console
.
log
(
d
)
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
},
},
// 体温异常
// 体温异常
abnormal
()
{
abnormal
()
{
...
@@ -46,13 +59,24 @@
...
@@ -46,13 +59,24 @@
},
},
// 更新输入框绑定的表单内容
// 更新输入框绑定的表单内容
updateInputVal
(
event
,
props
)
{
updateInputVal
(
event
,
props
)
{
this
.
temperature
=
event
.
target
.
value
this
.
form
[
props
]
=
event
.
target
.
value
},
},
// 提交异常体温
// 提交异常体温
submit
(){
submit
(){
uni
.
showToast
({
this
.
form
.
heatNomal
=
this
.
form
.
heat
<
37.2
?
0
:
1
icon
:
'
none
'
,
this
.
form
.
userId
=
this
.
$store
.
state
.
user
.
userInfo
.
id
title
:
"
提交异常体温!
"
console
.
log
(
this
.
form
)
// uni.showToast({
// icon: 'none',
// title: "提交异常体温!"
// })
this
.
$http
.
post
(
`/sict-ncov/report/daily/heat`
,
this
.
form
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
console
.
log
(
d
)
}
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
}
}
}
}
...
@@ -67,7 +91,7 @@
...
@@ -67,7 +91,7 @@
width
:
100vw
;
width
:
100vw
;
background-color
:
#24A1E3
;
background-color
:
#24A1E3
;
.btnList
{
.btnList
{
padding-top
:
30
5upx
;
padding-top
:
23
5upx
;
.btnNormal
,
.btnAbnormal
,
.btnSubmit
{
.btnNormal
,
.btnAbnormal
,
.btnSubmit
{
background-color
:
#92d0f1
;
background-color
:
#92d0f1
;
color
:
#FFFFFF
;
color
:
#FFFFFF
;
...
...
This diff is collapsed.
Click to expand it.
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