|
@@ -12,7 +12,7 @@
|
|
|
@query="handleGroupQuery" class="mb10"
|
|
|
></mx-condition>
|
|
|
</el-card>
|
|
|
- <class-table type="2" :list="studentList"></class-table>
|
|
|
+ <class-table :pageForm="pageForm" type="2" :list="studentList"></class-table>
|
|
|
</div>
|
|
|
</template>
|
|
|
<!--:setting-model="settingModel" :group-model-index="groupModelIndex"-->
|
|
@@ -29,10 +29,23 @@ export default {
|
|
|
mixins: [MxTransferMixin, MxSelectTranslateMixin],
|
|
|
components: { ClassTable, MxCondition },
|
|
|
name: 'dispatch-detail',
|
|
|
+ watch: {
|
|
|
+ pageForm:{
|
|
|
+ deep:true,
|
|
|
+ handler() {
|
|
|
+ this.getDispatchResult()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
requireFields: ['localGroupId'],
|
|
|
studentList: [],
|
|
|
+ pageForm:{
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ total: 0
|
|
|
+ },
|
|
|
queryParams: null
|
|
|
}
|
|
|
},
|
|
@@ -70,16 +83,20 @@ export default {
|
|
|
this.$router.go(-1)
|
|
|
},
|
|
|
handleGroupQuery() {
|
|
|
+ this.pageForm.pageNum = 1
|
|
|
this.getDispatchResult()
|
|
|
},
|
|
|
getDispatchResult() {
|
|
|
classesResult({
|
|
|
classId: this.queryParams.dispatchClassId,
|
|
|
groupId: this.queryParams.localGroupId,
|
|
|
+ pageSize: this.pageForm.pageSize,
|
|
|
+ pageNum: this.pageForm.pageNum,
|
|
|
roundId: this.queryParams.dispatchRoundId,
|
|
|
sex: this.queryParams.dispatchGender || null,
|
|
|
}).then(res => {
|
|
|
console.log(res)
|
|
|
+ this.pageForm.total = res.total
|
|
|
this.studentList = res.rows.map(item => {
|
|
|
item.groupName = this.translateGroup(this.queryParams.localGroupId)
|
|
|
return item
|