Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Sign in
Toggle navigation
X
xzf_uniapp-wechat-web
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
李智书
xzf_uniapp-wechat-web
Commits
82d506a8
Commit
82d506a8
authored
Jul 29, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V1.6.9.1_report_feature' into develop
parents
2a5c403c
dd140543
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+10
-10
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
82d506a8
...
...
@@ -2620,9 +2620,9 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
return
}
this
.
mealPalData
=
data
.
obj
||
[];
this
.
mealPalArr
=
this
.
mealPalData
.
map
(
v
=>
v
.
mealpalname
.
slice
(
0
,
1
)
+
'
**
'
);
this
.
mealPalStr
=
this
.
mealPalArr
.
join
(
'
、
'
)
;
this
.
mealPalArr
=
this
.
mealPalData
.
length
?
this
.
mealPalData
.
map
(
v
=>
v
.
mealpalname
.
slice
(
0
,
1
)
+
'
**
'
)
:[]
;
this
.
mealPalStr
=
this
.
mealPalArr
.
length
?
this
.
mealPalArr
.
join
(
'
、
'
):
''
;
}
catch
(
e
)
{
//TODO handle the exception
console
.
log
(
e
);
...
...
@@ -2638,7 +2638,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
var
breakfastArr
=
this
.
mealtimeTrendsData
.
filter
(
e
=>
e
.
mealtype
==
mealtype
);
var
breakfastAbnormalArr
=
[];
var
breakfastAbnormalStr
=
''
;
if
(
breakfastArr
&&
breakfastArr
[
0
].
cateringList
)
{
if
(
breakfastArr
.
length
&&
breakfastArr
[
0
].
cateringList
)
{
breakfastAbnormalArr
=
breakfastArr
[
0
].
cateringList
.
filter
(
e
=>
e
.
repastType
==
2
||
e
.
repastType
==
3
)
.
map
(
e
=>
e
.
repasttime
.
slice
(
8
,
9
)
?
e
.
repasttime
.
slice
(
8
)
:
e
.
repasttime
.
slice
(
8
,
9
))
if
(
breakfastAbnormalArr
.
length
>
1
)
{
...
...
@@ -2676,16 +2676,16 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
if
(
data
.
obj
)
{
this
.
mealtimeTrendsData
=
data
.
obj
}
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
1
)
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
1
)[
0
]
.
cateringList
)
{
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
1
)
.
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
1
)[
0
]
.
cateringList
)
{
this
.
mealtypeArr
.
push
(
1
)
}
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
)[
0
]
.
cateringList
)
)
{
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
).
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
)[
0
]
.
cateringList
)
{
this
.
mealtypeArr
.
push
(
2
)
}
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
)[
0
]
.
cateringList
)
)
{
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
).
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
)[
0
]
.
cateringList
)
{
this
.
mealtypeArr
.
push
(
3
)
}
}
catch
(
e
)
{
...
...
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