|
@@ -1,5 +1,5 @@
|
|
<template>
|
|
<template>
|
|
- <div class="app-container">
|
|
|
|
|
|
+ <div class="app-container" v-loading="loading">
|
|
<el-card class="box-card mb10">
|
|
<el-card class="box-card mb10">
|
|
<mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
|
|
<mx-condition ref="condition" :query-params="queryParams" :require-fields="requireFields" @query="handleQuery"
|
|
@invalid="handleInvalidQuery"
|
|
@invalid="handleInvalidQuery"
|
|
@@ -26,10 +26,12 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
import MxCondition from '@/components/MxCondition/mx-condition'
|
|
-import { classesResult, getRound, getTeacherSettings } from '@/api/webApi/elective/dispatch'
|
|
|
|
|
|
+import { getRound, getTeacherSettings } from '@/api/webApi/elective/dispatch'
|
|
|
|
+import classTreeMixin from '@/components/Cache/modules/mx-classTree-translate-mixin'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
components: { MxCondition },
|
|
components: { MxCondition },
|
|
|
|
+ mixins: [classTreeMixin],
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
requireFields: ['year', 'roundId'],
|
|
requireFields: ['year', 'roundId'],
|
|
@@ -53,12 +55,13 @@ export default {
|
|
newTeacher: {
|
|
newTeacher: {
|
|
label: ' 新班主任姓名'
|
|
label: ' 新班主任姓名'
|
|
},
|
|
},
|
|
- time: {
|
|
|
|
|
|
+ isToggle: {
|
|
label: '是否更换'
|
|
label: '是否更换'
|
|
},
|
|
},
|
|
},
|
|
},
|
|
settings: {},
|
|
settings: {},
|
|
- round: {}
|
|
|
|
|
|
+ round: {},
|
|
|
|
+ loading: false
|
|
}
|
|
}
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -72,11 +75,11 @@ export default {
|
|
return [
|
|
return [
|
|
{
|
|
{
|
|
year: this.queryParams.year,
|
|
year: this.queryParams.year,
|
|
- oldClass: '',
|
|
|
|
- oldTeacher: '',
|
|
|
|
- newClass: key,
|
|
|
|
|
|
+ oldClass: this.getClassName(this.settings[key].oldClassId),
|
|
|
|
+ oldTeacher: this.settings[key].oldNickName,
|
|
|
|
+ newClass: this.getClassName(key),
|
|
newTeacher: this.settings[key].nickName,
|
|
newTeacher: this.settings[key].nickName,
|
|
- time: '否'
|
|
|
|
|
|
+ isToggle: this.settings[key].oldNickName == this.settings[key].nickName ? '否' : '是'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -87,11 +90,13 @@ export default {
|
|
this.getTeacherSettings()
|
|
this.getTeacherSettings()
|
|
},
|
|
},
|
|
getRound() {
|
|
getRound() {
|
|
|
|
+ this.loading = true
|
|
getRound({
|
|
getRound({
|
|
year: this.queryParams.year,
|
|
year: this.queryParams.year,
|
|
round:this.queryParams.roundId,
|
|
round:this.queryParams.roundId,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.round = res.data
|
|
this.round = res.data
|
|
|
|
+ this.loading = false
|
|
console.log(res)
|
|
console.log(res)
|
|
})
|
|
})
|
|
},
|
|
},
|