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
07cb8da2
Commit
07cb8da2
authored
5 years ago
by
sjf1256754123
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://139.9.163.126/gitlab/jinfeng/epidemic
parents
3d0454d9
ca6ea0bf
No related merge requests found
Changes
4
Expand all
Show 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 @
07cb8da2
...
@@ -17,6 +17,10 @@
...
@@ -17,6 +17,10 @@
"path"
:
"pages/security/security"
,
"path"
:
"pages/security/security"
,
"style"
:
{}
"style"
:
{}
}
}
,{
"path"
:
"pages/fillInDay/fillInDay"
,
"style"
:
{}
}
],
],
"globalStyle"
:
{
"globalStyle"
:
{
"navigationBarTextStyle"
:
"white"
,
"navigationBarTextStyle"
:
"white"
,
...
...
This diff is collapsed.
Click to expand it.
pages/fillIn/fillIn.vue
View file @
07cb8da2
...
@@ -100,7 +100,7 @@
...
@@ -100,7 +100,7 @@
<view
class=
"cu-form-group margin-top-sm"
>
<view
class=
"cu-form-group margin-top-sm"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"uni-padding-wrap uni-common-mt"
>
<view
class=
"padding-top padding-bottom"
>
<view
class=
"padding-top padding-bottom"
>
<checkbox-group
@
click=
"openModal"
>
<checkbox-group
@
click=
"openModal"
>
<label>
<label>
<checkbox
value=
"A"
:checked=
"form.agree == '1'"
class=
"fl"
style=
"margin-top:4upx"
/>
<checkbox
value=
"A"
:checked=
"form.agree == '1'"
class=
"fl"
style=
"margin-top:4upx"
/>
...
@@ -1611,12 +1611,12 @@
...
@@ -1611,12 +1611,12 @@
}],
}],
showList
:
[{
showList
:
[{
value
:
'
亲密接触者
'
,
value
:
'
亲密接触者
'
,
show
:
'
32,48
'
show
:
[
32
,
35
,
38
,
40
,
43
,
45
,
47
]
},
},
{
{
value
:
'
居家观察/正在接受集中医学观察
'
,
value
:
'
居家观察/正在接受集中医学观察
'
,
show
:
'
49,50
'
,
show
:
[
49
,
50
]
},
},
]
]
},
},
...
@@ -1921,10 +1921,10 @@
...
@@ -1921,10 +1921,10 @@
methods
:
{
methods
:
{
openModal
()
{
openModal
()
{
if
(
!
this
.
form
.
agree
)
{
if
(
!
this
.
form
.
agree
)
{
this
.
form
.
agree
=
'
1
'
this
.
form
.
agree
=
'
1
'
this
.
modalName
=
true
this
.
modalName
=
true
}
else
{
}
else
{
this
.
form
.
agree
=
0
this
.
form
.
agree
=
0
}
}
...
@@ -1977,7 +1977,7 @@
...
@@ -1977,7 +1977,7 @@
this
.
$set
(
checkList
[
checkList
.
length
-
1
],
'
checked
'
,
false
)
this
.
$set
(
checkList
[
checkList
.
length
-
1
],
'
checked
'
,
false
)
const
values
=
[]
const
values
=
[]
for
(
var
i
=
0
,
lenI
=
checkList
.
length
;
i
<
lenI
;
++
i
)
{
for
(
var
i
=
0
,
lenI
=
checkList
.
length
;
i
<
lenI
;
++
i
)
{
if
(
checkList
[
i
].
checked
)
{
if
(
checkList
[
i
].
checked
)
{
values
.
push
(
checkList
[
i
].
label
)
values
.
push
(
checkList
[
i
].
label
)
}
}
}
}
...
@@ -2011,23 +2011,17 @@
...
@@ -2011,23 +2011,17 @@
}
}
// 复选框展示和隐藏
// 复选框展示和隐藏
if
(
type
===
'
pickerMore
'
)
{
if
(
type
===
'
pickerMore
'
)
{
const
nullList
=
[
'
无上述情况
'
,
'
以上均无
'
]
const
checkList
=
item
.
opts
let
val
=
evt
.
detail
.
value
;
let
val
=
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
=>
{
const
start
=
+
item
.
show
.
split
(
'
,
'
)[
0
]
item
.
show
.
forEach
(
child
=>
{
const
end
=
+
item
.
show
.
split
(
'
,
'
)[
1
]
for
(
let
i
=
start
,
lenI
=
end
;
i
<=
end
;
i
++
)
{
this
.
list
.
forEach
(
row
=>
{
this
.
list
.
forEach
(
row
=>
{
if
(
i
==
row
.
num
)
{
if
(
child
==
row
.
num
)
{
this
.
$set
(
row
,
'
hidden
'
,
!
val
.
includes
(
item
.
value
))
this
.
$set
(
row
,
'
hidden
'
,
!
val
.
includes
(
item
.
value
))
}
}
})
})
}
})
})
})
}
}
...
@@ -2074,7 +2068,7 @@
...
@@ -2074,7 +2068,7 @@
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
this
.
list
.
length
;
i
++
)
{
if
(
this
.
list
[
i
].
required
)
{
if
(
this
.
list
[
i
].
required
)
{
const
val
=
this
.
form
[
this
.
list
[
i
].
value
]
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
flag
=
false
uni
.
showToast
({
uni
.
showToast
({
icon
:
'
none
'
,
icon
:
'
none
'
,
...
@@ -2091,10 +2085,10 @@
...
@@ -2091,10 +2085,10 @@
if
(
!
flag
)
{
if
(
!
flag
)
{
return
false
return
false
}
else
{
}
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
const
d
=
res
.
data
if
(
d
.
code
==
1
)
{
if
(
d
.
code
==
1
)
{
uni
.
navigateBack
()
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
icon
:
'
none
'
,
icon
:
'
none
'
,
...
...
This diff is collapsed.
Click to expand it.
pages/fillInDay/fillInDay.vue
0 → 100644
View file @
07cb8da2
This diff is collapsed.
Click to expand it.
pages/index/index.vue
View file @
07cb8da2
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<view
class=
"btnList"
>
<view
class=
"btnList"
>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
员工填报
</button>
<button
class=
"btnStaff"
type=
"primary"
@
click=
"staff"
>
员工填报
</button>
<button
class=
"btnSecurity"
type=
"primary"
@
click=
"security"
>
安保测温
</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>
<image
class=
"img"
src=
"../../static/22.jpg"
mode=
""
></image>
{{
option
.
userId
?
option
.
userId
:
'
无
'
}}
{{
option
.
userId
?
option
.
userId
:
'
无
'
}}
<view
class=
"tips"
>
<view
class=
"tips"
>
...
@@ -58,6 +59,12 @@
...
@@ -58,6 +59,12 @@
url
:
`/pages/security/security`
url
:
`/pages/security/security`
})
})
},
},
fillInDay
()
{
console
.
log
(
232
)
uni
.
navigateTo
({
url
:
`/pages/fillInDay/fillInDay`
})
},
// 获取用户信息
// 获取用户信息
getUserInfo
(
code
)
{
getUserInfo
(
code
)
{
this
.
$http
.
post
(
`/sict-ncov/user/auth?code=
${
code
}
`
).
then
(
res
=>
{
this
.
$http
.
post
(
`/sict-ncov/user/auth?code=
${
code
}
`
).
then
(
res
=>
{
...
@@ -89,7 +96,7 @@
...
@@ -89,7 +96,7 @@
background-size
:
cover
;
background-size
:
cover
;
background-image
:
url('http://139.9.163.126/gastric/static/background.jpg')
;
background-image
:
url('http://139.9.163.126/gastric/static/background.jpg')
;
.btnList
{
.btnList
{
padding-top
:
43
5upx
;
padding-top
:
35
5upx
;
.btnStaff
,
.btnSecurity
{
.btnStaff
,
.btnSecurity
{
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