Commit bd3dbaf9 by 姜鹏凯

再次调整

1 parent 7b140d78
...@@ -305,10 +305,10 @@ ...@@ -305,10 +305,10 @@
}, },
mounted() {}, mounted() {},
created() { created() {
this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD')
this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD')
this.value1[1] = moment(new Date()).format('YYYY-MM-DD') this.value1[1] = moment(new Date()).format('YYYY-MM-DD')
this.value1[0] = moment(new Date()).subtract(1, 'months').format('YYYY-MM-DD') this.value1[0] = moment(new Date()).subtract(1, 'months').format('YYYY-MM-DD')
this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD')
this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD')
this.getList() this.getList()
} }
} }
......
...@@ -249,10 +249,10 @@ ...@@ -249,10 +249,10 @@
}, },
mounted() {}, mounted() {},
created() { created() {
this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD')
this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD')
this.value1[1] = moment(new Date()).format('YYYY-MM-DD') this.value1[1] = moment(new Date()).format('YYYY-MM-DD')
this.value1[0] = moment(new Date()).subtract(1, 'months').format('YYYY-MM-DD') this.value1[0] = moment(new Date()).subtract(1, 'months').format('YYYY-MM-DD')
this.query.beginTime = moment(this.value1[0]).format('YYYY-MM-DD')
this.query.endTime = moment(this.value1[1]).format('YYYY-MM-DD')
this.getList() this.getList()
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!