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
2b65a617
Commit
2b65a617
authored
Nov 11, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'V1.7.3_report_feature' into develop
parents
b74097cf
612e6628
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
54 deletions
+34
-54
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+34
-54
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
2b65a617
...
...
@@ -318,8 +318,12 @@
:key=
"index"
class=
"consumer-details-sum"
>
<view
v-for=
"(e,i) in item.consumerDetailsSumArr"
class=
"consumer-details-sum-item"
:key=
"i"
:class=
"i?'':'consumer-details-sum-type'"
>
<text
:style=
"
{color:item.calculateType=='较上月'?trendColorList[i]:''}">
{{
e
}}
</text>
<template
v-if=
"i ==0"
><span
class=
"type-unit"
>
{{
unitTypeList
[
index
]
}}
</span></
template
>
<text
:style=
"
{color:item.calculateType=='较上'?trendColorList[i]:''}">
{{
e
}}
</text>
<template
v-if=
"item.calculateType=='较上'&&i == 0"
>
<span>
{{
[
'
月
'
,
'
周
'
][
reportTypeIndex
]
}}
</span>
</
template
>
<
template
v-if=
"i == 0"
><span
class=
"type-unit"
>
{{
unitTypeList
[
index
]
}}
</span></
template
>
</view>
</view>
</view>
...
...
@@ -1362,36 +1366,10 @@
this
.
memberInfo
.
invalidDateStr
=
'
2022年6月30日
'
;
this
.
memberInfo
.
differDay
=
dayjs
(
'
2022/06/30
'
).
diff
(
dayjs
(),
'
day
'
)
+
1
;
this
.
containerHeight
=
4200
;
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
this
.
queryLivingCostsAmount
();
this
.
queryDayConsumerTrend
(
1
).
then
(
e
=>
this
.
linechart
(
this
.
reportTypeIndex
));
// this.queryMealPalAnalyse().then(() => this.mealPalBarchart());
// this.queryRepastTimeTrend().then(() => {
// if (this.mealtypeArr.indexOf(1) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'breakfast-time-line',
// 1);
// }
// if (this.mealtypeArr.indexOf(2) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'lunch-time-line',
// 2);
// }
// if (this.mealtypeArr.indexOf(3) != -1) {
// this.breakfastTimeLinechart(this.reportTypeIndex,
// 'dinner-time-line',
// 3);
// }
// })
}
else
{
this
.
tabIndex
=
1
;
this
.
queryIsDredgeMember
(
1002
,
1
).
then
(()
=>
{
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
this
.
queryLivingCostsAmount
();
this
.
queryDayConsumerTrend
(
1
).
then
(
e
=>
this
.
linechart
(
this
.
reportTypeIndex
));
this
.
queryIsDredgeMember
(
1002
,
1
)
}
// this.queryMealPalAnalyse().then(() => this.mealPalBarchart());
// this.queryRepastTimeTrend().then(() => {
// if (this.mealtypeArr.indexOf(1) != -1) {
...
...
@@ -1411,8 +1389,11 @@
// 3);
// }
// })
});
}
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
this
.
queryLivingCostsAmount
();
this
.
queryDayConsumerTrend
(
1
).
then
(
e
=>
this
.
linechart
(
this
.
reportTypeIndex
));
this
.
queryNotRepastDetails
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
,
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
).
then
(()
=>
{
...
...
@@ -1458,7 +1439,6 @@
this
.
tabIndex
=
1
;
this
.
queryIsDredgeMember
(
1002
,
1
).
then
(()
=>
{
this
.
queryConsumerSummaryAmount
();
this
.
queryLivingCostsAmount
();
this
.
queryDayConsumerTrend
();
// this.queryMealPalAnalyse();
// this.queryRepastTimeTrend();
...
...
@@ -2599,11 +2579,11 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
.
sortCalculateType
);
let
tmpColorList
=
[
''
];
this
.
campusConsumerDetailObj
.
campusConsumerDetailCalculateList
.
forEach
((
e
,
index
)
=>
{
e
.
calculateType
=
[
'
就餐
'
,
'
未就餐
'
,
'
均值
'
,
'
较上
月
'
,
'
总计
'
][
e
e
.
calculateType
=
[
'
就餐
'
,
'
未就餐
'
,
'
均值
'
,
'
较上
'
,
'
总计
'
][
e
.
calculateType
-
1
];
if
(
e
.
calculateType
==
'
较上
月
'
)
{
if
(
e
.
calculateType
==
'
较上
'
)
{
for
(
let
item
in
e
)
{
if
(
item
!=
'
calculateType
'
)
{
if
(
e
[
item
]
>
0
)
{
...
...
@@ -2660,7 +2640,7 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
this
.
campusConsumerDetailObj
.
campusConsumerDetailList
=
JSON
.
parse
(
JSON
.
stringify
(
tmpDetailList
));
let
tmpCalculatList
=
[];
let
calculateTypeList
=
[
'
就餐
'
,
'
未就餐
'
,
'
均值
'
,
'
较上
月
'
,
'
总计
'
];
let
calculateTypeList
=
[
'
就餐
'
,
'
未就餐
'
,
'
均值
'
,
'
较上
'
,
'
总计
'
];
calculateTypeList
.
forEach
(
e
=>
{
tmpCalculatList
.
push
({
"
calculateType
"
:
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