Commit f4498fb2 authored by 黄奎's avatar 黄奎

班课转订单显示异常调整

parent 548a4482
......@@ -59,9 +59,9 @@
</div>
</div>
</div>
<Course :dataList="courseData" @select="selectClass" :select="defaultCourse"></Course>
<Course :qMsg="courseMsg" :dataList="courseData" @select="selectClass" :select="defaultCourse"></Course>
<q-pagination class="full-width justify-end" v-model="courseMsg.pageIndex" color="primary"
:max="coursePageCount" :input="true" @input="changePage" />
:max="courseMsg.coursePageCount" :input="true" @input="changePage" />
</template>
<template v-if="mode == 2">
<yueke @select="selectCourse" :mode="mode" :select="selectedCourseList"></yueke>
......@@ -159,7 +159,8 @@
},
courseMsg: {
pageIndex: 1,
pageSize: 8,
pageSize: 7,
rowsPerPage:7,
ClassName: "", //班级名称
StartTime: "", //开始时间
EndTime: "", //结束时间
......@@ -173,9 +174,10 @@
CourseSubject: "", //所属科目
IsQuerySalePlat: 1,
SaleState: 1, //显示正常的课程
coursePageCount: 0, //课程页数
},
courseData: [], //课程列表
coursePageCount: 0, //课程页数
saveObj: {}, //所选课程
defaultCourse: [], //默认课程
//关联校区列表
......@@ -220,7 +222,7 @@
getCourseList() {
getClassPruductList(this.courseMsg).then(res => {
this.courseData = res.Data.PageData;
this.coursePageCount = res.Data.PageCount;
this.courseMsg.coursePageCount = res.Data.PageCount;
this.courseData.forEach(x => {
if (x.ClassStyle == 1) {
let weekList = [
......
<template>
<q-table :pagination="msg" selection="single" :selected.sync="selection" no-data-label="暂无相关数据" flat
<q-table :pagination="qMsg" selection="single" :selected.sync="selection" no-data-label="暂无相关数据" flat
class="sticky-tow-column-table sticky-two-header-table" separator="none" :data="dataList" :columns="columns"
row-key="ClassId" @update:selected="emitSel" table-class="table" hide-bottom>
</q-table>
......@@ -15,15 +15,16 @@
select: {
type: Array,
default: () => []
},
qMsg:{
type:Object,
default:null
}
},
data() {
return {
selection: [],
msg: {
pageIndex: 1,
rowsPerPage: 8
},
columns: [{
name: "ClassName",
label: "班级",
......
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