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> --> </template> -->
</el-form-item> </el-form-item>
<el-form-item label="时间范围" <el-form-item label="时间范围"
prop="startTime"> prop="startDate">
<el-date-picker v-model="timeRange" <el-date-picker v-model="timeRange"
type="daterange" type="daterange"
clearable clearable
@ -49,7 +49,11 @@
<!-- <el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column> --> <!-- <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 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="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="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="closedCount" label="办结数" header-align="center" align="center" />
<el-table-column min-width="110" prop="projectAve" 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: '', timeRange: '',
dataForm: { dataForm: {
agencyId: '', agencyId: '',
startTime: '', startDate: '',
endTime: '', endDate: '',
type: '' type: ''
}, },
total: 0, total: 0,
@ -137,11 +141,11 @@ export default {
watch: { watch: {
timeRange (val) { timeRange (val) {
if (Array.isArray(val) && val.length == 2) { if (Array.isArray(val) && val.length == 2) {
this.dataForm.startTime = val[0]; this.dataForm.startDate = val[0];
this.dataForm.endTime = val[1]; this.dataForm.endDate = val[1];
} else { } else {
this.dataForm.startTime = ""; this.dataForm.startDate = "";
this.dataForm.endTime = ""; this.dataForm.endDate = "";
} }
} }
}, },
@ -154,11 +158,15 @@ export default {
}, },
}, },
methods: { methods: {
handleClick(row) {
this.dataForm.agencyId = row.orgId
this.handleSearch()
},
resetForm(formName) { resetForm(formName) {
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
this.timeRange = ""; this.timeRange = "";
this.dataForm.startTime = ""; this.dataForm.startDate = "";
this.dataForm.endTime = ""; this.dataForm.endDate = "";
this.dataForm.type = ""; this.dataForm.type = "";
this.pageNo = 1 this.pageNo = 1
this.getTableList() this.getTableList()

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

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

Loading…
Cancel
Save