1;默认时间前端
This commit is contained in:
parent
fae0ca8d6c
commit
66274e03ac
|
@ -169,7 +169,7 @@ export default {
|
||||||
platform: null,
|
platform: null,
|
||||||
updateType: null,
|
updateType: null,
|
||||||
integralUpdateNum: null,
|
integralUpdateNum: null,
|
||||||
integralUpdateTime: new Date(),
|
integralUpdateTime: null,
|
||||||
integralBalance: null,
|
integralBalance: null,
|
||||||
agentRemark: null,
|
agentRemark: null,
|
||||||
},
|
},
|
||||||
|
@ -181,9 +181,16 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
this.queryParams.integralUpdateTime = this.formatDate(new Date());
|
||||||
this.getList();
|
this.getList();
|
||||||
},
|
},
|
||||||
methods: {
|
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() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
|
|
Loading…
Reference in New Issue