|  | @@ -6,12 +6,14 @@
 | 
											
												
													
														|  |        ></mx-condition>
 |  |        ></mx-condition>
 | 
											
												
													
														|  |      </el-card>
 |  |      </el-card>
 | 
											
												
													
														|  |      <!--   班主任查看  -->
 |  |      <!--   班主任查看  -->
 | 
											
												
													
														|  | -    <el-card class="box-card">
 |  | 
 | 
											
												
													
														|  | 
 |  | +    <el-card class="box-card" v-if="queryParams.roundId">
 | 
											
												
													
														|  |        <div slot="header" class="clearfix">
 |  |        <div slot="header" class="clearfix">
 | 
											
												
													
														|  | -        <p class="f20 text-center">凤凰中学2021级2101班分班信息 张兰老师</p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <p class="f20 text-center">{{ title }}</p>
 | 
											
												
													
														|  |        </div>
 |  |        </div>
 | 
											
												
													
														|  |        <div>
 |  |        <div>
 | 
											
												
													
														|  | -        <p class="mb10 f14">备注:<span class="f-red">请通知学生按照学校规定到新班级报道</span></p>
 |  | 
 | 
											
												
													
														|  | 
 |  | +        <p class="mb10 f14">备注:<span class="f-red">请通知学生按照学校规定到新班级报道</span>
 | 
											
												
													
														|  | 
 |  | +        <span> ,在{{round.activeDate}} 生效</span>
 | 
											
												
													
														|  | 
 |  | +        </p>
 | 
											
												
													
														|  |          <mx-table :prop-defines="propDefines" :rows="rows">
 |  |          <mx-table :prop-defines="propDefines" :rows="rows">
 | 
											
												
													
														|  |            <template #tmp="{row}">
 |  |            <template #tmp="{row}">
 | 
											
												
													
														|  |              <el-button type="primary">通知</el-button>
 |  |              <el-button type="primary">通知</el-button>
 | 
											
										
											
												
													
														|  | @@ -19,10 +21,12 @@
 | 
											
												
													
														|  |          </mx-table>
 |  |          </mx-table>
 | 
											
												
													
														|  |        </div>
 |  |        </div>
 | 
											
												
													
														|  |      </el-card>
 |  |      </el-card>
 | 
											
												
													
														|  | 
 |  | +    <evaluation-empty v-else-if="!queryParams.roundId" shadow title="当前学年没有分班数据"></evaluation-empty>
 | 
											
												
													
														|  |    </div>
 |  |    </div>
 | 
											
												
													
														|  |  </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'
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  export default {
 |  |  export default {
 | 
											
												
													
														|  |    components: { MxCondition },
 |  |    components: { MxCondition },
 | 
											
										
											
												
													
														|  | @@ -53,20 +57,51 @@ export default {
 | 
											
												
													
														|  |            label: '是否更换'
 |  |            label: '是否更换'
 | 
											
												
													
														|  |          },
 |  |          },
 | 
											
												
													
														|  |        },
 |  |        },
 | 
											
												
													
														|  | -      rows: [
 |  | 
 | 
											
												
													
														|  | 
 |  | +      settings: {},
 | 
											
												
													
														|  | 
 |  | +      round: {}
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +  },
 | 
											
												
													
														|  | 
 |  | +  computed: {
 | 
											
												
													
														|  | 
 |  | +    title() {
 | 
											
												
													
														|  | 
 |  | +      if(!Object.keys(this.round).length) return ''
 | 
											
												
													
														|  | 
 |  | +      return `${this.$store.getters.school.schoolName}${this.queryParams.year}学年${this.round.name}分班信息`
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    rows(){
 | 
											
												
													
														|  | 
 |  | +      const key = Object.keys(this.settings)[0]
 | 
											
												
													
														|  | 
 |  | +      if(!key) return []
 | 
											
												
													
														|  | 
 |  | +      return [
 | 
											
												
													
														|  |          {
 |  |          {
 | 
											
												
													
														|  | -          year: 2021,
 |  | 
 | 
											
												
													
														|  | -          oldClass: 20001,
 |  | 
 | 
											
												
													
														|  | -          oldTeacher: '张老师',
 |  | 
 | 
											
												
													
														|  | -          newClass: 20002,
 |  | 
 | 
											
												
													
														|  | -          newTeacher: '周老师',
 |  | 
 | 
											
												
													
														|  | -          time: '是'
 |  | 
 | 
											
												
													
														|  | 
 |  | +          year: this.queryParams.year,
 | 
											
												
													
														|  | 
 |  | +          oldClass: '',
 | 
											
												
													
														|  | 
 |  | +          oldTeacher: '',
 | 
											
												
													
														|  | 
 |  | +          newClass: key,
 | 
											
												
													
														|  | 
 |  | +          newTeacher: this.settings[key].nickName,
 | 
											
												
													
														|  | 
 |  | +          time: '否'
 | 
											
												
													
														|  |          }
 |  |          }
 | 
											
												
													
														|  |        ]
 |  |        ]
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |    },
 |  |    },
 | 
											
												
													
														|  |    methods: {
 |  |    methods: {
 | 
											
												
													
														|  |      handleQuery() {
 |  |      handleQuery() {
 | 
											
												
													
														|  | 
 |  | +      this.getRound()
 | 
											
												
													
														|  | 
 |  | +      this.getTeacherSettings()
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    getRound() {
 | 
											
												
													
														|  | 
 |  | +      getRound({
 | 
											
												
													
														|  | 
 |  | +        year: this.queryParams.year,
 | 
											
												
													
														|  | 
 |  | +        round:this.queryParams.roundId,
 | 
											
												
													
														|  | 
 |  | +      }).then(res => {
 | 
											
												
													
														|  | 
 |  | +        this.round = res.data
 | 
											
												
													
														|  | 
 |  | +        console.log(res)
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  | 
 |  | +    },
 | 
											
												
													
														|  | 
 |  | +    getTeacherSettings() {
 | 
											
												
													
														|  | 
 |  | +      getTeacherSettings({
 | 
											
												
													
														|  | 
 |  | +        roundId: this.queryParams.roundId
 | 
											
												
													
														|  | 
 |  | +      }).then(res => {
 | 
											
												
													
														|  | 
 |  | +        // 新班级的settings
 | 
											
												
													
														|  | 
 |  | +        this.settings = res.data
 | 
											
												
													
														|  | 
 |  | +      })
 | 
											
												
													
														|  |      },
 |  |      },
 | 
											
												
													
														|  |      handleInvalidQuery() {
 |  |      handleInvalidQuery() {
 | 
											
												
													
														|  |        console.log('query取消')
 |  |        console.log('query取消')
 |