Commit a861ed05 by zhaopanyu

zpy 8.9

parent d4fc7d62
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="80px">
<el-form-item label="任务名称" prop="curriculaName">
<el-select v-model="queryParams.curriculaName" placeholder="请选择任务名称" @change="updateClassList">
<el-option v-for="(item, index) in taskNameList" :key="index" :label="item.curriculaName"
......@@ -38,8 +37,6 @@
<div class="flexBlock person">
<div>总人数:{{ taskStats.total }}</div>
<div>已选课:<span>{{ taskStats.selected }}</span></div>
</div>
<el-table :data="courseSelectionData" stripe>
<el-table-column label="序号" type="index" width="55" align="center" />
......@@ -63,16 +60,11 @@
<div v-else-if="row.courseType == 2">{{ selectDictLabel(dict.type.section_type, row.selectedCourse) }}
</div>
<div v-else-if="row.courseType == 3">
{{ selectDictLabel(dict.type.art_subject, row.selectedSubject) }}
{{ selectDictLabel(dict.type.section_type, row.selectedCourse) }}
{{ selectDictLabel(dict.type.art_subject, row.selectedSubject) }}
</div>
</template>
</el-table-column>
<el-table-column label="所选科目" align="center" prop="selectedSubject">
<template slot-scope="{ row }">
<div>{{ selectDictLabel(dict.type.art_subject, row.selectedSubject) }}</div>
</template>
</el-table-column>
</el-table>
<pagination ref="pageBlock" v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize" @pagination="getList" />
......@@ -88,6 +80,7 @@ export default {
data() {
return {
taskStats: {},
//班级
grades: [],
queryParams: {
pageNum: 1,
......@@ -196,14 +189,20 @@ export default {
//重置
resetQuery() {
this.queryForm = {
this.queryParams = {
pageNum: 1,
pageSize: 10
};
//默认选择最新的任务名称
if (this.taskNameList.length > 0) {
const firstTask = this.taskNameList[0];
this.queryParams.curriculaName = firstTask.curriculaId;
}
this.taskStats.total = 0;
this.taskStats.selected = 0;
this.calculateStats();
this.resetForm("queryForm");
// this.calculateStats();
this.resetForm("queryParams");
this.getList();
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment