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
a6b34e03
Commit
a6b34e03
authored
Oct 28, 2022
by
aifen@azjy1.onexmail.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消费报告屏蔽饭友分析,就餐时间趋势
parent
225248bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
85 additions
and
83 deletions
+85
-83
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+85
-83
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
a6b34e03
...
...
@@ -400,7 +400,7 @@
</view>
</view>
</view>
<view
v-show=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-six"
>
<
!--
<
view
v-show=
"tabIndex==1&&isOpen"
class=
"school-report-context-card-six"
>
<view
class=
"school-report-context-card-title"
>
<view
class=
"school-report-context-card-title-img"
>
<text>
就餐时间趋势
</text>
...
...
@@ -555,7 +555,7 @@
</view>
<view
id=
"meal-pal-bar"
>
</view>
</view>
</view>
-->
<!-- 出入校报告 -->
<view
v-show=
"tabIndex==2"
class=
"attendance-report-context-card-two"
>
<view
class=
"school-report-context-card-title"
>
...
...
@@ -1199,24 +1199,24 @@
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
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
);
}
})
//
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
(()
=>
{
...
...
@@ -1224,25 +1224,25 @@
.
piechart
());
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
);
}
})
//
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);
//
}
//
})
});
}
})
...
...
@@ -1256,29 +1256,29 @@
this
.
containerHeight
=
4200
;
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
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
);
}
})
//
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
();
this
.
queryDayConsumerTrend
();
this
.
queryMealPalAnalyse
();
this
.
queryRepastTimeTrend
();
//
this.queryMealPalAnalyse();
//
this.queryRepastTimeTrend();
})
}
}
...
...
@@ -1363,29 +1363,29 @@
}
});
this
.
queryConsumerSummaryAmount
();
this
.
queryIsDredgeMember
(
1002
,
1
).
then
(()
=>
{
this
.
queryIsDredgeMember
(
1002
,
1
).
then
(()
=>
{
if
(
this
.
isOpen
)
{
this
.
queryConsumerSummaryAmount
(
1
).
then
(
e
=>
this
.
piechart
());
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
);
}
})
//
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
.
queryConsumerSummaryAmount
();
this
.
queryDayConsumerTrend
();
...
...
@@ -2620,9 +2620,9 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
return
}
this
.
mealPalData
=
data
.
obj
||
[];
this
.
mealPalArr
=
this
.
mealPalData
.
length
?
this
.
mealPalData
.
map
(
v
=>
v
.
mealpalname
.
slice
(
0
,
1
)
+
'
**
'
)
:
[];
this
.
mealPalStr
=
this
.
mealPalArr
.
length
?
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
);
...
...
@@ -2680,11 +2680,13 @@ color: #FF8646;padding:13rpx 12rpx 30rpx 17rpx;`,
1
)[
0
].
cateringList
)
{
this
.
mealtypeArr
.
push
(
1
)
}
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
).
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
2
)[
0
]
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
).
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
)[
0
]
if
(
data
.
obj
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
).
length
&&
data
.
obj
.
filter
(
e
=>
e
.
mealtype
==
3
)[
0
]
.
cateringList
)
{
this
.
mealtypeArr
.
push
(
3
)
}
...
...
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