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
acece5e2
Commit
acece5e2
authored
Jul 04, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
0e1cbbbe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
index.vue
src/pages/bookAclass/index.vue
+11
-11
No files found.
src/pages/bookAclass/index.vue
View file @
acece5e2
...
@@ -39,8 +39,8 @@
...
@@ -39,8 +39,8 @@
<view
v-for=
"item in titleList"
<view
v-for=
"item in titleList"
class=
"titleHeader-content"
>
class=
"titleHeader-content"
>
<view
class=
"titleHeader-name"
>
{{
item
.
name
}}
</view>
<view
class=
"titleHeader-name"
>
{{
item
.
name
}}
</view>
<view
class=
"titleHeader-num"
>
{{
item
.
num
}}
</view>
<view
class=
"titleHeader-num"
>
{{
item
.
num
.
slice
(
8
,
10
)
}}
</view>
<view
class=
"titleHeader-mark"
v-if=
"
dataList
.length>0"
>
<view
class=
"titleHeader-mark"
v-if=
"
item.listNum
.length>0"
>
<view
v-for=
"(items,index) in item.listNum"
:key=
"index"
<view
v-for=
"(items,index) in item.listNum"
:key=
"index"
:class=
"
{'activeOne':items.StartTime=='09:30','activeTwo':items.StartTime=='11:10',
:class=
"
{'activeOne':items.StartTime=='09:30','activeTwo':items.StartTime=='11:10',
'activeThree':items.StartTime=='13:30','activeFour':items.StartTime=='15:10',
'activeThree':items.StartTime=='13:30','activeFour':items.StartTime=='15:10',
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
for
(
let
i
=
0
;
i
<
7
;
i
++
){
for
(
let
i
=
0
;
i
<
7
;
i
++
){
data
.
titleList
.
forEach
((
item
,
index
)
=>
{
data
.
titleList
.
forEach
((
item
,
index
)
=>
{
if
(
i
==
index
){
if
(
i
==
index
){
item
.
num
=
arr
[
i
]
.
slice
(
8
,
10
)
item
.
num
=
arr
[
i
]
}
}
});
});
}
}
...
@@ -251,22 +251,22 @@
...
@@ -251,22 +251,22 @@
})
})
proxy
.
$request
(
"/LeaveStudent/GetStuPlanAppointment"
,
data
.
msg
).
then
(
res
=>
{
proxy
.
$request
(
"/LeaveStudent/GetStuPlanAppointment"
,
data
.
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
){
if
(
res
.
Code
==
1
){
data
.
titleList
.
forEach
((
i
,
indexs
)
=>
{
i
.
listNum
=
[]
})
let
arr
=
[]
let
arr
=
[]
data
.
dataList
=
res
.
Data
data
.
dataList
=
res
.
Data
data
.
dataList
.
forEach
(
item
=>
{
data
.
dataList
.
forEach
(
(
item
,
index
)
=>
{
item
.
SubList
.
forEach
(
i
=>
{
item
.
SubList
.
forEach
(
i
=>
{
arr
.
push
(
i
)
arr
.
push
(
i
)
})
})
data
.
titleList
.
forEach
(
i
=>
{
data
.
titleList
.
forEach
(
(
i
,
indexs
)
=>
{
if
(
item
.
DateStr
.
slice
(
8
,
10
)
==
i
.
num
){
if
(
item
.
DateStr
=
==
i
.
num
){
item
.
Week
=
i
.
name
item
.
Week
=
i
.
name
if
(
item
.
SubList
.
length
>
0
){
i
.
listNum
=
item
.
SubList
i
.
listNum
=
item
.
SubList
}
else
{
i
.
listNum
=
0
}
}
}
})
})
})
})
data
.
total
=
arr
.
length
data
.
total
=
arr
.
length
uni
.
hideLoading
()
uni
.
hideLoading
()
...
...
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