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
a48c15db
Commit
a48c15db
authored
Feb 16, 2020
by
sjf1256754123
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.9.163.126/gitlab/jinfeng/epidemic
parents
7af2e713
c352f13f
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
106 additions
and
328 deletions
+106
-328
fillIn.vue
pages/fillIn/fillIn.vue
+67
-319
fillInDay.vue
pages/fillInDay/fillInDay.vue
+39
-9
No files found.
pages/fillIn/fillIn.vue
View file @
a48c15db
This diff is collapsed.
Click to expand it.
pages/fillInDay/fillInDay.vue
View file @
a48c15db
<
template
>
<
template
>
<view
class=
"questionnaire"
>
<view
class=
"questionnaire"
>
<form
@
submit=
"formSubmit"
>
<form
@
submit=
"formSubmit"
>
...
@@ -7,7 +6,7 @@
...
@@ -7,7 +6,7 @@
<view
class=
"margin-top padding sict-label"
:key=
"item.value"
v-show=
"!item.hidden"
>
<view
class=
"margin-top padding sict-label"
:key=
"item.value"
v-show=
"!item.hidden"
>
<view
v-show=
"!item.hidden"
>
<view
v-show=
"!item.hidden"
>
<span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
:style=
"
{opacity: item.required ? 1 : 0}">*
</span>
<span
style=
"color:red;display: inline-block; vertical-align:inherit;margin-right:4upx"
:style=
"
{opacity: item.required ? 1 : 0}">*
</span>
{{
item
.
label
}}
{{
item
.
label
}}
</view>
</view>
<view
class=
"text-right sict-value"
v-show=
"!item.hidden"
>
<view
class=
"text-right sict-value"
v-show=
"!item.hidden"
>
<radio-group
@
change=
"showChange($event,item)"
>
<radio-group
@
change=
"showChange($event,item)"
>
...
@@ -395,7 +394,7 @@
...
@@ -395,7 +394,7 @@
hidden
:
true
hidden
:
true
},
},
{
{
label
:
'
症状
'
,
label
:
'
当日
症状
'
,
required
:
true
,
required
:
true
,
value
:
'
symptom
'
,
value
:
'
symptom
'
,
titleClass
:
'
title
'
,
titleClass
:
'
title
'
,
...
@@ -432,7 +431,7 @@
...
@@ -432,7 +431,7 @@
label
:
'
以上均无
'
label
:
'
以上均无
'
}]
}]
},
},
{
{
label
:
'
是否离沪
'
,
label
:
'
是否离沪
'
,
required
:
true
,
required
:
true
,
...
@@ -668,7 +667,38 @@
...
@@ -668,7 +667,38 @@
}
}
},
},
onLoad
(
option
)
{},
onLoad
(
option
)
{
// 获取信息
this
.
$http
.
post
(
`/sict-ncov/report`
,
this
.
form
).
then
(
res
=>
{
console
.
log
(
res
)
})
const
data
=
{
currentStatus
:
'
亲密接触者
'
}
for
(
let
k
in
data
)
{
const
val
=
data
[
k
]
if
(
val
)
{
const
item
=
this
.
list
.
find
(
child
=>
child
.
value
==
k
)
if
(
item
)
{
this
.
showChange
({
value
:
val
},
item
)
if
(
item
.
type
==
"
pickerMore
"
)
{
console
.
log
(
1
,
22
)
item
.
opts
.
forEach
(
opt
=>
{
val
.
split
(
'
,
'
).
forEach
(
v
=>
{
if
(
v
===
opt
.
label
)
{
console
.
log
(
opt
)
this
.
$set
(
opt
,
'
checked
'
,
true
)
}
})
})
}
}
}
}
},
methods
:
{
methods
:
{
...
@@ -710,7 +740,7 @@
...
@@ -710,7 +740,7 @@
const
prop
=
item
.
value
const
prop
=
item
.
value
const
type
=
item
.
type
const
type
=
item
.
type
if
(
type
===
'
radio
'
)
{
if
(
type
===
'
radio
'
)
{
const
val
=
evt
.
target
.
value
const
val
=
evt
.
value
||
evt
.
target
.
value
this
.
$set
(
this
.
form
,
prop
,
val
)
this
.
$set
(
this
.
form
,
prop
,
val
)
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
const
current
=
this
.
list
[
i
]
const
current
=
this
.
list
[
i
]
...
@@ -727,7 +757,7 @@
...
@@ -727,7 +757,7 @@
}
}
// 复选框展示和隐藏
// 复选框展示和隐藏
if
(
type
===
'
pickerMore
'
)
{
if
(
type
===
'
pickerMore
'
)
{
let
val
=
evt
.
detail
.
value
;
let
val
=
evt
.
value
||
evt
.
detail
.
value
;
const
showList
=
item
.
showList
const
showList
=
item
.
showList
if
(
showList
&&
showList
.
length
>
0
)
{
if
(
showList
&&
showList
.
length
>
0
)
{
showList
.
forEach
(
item
=>
{
showList
.
forEach
(
item
=>
{
...
@@ -795,11 +825,11 @@
...
@@ -795,11 +825,11 @@
this
.
$http
.
post
(
`/sict-ncov/report/daily`
,
this
.
form
).
then
(
res
=>
{
this
.
$http
.
post
(
`/sict-ncov/report/daily`
,
this
.
form
).
then
(
res
=>
{
const
d
=
res
.
data
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
if
(
d
.
code
==
1
)
{
uni
.
navigateBack
()
uni
.
navigateBack
()
uni
.
showToast
({
uni
.
showToast
({
icon
:
'
success
'
,
icon
:
'
success
'
,
title
:
'
提交成功
'
title
:
'
提交成功
'
})
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
...
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