xy 1 year ago
parent d439cc7726
commit fc61b403c2

@ -46,6 +46,17 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<el-pagination
style="display: flex;justify-content: center;"
layout="prev, pager, next"
:total="total"
:page-size.sync="select.page_size"
@current-change="e => {
select.page = e;
getNotices();
}"
/>
</div> </div>
</div> </div>
@ -143,7 +154,7 @@ export default {
this.init() this.init()
}, },
methods: { methods: {
async getNotices(loading=false) { async getNotices(loading = false) {
try { try {
if (loading) { if (loading) {
this.loading = true this.loading = true
@ -155,7 +166,8 @@ export default {
params: this.select params: this.select
}) })
if (res.status === 200) { if (res.status === 200) {
this.list = res.data.data?.data this.list = res.data.data?.result
this.total = res.data.data?.total
} }
this.loading = false this.loading = false
} catch (err) { } catch (err) {
@ -174,7 +186,7 @@ export default {
this.tableHeight = this.tableHeight =
cardDom.getBoundingClientRect().height - cardDom.getBoundingClientRect().height -
40 - 40 -
cardTitleH cardTitleH - 32
}) })
}, },

Loading…
Cancel
Save