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
d6d68488
Commit
d6d68488
authored
May 24, 2022
by
袁玲利
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
是否在高峰期内优化
parent
d886b04b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
81 deletions
+91
-81
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+91
-81
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
d6d68488
...
...
@@ -514,7 +514,7 @@
</view>
</view>
</view>
<view
v-else
class=
"nodata"
>
<view
v-else
class=
"nodata"
@
click=
"initData"
>
<view
class=
"nodataImg"
>
<img
style=
"width: 35vw"
:src=
"nodataImgUrl + 'images/1.png'"
/>
</view>
...
...
@@ -614,6 +614,11 @@ export default {
};
},
mounted
()
{
this
.
initData
()
},
methods
:
{
initData
()
{
// console.log(this.isPeakPeriod(), '是否在高峰期内')
// 判断是否在高峰期内
if
(
this
.
isPeakPeriod
())
{
this
.
showReport
=
false
;
...
...
@@ -664,7 +669,9 @@ export default {
"
day
"
);
this
.
containerHeight
=
4200
;
this
.
queryStudentConsumerPreference
(
1
).
then
((
e
)
=>
this
.
piechart
());
this
.
queryStudentConsumerPreference
(
1
).
then
((
e
)
=>
this
.
piechart
()
);
this
.
queryDayConsumerTrend
(
1
).
then
((
e
)
=>
this
.
linechart
(
this
.
reportTypeIndex
)
);
...
...
@@ -696,14 +703,18 @@ export default {
:
dayjs
();
tmpArr
.
push
({
week
:
startWeek
.
format
(
"
YYYY/MM/DD
"
)
+
"
~
"
+
endWeek
.
format
(
"
YYYY/MM/DD
"
),
startWeek
.
format
(
"
YYYY/MM/DD
"
)
+
"
~
"
+
endWeek
.
format
(
"
YYYY/MM/DD
"
),
weekstr
:
startWeek
.
format
(
"
MM/DD
"
)
+
"
~
"
+
endWeek
.
format
(
"
MM/DD
"
),
startDate
:
startWeek
.
format
(
"
YYYY-MM-DD
"
),
endDate
:
endWeek
.
format
(
"
YYYY-MM-DD
"
),
});
}
this
.
dataRangeArr
=
tmpArr
;
this
.
minDate
=
new
Date
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
);
this
.
minDate
=
new
Date
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
);
this
.
maxDate
=
new
Date
(
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
endDate
);
this
.
diningSituations
.
diningSituationsRequestDate
=
this
.
dataRangeArr
[
this
.
dataRangeIndex
].
startDate
;
...
...
@@ -724,7 +735,6 @@ export default {
this
.
queryConsumerTrend
();
}
},
methods
:
{
// 当天6:30 ~ 9:00,11:30 ~ 12:00, 17:30 ~ 19:00属于高峰期
isPeakPeriod
()
{
let
first
=
this
.
timeIn
(
"
06:30:00
"
,
"
09:00:00
"
);
...
...
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