Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
向伟
educationStu
Commits
92dfb942
Commit
92dfb942
authored
Jan 19, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
e8148734
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
timeTable.vue
src/pages/timetable/timeTable.vue
+4
-2
No files found.
src/pages/timetable/timeTable.vue
View file @
92dfb942
...
...
@@ -122,6 +122,7 @@
getcalendar
(
curdate
.
getFullYear
(),
curdate
.
getMonth
()
+
1
);
let
newArr
=
calendar
.
value
.
slice
(
emptyArr
.
length
,
calendar
.
value
.
length
);
sliceWeek
(
newArr
[
0
]);
data
.
msg
.
StartTime
=
currentDate
.
value
+
'-01'
data
.
msg
.
EndTime
=
currentDate
.
value
+
'-'
+
getMonthMaxDay
(
year
,
month
);
that
.
getData
()
that
.
getAllData
()
...
...
@@ -156,8 +157,8 @@
let
isShowAllDay
=
ref
(
false
);
let
sliceWeekArr
=
ref
([]);
let
sliceWeek
=
(
item
)
=>
{
let
w
=
item
.
$orig
?.
week
||
item
.
week
let
d
=
item
.
$orig
?.
day
||
item
.
day
let
w
=
item
.
$orig
?.
week
||
item
.
week
||
0
let
d
=
item
.
$orig
?.
day
||
item
.
day
||
0
let
newArr
=
calendar
.
value
.
slice
(
emptyArr
.
length
,
calendar
.
value
.
length
);
let
s
=
d
-
(
w
+
1
)
<=
0
?
0
:
d
-
(
w
+
1
);
let
e
=
d
+
(
6
-
w
);
...
...
@@ -165,6 +166,7 @@
if
(
s
===
0
)
{
sliceWeekArr
.
value
.
unshift
(...
emptyArr
);
}
};
//切换日历展示模式
let
changeCalendar
=
()
=>
{
...
...
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