Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
20855aa1
Commit
20855aa1
authored
Jul 07, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
a7446bfd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
15 deletions
+28
-15
Scheduling.vue
src/pages/classroom/Scheduling.vue
+2
-2
useRecord.vue
src/pages/classroom/useRecord.vue
+26
-13
No files found.
src/pages/classroom/Scheduling.vue
View file @
20855aa1
...
@@ -46,9 +46,9 @@
...
@@ -46,9 +46,9 @@
height=
"75px"
height=
"75px"
class=
" text-white shadow-1 rounded-borders"
class=
" text-white shadow-1 rounded-borders"
arrows
arrows
control-color=
"grey-
4
"
control-color=
"grey-
1
"
control-text-color=
"primary"
control-text-color=
"primary"
control-type=
"
regular
"
control-type=
"
unelevated
"
>
>
<q-carousel-slide
v-for=
"(slide,slideIndex) in _item.TimeList"
:key=
"slideIndex"
:name=
"slideIndex"
>
<q-carousel-slide
v-for=
"(slide,slideIndex) in _item.TimeList"
:key=
"slideIndex"
:name=
"slideIndex"
>
<div
class=
"info-box"
>
<div
class=
"info-box"
>
...
...
src/pages/classroom/useRecord.vue
View file @
20855aa1
...
@@ -78,7 +78,10 @@
...
@@ -78,7 +78,10 @@
},
},
tbodayData
:
[],
tbodayData
:
[],
schoolopt
:
[],
schoolopt
:
[],
classroomopt
:
[],
classroomopt
:
[{
RoomName
:
"不限"
,
RoomId
:
0
}],
};
};
},
},
created
()
{
created
()
{
...
@@ -120,6 +123,13 @@
...
@@ -120,6 +123,13 @@
if
(
res
.
Code
===
1
)
{
if
(
res
.
Code
===
1
)
{
this
.
navData
=
res
.
Data
this
.
navData
=
res
.
Data
this
.
schoolopt
=
res
.
Data
this
.
schoolopt
=
res
.
Data
if
(
!
this
.
$route
.
query
.
key
)
{
this
.
msg
.
SchoolId
=
res
.
Data
[
0
].
Key
}
this
.
schoolopt
.
unshift
({
SchoolName
:
"不限"
,
Key
:
-
1
})
this
.
schoolChange2
(
this
.
msg
.
SchoolId
)
this
.
schoolChange2
(
this
.
msg
.
SchoolId
)
}
}
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -127,21 +137,24 @@
...
@@ -127,21 +137,24 @@
})
})
},
},
schoolChange
(
val
)
{
schoolChange
(
val
)
{
let
res
=
this
.
schoolopt
.
filter
(
item
=>
{
if
(
val
!==
-
1
)
{
return
item
.
Key
==
val
let
res
=
this
.
schoolopt
.
filter
(
item
=>
{
})
return
item
.
Key
==
val
if
(
res
.
length
>
0
)
{
})
let
obj
=
{
if
(
res
.
length
>
0
)
{
RoomName
:
"不限"
,
let
obj
=
{
RoomId
:
0
RoomName
:
"不限"
,
RoomId
:
0
}
this
.
classroomopt
=
[
obj
,
...
res
[
0
].
RoomList
]
}
}
this
.
classroomopt
=
[
obj
,
...
res
[
0
].
RoomList
]
}
}
this
.
msg
.
ClassRoomId
=
0
this
.
msg
.
ClassRoomId
=
0
this
.
getClassRoomTimeList
()
this
.
getClassRoomTimeList
()
},
},
schoolChange2
(
val
)
{
schoolChange2
(
val
)
{
let
res
=
this
.
schoolopt
.
filter
(
item
=>
{
let
res
=
this
.
schoolopt
.
filter
(
item
=>
{
return
item
.
Key
==
val
return
item
.
Key
==
val
})
})
...
@@ -193,8 +206,8 @@
...
@@ -193,8 +206,8 @@
this
.
msg
.
EndTime
=
end
;
this
.
msg
.
EndTime
=
end
;
},
},
changedate
(
val
)
{
changedate
(
val
)
{
if
(
!
val
)
{
if
(
!
val
)
{
val
=
this
.
dateModel
val
=
this
.
dateModel
}
}
this
.
getEndTime
(
val
)
this
.
getEndTime
(
val
)
this
.
getClassRoomTimeList
()
this
.
getClassRoomTimeList
()
...
...
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