积分明细 默认显示七天数据

This commit is contained in:
shijingjing
2022-12-07 16:59:52 +08:00
parent 4d3c2ec149
commit a4ce4af297

View File

@@ -138,6 +138,7 @@
</template> </template>
<script> <script>
import dayjs from 'dayjs'
import { mapState } from "vuex" import { mapState } from "vuex"
import * as echarts from 'echarts'; import * as echarts from 'echarts';
export default { export default {
@@ -208,10 +209,14 @@ export default {
} }
}, },
created() { created() {
this.time = [dayjs().subtract(7,'week').format('YYYY-MM-DD'),dayjs().format('YYYY-MM-DD')]
this.getTableData()
this.$dict.load('epidemicDangerousAreaLevel','integralType','integralRuleEvent','integralRuleEventType').then(() => { this.$dict.load('epidemicDangerousAreaLevel','integralType','integralRuleEvent','integralRuleEventType').then(() => {
this.getStatistics() this.getStatistics()
this.getGridList() this.getGridList()
this.getRanking() this.getRanking()
this.search.startTime = this.time?.[0]
this.search.endTime = this.time?.[1]
this.getTableData() this.getTableData()
}) })
}, },
@@ -402,7 +407,6 @@ export default {
] ]
}, true); }, true);
window.addEventListener("resize", this.onResize2) window.addEventListener("resize", this.onResize2)
// this.extension(this.myChart2)
}, },
onResize1() { onResize1() {
this.myChart1.resize() this.myChart1.resize()