|
@@ -98,7 +98,7 @@
|
|
|
</div>
|
|
|
<!-- 分页 -->
|
|
|
<div class="fr">
|
|
|
- <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="10" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-sizes="[10, 20, 30, 50]" :page-size="pageSize" layout="total, sizes, prev, pager, next, jumper" :total="listTotal">
|
|
|
</el-pagination>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -366,9 +366,9 @@ export default {
|
|
|
// 更改每页数量
|
|
|
handleSizeChange(val) {
|
|
|
this.pageSize = val;
|
|
|
- this.currentPage = 1;
|
|
|
+
|
|
|
this.getList({
|
|
|
- pageNum: 1,
|
|
|
+ pageNum: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
keyword: this.searchForm.customerName,
|
|
|
currentStatus: this.searchForm.currentStatus,
|
|
@@ -378,8 +378,8 @@ export default {
|
|
|
handleCurrentChange(val) {
|
|
|
this.currentPage = val;
|
|
|
this.getList({
|
|
|
- pageNum: val,
|
|
|
- pageSize: 10,
|
|
|
+ pageNum: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
keyword: this.searchForm.customerName,
|
|
|
currentStatus: this.searchForm.currentStatus,
|
|
|
});
|
|
@@ -391,7 +391,7 @@ export default {
|
|
|
keyword: this.searchForm.customerName,
|
|
|
currentStatus: this.searchForm.currentStatus,
|
|
|
pageNum: 1,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: this.pageSize,
|
|
|
});
|
|
|
},
|
|
|
//重置
|
|
@@ -423,6 +423,9 @@ export default {
|
|
|
this.dialogForm.customerName = res.name;
|
|
|
this.dialogForm.customerNumber = res.number;
|
|
|
|
|
|
+ if (!this.dialogForm.endTime) {
|
|
|
+ this.dialogForm.endTime = "2100-01-01 00:00:00";
|
|
|
+ }
|
|
|
if (this.dialogForm.id) {
|
|
|
await editDealerDeposit({
|
|
|
...this.dialogForm,
|
|
@@ -430,9 +433,6 @@ export default {
|
|
|
});
|
|
|
this.$message.success("编辑成功");
|
|
|
} else {
|
|
|
- if (this.dialogForm.endTime === "") {
|
|
|
- this.dialogForm.endTime = "2100-01-01 00:00:00";
|
|
|
- }
|
|
|
await getDealerDepositAdd({
|
|
|
...this.dialogForm,
|
|
|
rate: Number(this.dialogForm.rate / 100),
|