Browse Source

修改了报告查询时刷新数据及时间的问题

V1.0
duanliangtao 2 years ago
parent
commit
b9a4e8f045
  1. 36
      src/views/modules/goverhotline/index.vue

36
src/views/modules/goverhotline/index.vue

@ -5,11 +5,11 @@
<div class="m-search">
<el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'100px'">
<el-form-item label="统计时间">
<el-date-picker v-model="formData.queryDateStart" type="date" value-format="yyyy-MM" placeholder="开始时间"
<el-date-picker v-model="formData.queryDateStart" type="date" value-format="yyyy-MM-dd" placeholder="开始时间"
style="width: 202px" clearable>
</el-date-picker>
<el-date-picker v-model="formData.queryDateEnd" type="date" value-format="yyyy-MM" placeholder="结束时间"
<el-date-picker v-model="formData.queryDateEnd" type="date" value-format="yyyy-MM-dd" placeholder="结束时间"
style="width: 202px" clearable>
</el-date-picker>
</el-form-item>
@ -23,7 +23,7 @@
<div class="m-table">
<div style="text-align: center;">
<h1>{{ report.streetName }}2023年1月1日至6月31日</h1>
<h1>{{ report.streetName }}{{ report.period }}</h1>
<h1>政务热线运行情况分析报告</h1>
</div>
<div>
@ -548,8 +548,36 @@ export default {
this.showFormList = false;
},
//
handleSearch(val) {
async handleSearch(val) {
console.log(this.formData);
//
this.cleanReportData();
await this.getTableData();
await this.initEcharts();
},
cleanReportData(){
console.log("刷新数据");
this.report={}
this.addressData=[]
this.mobileData=[]
this.addressMobileData=[]
this.categoryChartOption.series[0].data=[];
this.categoryChartOption.xAxis.data=[];
this.categoryPieOption.series[0].data=[];
this.communityOption.xAxis[0].data=[];
this.communityOption.series[0].data=[];
this.communityOption.series[1].data=[];
this.departOption.xAxis[0].data=[];
this.departOption.series[0].data=[];
this.departOption.series[1].data=[];
this.hotlineChartOption.xAxis.data=[];
this.hotlineChartOption.series[0].data=[];
},
//

Loading…
Cancel
Save