1;默认时间前端
This commit is contained in:
parent
fae0ca8d6c
commit
66274e03ac
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue