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
db78304c
Commit
db78304c
authored
May 25, 2022
by
李智书
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.提交更新;
parent
5ac1f923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
src/pages/SchoolReport/SchoolReport.vue
src/pages/SchoolReport/SchoolReport.vue
+19
-0
No files found.
src/pages/SchoolReport/SchoolReport.vue
View file @
db78304c
...
@@ -923,6 +923,25 @@ export default {
...
@@ -923,6 +923,25 @@ export default {
this
.
queryConsumerTrend
();
this
.
queryConsumerTrend
();
},
},
methods
:
{
methods
:
{
// 当天6:30 ~ 9:00,11:30 ~ 12:00, 17:30 ~ 19:00属于高峰期
isPeakPeriod
()
{
let
first
=
this
.
timeIn
(
"
06:30:00
"
,
"
09:00:00
"
);
let
second
=
this
.
timeIn
(
"
11:00:00
"
,
"
12:00:00
"
);
let
three
=
this
.
timeIn
(
"
17:30:00
"
,
"
19:00:00
"
);
console
.
log
(
first
,
"
first
"
,
second
,
"
second
"
,
three
,
"
three
"
);
return
first
||
second
||
three
;
},
/*在某段时间内*/
timeIn
(
s
,
e
)
{
let
t
=
moment
().
format
(
"
YYYY-MM-DD
"
);
if
(
moment
(
t
+
"
"
+
s
).
diff
(
moment
())
<
0
&&
moment
(
t
+
"
"
+
e
).
diff
(
moment
())
>
0
)
{
return
true
;
}
return
false
;
},
tabTap
:
function
(
num
)
{
tabTap
:
function
(
num
)
{
this
.
tabIndex
=
num
;
this
.
tabIndex
=
num
;
if
(
num
==
1
)
{
if
(
num
==
1
)
{
...
...
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