Commit f4498fb2 authored by 黄奎's avatar 黄奎

班课转订单显示异常调整

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