Commit 20855aa1 authored by 罗超's avatar 罗超

1

parent a7446bfd
...@@ -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">
......
...@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment