Commit 9265ae9c authored by zhengke's avatar zhengke

修改

parent 0354312c
<style> <style>
.classLog { .classLog {
margin: 0 20px; margin: 0 20px;
height: 600px; padding-bottom:70px;
overflow: auto; overflow: auto;
} }
...@@ -46,6 +46,8 @@ ...@@ -46,6 +46,8 @@
</q-timeline-entry> </q-timeline-entry>
</template> </template>
</q-timeline> </q-timeline>
<q-pagination class="full-width justify-start" v-model="msg.PageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" />
</div> </div>
</template> </template>
<script> <script>
...@@ -66,11 +68,12 @@ ...@@ -66,11 +68,12 @@
return { return {
msg: { msg: {
PageIndex: 1, PageIndex: 1,
PageSize: 12, PageSize: 6,
School_Id: 0, School_Id: 0,
ClassId: 0 ClassId: 0
}, },
dataList: [], dataList: [],
pageCount:0
} }
}, },
created() {}, created() {},
...@@ -84,9 +87,15 @@ ...@@ -84,9 +87,15 @@
queryClassLogPageList(this.msg).then(res => { queryClassLogPageList(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
} }
}) })
}, },
//翻页
changePage(val) {
this.msg.PageIndex = val;
this.getClassLog()
}
}, },
watch: { watch: {
setingObj: function (val, oldval) { setingObj: function (val, oldval) {
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
emit-value map-options /> emit-value map-options />
</div> </div>
</div> </div>
<div> <div style="padding-bottom:50px;">
<template v-if="checkType==1"> <template v-if="checkType==1">
<q-table :pagination="msg" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none" <q-table :pagination="msg" no-data-label="暂无相关数据" flat class="sticky-column-table" separator="none"
:data="dataList" :columns="columns"> :data="dataList" :columns="columns">
......
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