1;默认时间前端

This commit is contained in:
wangshuai 2024-08-10 09:25:19 +08:00
parent fae0ca8d6c
commit 66274e03ac
1 changed files with 8 additions and 1 deletions

View File

@ -169,7 +169,7 @@ export default {
platform: null,
updateType: null,
integralUpdateNum: null,
integralUpdateTime: new Date(),
integralUpdateTime: null,
integralBalance: null,
agentRemark: null,
},
@ -181,9 +181,16 @@ export default {
};
},
created() {
this.queryParams.integralUpdateTime = this.formatDate(new Date());
this.getList();
},
methods: {
formatDate(date) {
const year = date.getFullYear();
const month = (date.getMonth() + 1).toString().padStart(2, '0');
const day = date.getDate().toString().padStart(2, '0');
return `${year}-${month}-${day}`;
},
/** 查询积分变更记录列表 */
getList() {
this.loading = true;