Commit d8a00b16 authored by Ted Xu's avatar Ted Xu

fix: 白名单数据页日期传给后端格式错误

parent 6e7bedec
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->
<!-- <script>console.log('v1.1.0')</script> --> <!-- <script>console.log('v1.1.0')</script> -->
<script>console.log('dev: 1.1.0')</script> <!-- <script>console.log('dev: 1.1.0')</script> -->
<!-- <script>console.log('production: 1.0.0')</script> --> <script>console.log('production: 1.1.0')</script>
</body> </body>
</html> </html>
...@@ -93,8 +93,8 @@ export default Vue.extend({ ...@@ -93,8 +93,8 @@ export default Vue.extend({
poolId: this.poolList[this.currPoolIndex].id, poolId: this.poolList[this.currPoolIndex].id,
} as any } as any
if (this.datePick[0] && this.datePick[1]) { if (this.datePick[0] && this.datePick[1]) {
payload.startTime = dayjs(this.datePick[0]).format('YYYY-MM-DD') payload.startTime = dayjs(this.datePick[0]).unix()
payload.endTime = dayjs(this.datePick[1]).format('YYYY-MM-DD') payload.endTime = dayjs(this.datePick[1]).unix()
} }
const result = await getWhiteDailyList(payload) const result = await getWhiteDailyList(payload)
this.list = result.data.list this.list = result.data.list
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment