提交 88df8abe authored 作者: lihuihui's avatar lihuihui

分页修改

上级 3fc4cc46
......@@ -3,8 +3,8 @@ import { Other } from '@api'
export default class OtherAction extends BaseACTION {
/* 获取我的消息信息 */
getMyMsg () {
return Other.getMyMsg().then(res => {
getMyMsg (obj) {
return Other.getMyMsg(obj).then(res => {
const json = res.map(function (_, i) {
return {
isRead: false,
......
......@@ -9,7 +9,7 @@ export default class OtherAPI extends BaseAPI {
/**
* 获取我的消息信息
*/
getMyMsg = () => this.get('/v2/education/message/my', {})
getMyMsg = (obj) => this.get('/v2/education/message/my', obj, {})
/**
* 标记已读未读
*/
......
......@@ -98,7 +98,7 @@ export default {
page: {
total: 0,
currentPage: 1,
size: 20
size: 10
}
}
},
......
......@@ -18,6 +18,13 @@
</template>
</el-collapse>
<div style="height: 0.3rem;"></div>
<!-- <el-pagination
:current-page.sync="page.currentPage"
:page-size="page.size"
layout="total, prev, pager, next, jumper"
:total="page.total"
@current-change="handleCurrentChange"
></el-pagination> -->
</div>
</div>
</template>
......@@ -31,6 +38,11 @@ export default {
return {
activeNames: ['1'],
msgList: []
// page: {
// total: 0,
// currentPage: 1,
// size: 10
// }
}
},
mounted () {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论