Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
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
wangxuelai
biz.qingxiao.com
Commits
0b248f93
Commit
0b248f93
authored
Jul 02, 2024
by
wangjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'wjie-fix-7.2' into 'master'
fix See merge request
!5
parents
c34dc4b4
10a10839
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
34 deletions
+37
-34
index.html
index.html
+1
-1
coursechart.js
src/models/coursechart.js
+36
-33
No files found.
index.html
View file @
0b248f93
...
...
@@ -18,5 +18,5 @@
</head>
<body>
<div
id=
"root"
></div>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
09798f
.js"
></script></body>
<script
type=
"text/javascript"
src=
"https://cdn.s.shangjiadao.cn/qingxiao/biz/dist/main.
a0040e
.js"
></script></body>
</html>
src/models/coursechart.js
View file @
0b248f93
...
...
@@ -134,39 +134,42 @@ export default {
// });
for
(
let
i
=
0
,
Length
=
weekdayschedules
.
length
;
i
<
Length
;
i
++
)
{
const
current
=
i
;
let
next
=
i
+
1
;
if
(
next
==
weekdayschedules
.
length
)
{
return
;
}
while
(
next
<
weekdayschedules
.
length
)
{
const
relativeSchedules1
=
weekdayschedules
[
current
].
relativeSchedules
;
const
relativeSchedules2
=
weekdayschedules
[
next
].
relativeSchedules
;
let
flaga
=
false
;
relativeSchedules1
.
forEach
((
ele
)
=>
{
if
(
relativeSchedules2
.
indexOf
(
ele
)
!=
-
1
)
{
flaga
=
true
;
}
});
if
(
flaga
)
{
relativeSchedules2
.
forEach
((
ele
)
=>
{
if
(
relativeSchedules1
.
indexOf
(
ele
)
==
-
1
)
{
relativeSchedules1
.
push
(
ele
);
relativeSchedules1
.
sort
((
a
,
b
)
=>
{
return
a
-
b
;
});
}
});
relativeSchedules1
.
forEach
((
ele
)
=>
{
if
(
relativeSchedules2
.
indexOf
(
ele
)
==
-
1
)
{
relativeSchedules2
.
push
(
ele
);
relativeSchedules2
.
sort
((
a
,
b
)
=>
{
return
a
-
b
;
});
}
});
}
next
++
;
}
// let next = i + 1;
// if (next == weekdayschedules.length) {
// return;
// }
weekdayschedules
[
current
].
relativeSchedules
.
sort
((
a
,
b
)
=>
{
return
a
-
b
;
});
// while (next < weekdayschedules.length) {
// const relativeSchedules1 = weekdayschedules[current].relativeSchedules;
// const relativeSchedules2 = weekdayschedules[next].relativeSchedules;
// let flaga = false;
// relativeSchedules1.forEach((ele) => {
// if (relativeSchedules2.indexOf(ele) != -1) {
// flaga = true;
// }
// });
// if (flaga) {
// relativeSchedules2.forEach((ele) => {
// if (relativeSchedules1.indexOf(ele) == -1) {
// relativeSchedules1.push(ele);
// relativeSchedules1.sort((a, b) => {
// return a - b;
// });
// }
// });
// relativeSchedules1.forEach((ele) => {
// if (relativeSchedules2.indexOf(ele) == -1) {
// relativeSchedules2.push(ele);
// relativeSchedules2.sort((a, b) => {
// return a - b;
// });
// }
// });
// }
// next++;
// }
}
});
yield
put
({
...
...
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