This commit is contained in:
weipengfei 2024-04-02 18:42:05 +08:00
parent b014eba006
commit c31591c837
2 changed files with 23 additions and 1 deletions

View File

@ -37,8 +37,10 @@ import myAside from "./myAside.vue";
.el-main { .el-main {
background-color: #f5f5f5; background-color: #f5f5f5;
width: calc(100vw - 100px); width: calc(100vw - 100px);
min-height: calc(100vh - 60px); height: calc(100vh - 60px);
border-radius: 2rem 0 0 0; border-radius: 2rem 0 0 0;
overflow-y: scroll;
.my-main { .my-main {
height: 100%; height: 100%;
width: 100%; width: 100%;

View File

@ -24,6 +24,22 @@ const getOrderList = () => {
getOrderList() getOrderList()
const prevClick = (e) => {
where.value.page = e;
getOrderList();
}
const nextClick = (e) => {
where.value.page = e;
getOrderList();
}
const currentChange = (e) => {
where.value.page = e;
getOrderList();
}
</script> </script>
<template> <template>
@ -44,6 +60,9 @@ getOrderList()
:page-size="where.limit" :page-size="where.limit"
layout="prev, pager, next" layout="prev, pager, next"
:total="total" :total="total"
@prev-click="prevClick"
@next-click="nextClick"
@current-change="currentChange"
/> />
</div> </div>
</template> </template>
@ -54,6 +73,7 @@ getOrderList()
border-radius: 1.2rem; border-radius: 1.2rem;
box-sizing: border-box; box-sizing: border-box;
padding: 1rem; padding: 1rem;
overflow-y: scroll;
} }
/* 修改滚动条的样式 */ /* 修改滚动条的样式 */
::-webkit-scrollbar { ::-webkit-scrollbar {