Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
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
e8161ade
You need to sign in or sign up before continuing.
Commit
e8161ade
authored
Feb 16, 2020
by
lrw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加每日填报
parent
01df31be
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2243 additions
and
21 deletions
+2243
-21
pages.json
pages.json
+4
-0
fillIn.vue
pages/fillIn/fillIn.vue
+14
-20
fillInDay.vue
pages/fillInDay/fillInDay.vue
+2217
-0
index.vue
pages/index/index.vue
+8
-1
No files found.
pages.json
View file @
e8161ade
...
...
@@ -17,6 +17,10 @@
"path"
:
"pages/security/security"
,
"style"
:
{}
}
,{
"path"
:
"pages/fillInDay/fillInDay"
,
"style"
:
{}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
...
...
pages/fillIn/fillIn.vue
View file @
e8161ade
...
...
@@ -100,8 +100,8 @@
<view
class=
"cu-form-group margin-top-sm"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"padding-top padding-bottom"
>
<checkbox-group
@
click=
"openModal"
>
<view
class=
"padding-top padding-bottom"
>
<checkbox-group
@
click=
"openModal"
>
<label>
<checkbox
value=
"A"
:checked=
"form.agree == '1'"
class=
"fl"
style=
"margin-top:4upx"
/>
<view
style=
"padding-left:60upx;padding-top:6upx"
>
...
...
@@ -1611,12 +1611,12 @@
}],
showList
:
[{
value
:
'
亲密接触者
'
,
show
:
'
32,48
'
show
:
[
32
,
35
,
38
,
40
,
43
,
45
,
47
]
},
{
value
:
'
居家观察/正在接受集中医学观察
'
,
show
:
'
49,50
'
,
show
:
[
49
,
50
]
},
]
},
...
...
@@ -1921,13 +1921,13 @@
methods
:
{
openModal
()
{
if
(
!
this
.
form
.
agree
)
{
if
(
!
this
.
form
.
agree
)
{
this
.
form
.
agree
=
'
1
'
this
.
modalName
=
true
}
else
{
}
else
{
this
.
form
.
agree
=
0
}
},
getOrg
()
{
const
data
=
{
...
...
@@ -1977,7 +1977,7 @@
this
.
$set
(
checkList
[
checkList
.
length
-
1
],
'
checked
'
,
false
)
const
values
=
[]
for
(
var
i
=
0
,
lenI
=
checkList
.
length
;
i
<
lenI
;
++
i
)
{
if
(
checkList
[
i
].
checked
)
{
if
(
checkList
[
i
].
checked
)
{
values
.
push
(
checkList
[
i
].
label
)
}
}
...
...
@@ -2012,23 +2012,17 @@
// 复选框展示和隐藏
if
(
type
===
'
pickerMore
'
)
{
console
.
log
(
evt
)
const
nullList
=
[
'
无上述情况
'
,
'
以上均无
'
]
const
checkList
=
item
.
opts
let
val
=
evt
.
detail
.
value
;
const
showList
=
item
.
showList
if
(
showList
&&
showList
.
length
>
0
)
{
showList
.
forEach
(
item
=>
{
const
start
=
+
item
.
show
.
split
(
'
,
'
)[
0
]
const
end
=
+
item
.
show
.
split
(
'
,
'
)[
1
]
for
(
let
i
=
start
,
lenI
=
end
;
i
<=
end
;
i
++
)
{
item
.
show
.
forEach
(
child
=>
{
this
.
list
.
forEach
(
row
=>
{
if
(
i
==
row
.
num
)
{
if
(
child
==
row
.
num
)
{
this
.
$set
(
row
,
'
hidden
'
,
!
val
.
includes
(
item
.
value
))
}
})
}
})
})
}
...
...
@@ -2078,7 +2072,7 @@
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
if
(
this
.
list
[
i
].
required
)
{
const
val
=
this
.
form
[
this
.
list
[
i
].
value
]
if
(
(
!
val
||
val
==
-
1
)
&&
!
this
.
list
[
i
].
hidden
)
{
if
(
!
val
&&
!
this
.
list
[
i
].
hidden
&&
this
.
list
[
i
].
required
)
{
flag
=
false
uni
.
showToast
({
icon
:
'
none
'
,
...
...
@@ -2095,10 +2089,10 @@
if
(
!
flag
)
{
return
false
}
else
{
this
.
$http
.
post
(
`/sict-ncov/re
cord
`
,
this
.
form
).
then
(
res
=>
{
this
.
$http
.
post
(
`/sict-ncov/re
port
`
,
this
.
form
).
then
(
res
=>
{
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
uni
.
navigateBack
()
}
else
{
uni
.
showToast
({
icon
:
'
none
'
,
...
...
pages/fillInDay/fillInDay.vue
0 → 100644
View file @
e8161ade
This diff is collapsed.
Click to expand it.
pages/index/index.vue
View file @
e8161ade
...
...
@@ -4,6 +4,7 @@
<view
class=
"btnList"
>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
员工填报
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"security"
>
安保测温
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"fillInDay"
>
每日填报
</button>
<image
class=
"img"
src=
"../../static/22.jpg"
mode=
""
></image>
<view
class=
"tips"
>
入园请向门卫出示健康码
...
...
@@ -50,6 +51,12 @@
url
:
`/pages/security/security`
})
},
fillInDay
()
{
console
.
log
(
232
)
uni
.
navigateTo
({
url
:
`/pages/fillInDay/fillInDay`
})
},
// 获取用户信息
getUserInfo
(
code
)
{
this
.
$http
.
post
(
`/sict-ncov/user/auth?code=
${
code
}
`
).
then
(
res
=>
{
...
...
@@ -81,7 +88,7 @@
background-size
:
cover
;
background-image
:
url('http://139.9.163.126/gastric/static/background.jpg')
;
.btnList
{
padding-top
:
43
5upx
;
padding-top
:
35
5upx
;
.btnStaff
,
.btnSecurity
{
background-color
:
#92d0f1
;
color
:
#FFFFFF
;
...
...
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