|
@@ -90,6 +90,7 @@ export default {
|
|
|
year: '',
|
|
|
roundId: ''
|
|
|
},
|
|
|
+ settings: {}, // 分班时间配置
|
|
|
headteacherSettings: null
|
|
|
}
|
|
|
},
|
|
@@ -108,6 +109,9 @@ export default {
|
|
|
copy.newHeadteacherCode = setting ? setting.customerCode : '' // 新班主任code
|
|
|
return copy
|
|
|
}) || []
|
|
|
+ },
|
|
|
+ classList() {
|
|
|
+ return this.classTree.find(item => item.year == this.queryParams.year).classList
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -115,6 +119,7 @@ export default {
|
|
|
getPublish({
|
|
|
roundId: this.queryParams.roundId
|
|
|
}).then(res => {
|
|
|
+ this.settings = res.data
|
|
|
console.log(res)
|
|
|
})
|
|
|
},
|
|
@@ -144,12 +149,15 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
send() {
|
|
|
- // if (true) {
|
|
|
- // this.$message.warning('还有班级未分配新班主任和新班级号')
|
|
|
- // return
|
|
|
- // }
|
|
|
- this.$Dialog('Test',{},(val) => {
|
|
|
- console.log('success', val)
|
|
|
+ const headteacherSettings = Object.values(this.headteacherSettings)
|
|
|
+ if (headteacherSettings.length < this.classList.length) {
|
|
|
+ this.$message.warning('还有班级未分配新班主任和新班级号')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.$Dialog('DispatchMaster',{
|
|
|
+ settings: this.settings
|
|
|
+ },(val) => {
|
|
|
+ this.handleQuery()
|
|
|
})
|
|
|
},
|
|
|
async cancel(row) {
|