修复优化拼团

master
paulGao 2021-12-29 19:50:24 +08:00
parent 8ca87cdb2a
commit 4ff8eb6494
2 changed files with 15 additions and 11 deletions

View File

@ -47,7 +47,7 @@
</Table> </Table>
<Row type="flex" justify="end" class="page operation"> <Row type="flex" justify="end" class="page operation">
<Page <Page
:current="searchForm.pageNumber + 1" :current="searchForm.pageNumber"
:total="total" :total="total"
:page-size="searchForm.pageSize" :page-size="searchForm.pageSize"
@on-change="changePage" @on-change="changePage"
@ -91,7 +91,7 @@ export default {
loading: false, // loading: false, //
searchForm: { searchForm: {
// //
pageNumber: 0, // pageNumber: 1, //
pageSize: 10, // pageSize: 10, //
}, },
@ -219,7 +219,7 @@ export default {
changePage(v) { changePage(v) {
// //
this.searchForm.pageNumber = v - 1; this.searchForm.pageNumber = v;
this.getDataList(); this.getDataList();
this.clearSelectAll(); this.clearSelectAll();
}, },
@ -232,14 +232,14 @@ export default {
handleSearch() { handleSearch() {
// //
this.searchForm.pageNumber = 0; this.searchForm.pageNumber = 1;
this.searchForm.pageSize = 10; this.searchForm.pageSize = 10;
this.getDataList(); this.getDataList();
}, },
handleReset() { handleReset() {
// //
this.searchForm.pageNumber = 0; this.searchForm.pageNumber = 1;
this.searchForm.promotionName = ""; this.searchForm.promotionName = "";
this.selectDate = null; this.selectDate = null;
this.getDataList(); this.getDataList();

View File

@ -62,31 +62,31 @@
v-if="row.promotionStatus == 'NEW'" v-if="row.promotionStatus == 'NEW'"
@click="edit(row)" @click="edit(row)"
>编辑</Button >编辑</Button
>&nbsp; >
<Button <Button
type="info" type="info"
v-if="row.promotionStatus == 'NEW'" v-if="row.promotionStatus == 'NEW'"
size="small" size="small"
@click="manage(row, 'manager')" @click="manage(row, 'manager')"
>管理</Button >管理</Button
>&nbsp; >
<Button <Button
type="info" type="info"
v-if="row.promotionStatus !== 'NEW'" v-if="row.promotionStatus !== 'NEW' && row.promotionStatus !== 'CLOSE'"
size="small" size="small"
@click="manage(row, 'view')" @click="manage(row, 'view')"
>查看</Button >查看</Button
>&nbsp; >
<Button <Button
type="error" type="error"
size="small" size="small"
v-if="row.promotionStatus != 'START'" v-if="row.promotionStatus != 'START'"
@click="remove(row)" @click="remove(row)"
>删除</Button >删除</Button
>&nbsp; >
<Button <Button
type="success" type="success"
v-if="row.promotionStatus == 'NEW' || row.promotionStatus == 'CLOSE'" v-if="row.promotionStatus == 'CLOSE'"
size="small" size="small"
@click="open(row)" @click="open(row)"
>开启</Button >开启</Button
@ -345,4 +345,8 @@ export default {
</script> </script>
<style lang="scss"> <style lang="scss">
@import "@/styles/table-common.scss"; @import "@/styles/table-common.scss";
.row Button {
margin-right: 4px;
}
</style> </style>