feat: 隐藏多规格退款退回库存,修改所有page为1

This commit is contained in:
duan
2025-03-21 09:35:32 +08:00
parent 812b01391b
commit c40281902a
11 changed files with 110 additions and 291 deletions

View File

@@ -22,10 +22,7 @@
<el-table-column label="用户" prop="headImg" width="200px">
<template v-slot="scope">
<div class="user_info">
<el-image
:src="scope.row.headImg"
style="width: 40px; height: 40px; flex-shrink: 0"
>
<el-image :src="scope.row.headImg" style="width: 40px; height: 40px; flex-shrink: 0">
<template #error>
<div class="image-slot">
<i class="el-icon-user"></i>
@@ -55,20 +52,15 @@
</el-table>
</div>
<div class="head-container">
<el-pagination
:total="tableData.total"
:current-page="tableData.page + 1"
:page-size="tableData.size"
@size-change="sizeChange"
@current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper"
></el-pagination>
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
@size-change="sizeChange" @current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div>
</div>
</el-dialog>
</template>
<script setup>
<script setup>
import shopUserApi from "@/api/account/shopUser";
import dayjs from "dayjs";
let cacheData = {};
@@ -81,7 +73,7 @@ const state = reactive({
},
tableData: {
data: [],
page: 0,
page: 1,
size: 10,
loading: false,
total: 0,
@@ -174,8 +166,8 @@ defineExpose({
close,
});
</script>
<style scoped lang="scss">
<style scoped lang="scss">
.user_info {
display: flex;
align-items: center;
@@ -184,6 +176,7 @@ defineExpose({
margin-left: 10px;
}
}
:deep(.el-input--small .el-input__inner) {
height: 36px;
line-height: 36px;
@@ -231,12 +224,13 @@ defineExpose({
}
}
}
.flex {
display: flex;
align-items: center;
}
.gap-20 {
gap: 20px;
}
</style>
</style>

View File

@@ -13,20 +13,15 @@
</el-table>
</div>
<div class="head-container">
<el-pagination
:total="tableData.total"
:current-page="tableData.page + 1"
:page-size="tableData.size"
@size-change="sizeChange"
@current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper"
></el-pagination>
<el-pagination :total="tableData.total" :current-page="tableData.page + 1" :page-size="tableData.size"
@size-change="sizeChange" @current-change="paginationChange"
layout="total, sizes, prev, pager, next, jumper"></el-pagination>
</div>
</div>
</el-dialog>
</template>
<script>
<script>
import { $douyin_storelist, $douyin_bindstore } from "@/api/coup/index";
import dayjs from "dayjs";
import { ElMessage } from "element-plus";
@@ -44,7 +39,7 @@ export default {
},
tableData: {
data: [],
page: 0,
page: 1,
size: 10,
loading: false,
total: 0,
@@ -140,8 +135,8 @@ export default {
},
};
</script>
<style scoped lang="scss">
<style scoped lang="scss">
.user_info {
display: flex;
align-items: center;
@@ -150,6 +145,7 @@ export default {
margin-left: 10px;
}
}
:deep(.el-input--small .el-input__inner) {
height: 36px;
line-height: 36px;
@@ -197,12 +193,13 @@ export default {
}
}
}
.flex {
display: flex;
align-items: center;
}
.gap-20 {
gap: 20px;
}
</style>
</style>