|
@@ -196,8 +196,8 @@
|
|
</div>
|
|
</div>
|
|
<div class="hiteach-code-wrap-list">
|
|
<div class="hiteach-code-wrap-list">
|
|
<vuescroll>
|
|
<vuescroll>
|
|
- <div @click="stdFlag = !stdFlag" class="hiteach-collapse" style="border-bottom: 1px solid #424242;position: relative;cursor: pointer;">
|
|
|
|
- <div class="hiteach-collapse-main" style="display: flex;align-items: center;padding: 20px 0 20px 20px;">
|
|
|
|
|
|
+ <div class="hiteach-collapse" style="border-bottom: 1px solid #424242;position: relative;cursor: pointer;">
|
|
|
|
+ <div @click="stdFlag = !stdFlag" class="hiteach-collapse-main" style="display: flex;align-items: center;padding: 20px 0 20px 20px;">
|
|
|
|
|
|
<Icon :type="stdFlag ? 'ios-arrow-up' : 'ios-arrow-down'" size="30" color="white" style="position: absolute;right: 5px;top: 20px;"/>
|
|
<Icon :type="stdFlag ? 'ios-arrow-up' : 'ios-arrow-down'" size="30" color="white" style="position: absolute;right: 5px;top: 20px;"/>
|
|
|
|
|
|
@@ -235,7 +235,7 @@
|
|
<span>192.168.256 | 84FJID3LKSD88 </span>
|
|
<span>192.168.256 | 84FJID3LKSD88 </span>
|
|
</li>
|
|
</li>
|
|
<li style="color: #888888;">
|
|
<li style="color: #888888;">
|
|
- <span>Microsoft Winfows NT 10.0.18883.0 | Intel(R Core(TM i7-10700 CPU @ 2.9Ghz))</span>
|
|
|
|
|
|
+ <span>Microsoft Winfows NT 10.0.18883.0 | Intel(R Core(TM i7-10700 CPU @ 2.9Ghz</span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<span style="color: #1cc0f3;padding: 0 15px;">
|
|
<span style="color: #1cc0f3;padding: 0 15px;">
|
|
@@ -254,7 +254,7 @@
|
|
<span>192.168.256 | 84FJID3LKSD88 </span>
|
|
<span>192.168.256 | 84FJID3LKSD88 </span>
|
|
</li>
|
|
</li>
|
|
<li>
|
|
<li>
|
|
- <span>Microsoft Winfows NT 10.0.18883.0 | Intel(R Core(TM i7-10700 CPU @ 2.9Ghz))</span>
|
|
|
|
|
|
+ <span>Microsoft Winfows NT 10.0.18883.0 | Intel(R Core(TM i7-10700 CPU @ 2.9Ghz</span>
|
|
</li>
|
|
</li>
|
|
</ul>
|
|
</ul>
|
|
<span v-if="false" style="color: #1cc0f3;padding: 0 15px;">
|
|
<span v-if="false" style="color: #1cc0f3;padding: 0 15px;">
|
|
@@ -614,6 +614,10 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
|
|
+ ...mapGetters({
|
|
|
|
+ periods: 'user/getPeriods', // 學制s
|
|
|
|
+ classes: 'user/getClasses', // 教室ID
|
|
|
|
+ }),
|
|
filterPeriodName: function(){
|
|
filterPeriodName: function(){
|
|
let pId = this.filterPeriod
|
|
let pId = this.filterPeriod
|
|
let name = ''
|
|
let name = ''
|
|
@@ -689,7 +693,6 @@
|
|
})
|
|
})
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
- console.log(data)
|
|
|
|
return data
|
|
return data
|
|
},
|
|
},
|
|
filterByPeriod() {
|
|
filterByPeriod() {
|
|
@@ -1030,17 +1033,17 @@
|
|
})
|
|
})
|
|
|
|
|
|
},
|
|
},
|
|
- getClassroom() {
|
|
|
|
- this.isListLoading = true
|
|
|
|
|
|
+ getClassroom(data) {
|
|
|
|
+ // this.isListLoading = true
|
|
//直接读取登录成功拿到得学校基础信息
|
|
//直接读取登录成功拿到得学校基础信息
|
|
- this.classroomList = this.$store.state.user.schoolProfile.school_classes
|
|
|
|
|
|
+ this.classroomList = data
|
|
if (this.classroomList.length > 0) {
|
|
if (this.classroomList.length > 0) {
|
|
this.updateBefore = JSON.stringify(this.classroomList[0])
|
|
this.updateBefore = JSON.stringify(this.classroomList[0])
|
|
}
|
|
}
|
|
this.filterClassname()
|
|
this.filterClassname()
|
|
- setTimeout(() => {
|
|
|
|
- this.isListLoading = false
|
|
|
|
- },500)
|
|
|
|
|
|
+ // setTimeout(() => {
|
|
|
|
+ // this.isListLoading = false
|
|
|
|
+ // },500)
|
|
/*this.$store.dispatch('schoolBaseInfo/getClassroom').then(
|
|
/*this.$store.dispatch('schoolBaseInfo/getClassroom').then(
|
|
(res) => {
|
|
(res) => {
|
|
if (res.code == 1 || res.code == 3) {
|
|
if (res.code == 1 || res.code == 3) {
|
|
@@ -1301,10 +1304,21 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
watch: {
|
|
watch: {
|
|
|
|
+ classes: {
|
|
|
|
+ handler(newValue) {
|
|
|
|
+ this.getClassroom(newValue)
|
|
|
|
+ },
|
|
|
|
+ // 深度观察监听
|
|
|
|
+ deep: true,
|
|
|
|
+ //立即执行
|
|
|
|
+ immediate: true
|
|
|
|
+ }
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
|
|
+
|
|
|
|
+console.log(this.$Mock.data.hiteachSetting, '324324234')
|
|
|
|
+
|
|
this.editStatus = this.noStatus
|
|
this.editStatus = this.noStatus
|
|
- this.getClassroom()
|
|
|
|
this.$store.dispatch('teachers/getTeacherList').then(res => { })
|
|
this.$store.dispatch('teachers/getTeacherList').then(res => { })
|
|
}
|
|
}
|
|
}
|
|
}
|