Browse Source

数据统计----导出,点击

master
13176889840 3 years ago
parent
commit
d997809ced
  1. 28
      src/views/modules/shequzhili/statics/cEvent.vue
  2. 18
      src/views/modules/shequzhili/statics/gridEvent.vue

28
src/views/modules/shequzhili/statics/cEvent.vue

@ -13,7 +13,7 @@
</template> -->
</el-form-item>
<el-form-item label="时间范围"
prop="startTime">
prop="startDate">
<el-date-picker v-model="timeRange"
type="daterange"
clearable
@ -49,7 +49,11 @@
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> -->
<el-table-column type="index" label="序号" header-align="center" align="center" width="50"></el-table-column>
<el-table-column min-width="100" prop="memberCount" label="网格员数" header-align="center" align="center" />
<el-table-column min-width="100" prop="orgName" label="所属社区" header-align="center" align="center" />
<el-table-column min-width="100" prop="orgName" label="所属社区" header-align="center" align="center" >
<template slot-scope="scope">
<a class="name-a" style="color: #2195fe;" @click="handleClick(scope.row)">{{scope.row.orgName}}</a>
</template>
</el-table-column>
<el-table-column min-width="100" prop="projectCount" label="上报数量" header-align="center" align="center" />
<el-table-column min-width="110" prop="closedCount" label="办结数" header-align="center" align="center" />
<el-table-column min-width="110" prop="projectAve" label="人均上报" header-align="center" align="center" />
@ -116,8 +120,8 @@ export default {
timeRange: '',
dataForm: {
agencyId: '',
startTime: '',
endTime: '',
startDate: '',
endDate: '',
type: ''
},
total: 0,
@ -137,11 +141,11 @@ export default {
watch: {
timeRange (val) {
if (Array.isArray(val) && val.length == 2) {
this.dataForm.startTime = val[0];
this.dataForm.endTime = val[1];
this.dataForm.startDate = val[0];
this.dataForm.endDate = val[1];
} else {
this.dataForm.startTime = "";
this.dataForm.endTime = "";
this.dataForm.startDate = "";
this.dataForm.endDate = "";
}
}
},
@ -154,11 +158,15 @@ export default {
},
},
methods: {
handleClick(row) {
this.dataForm.agencyId = row.orgId
this.handleSearch()
},
resetForm(formName) {
this.$refs[formName].resetFields();
this.timeRange = "";
this.dataForm.startTime = "";
this.dataForm.endTime = "";
this.dataForm.startDate = "";
this.dataForm.endDate = "";
this.dataForm.type = "";
this.pageNo = 1
this.getTableList()

18
src/views/modules/shequzhili/statics/gridEvent.vue

@ -17,7 +17,7 @@
</template> -->
</el-form-item>
<el-form-item label="时间范围"
prop="startTime">
prop="startDate">
<el-date-picker v-model="timeRange"
type="daterange"
clearable
@ -116,8 +116,8 @@ export default {
timeRange: '',
dataForm: {
orgId: '',
startTime: '',
endTime: '',
startDate: '',
endDate: '',
orgType: ''
},
total: 0,
@ -138,11 +138,11 @@ export default {
watch: {
timeRange (val) {
if (Array.isArray(val) && val.length == 2) {
this.dataForm.startTime = val[0];
this.dataForm.endTime = val[1];
this.dataForm.startDate = val[0];
this.dataForm.endDate = val[1];
} else {
this.dataForm.startTime = "";
this.dataForm.endTime = "";
this.dataForm.startDate = "";
this.dataForm.endDate = "";
}
}
},
@ -165,8 +165,8 @@ export default {
this.$refs[formName].resetFields();
this.timeRange = "";
this.orgId = ''
this.dataForm.startTime = "";
this.dataForm.endTime = "";
this.dataForm.startDate = "";
this.dataForm.endDate = "";
this.dataForm.orgType = "";
this.handleSearch();
},

Loading…
Cancel
Save