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

分页修改

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