|
|
@ -13,16 +13,16 @@ |
|
|
|
</template> --> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label="时间范围" |
|
|
|
prop="startTime"> |
|
|
|
prop="startDate"> |
|
|
|
<el-date-picker v-model="timeRange" |
|
|
|
type="daterange" |
|
|
|
type="datetimerange" |
|
|
|
clearable |
|
|
|
size="small" |
|
|
|
:picker-options="pickerOptions" |
|
|
|
range-separator="至" |
|
|
|
start-placeholder="选择日期" |
|
|
|
end-placeholder="选择日期" |
|
|
|
value-format="yyyyMMdd"> |
|
|
|
value-format="yyyyMMddHHmmss"> |
|
|
|
</el-date-picker> |
|
|
|
</el-form-item> |
|
|
|
<el-form-item> |
|
|
@ -48,8 +48,14 @@ |
|
|
|
:height="tableHeight"> |
|
|
|
<!-- <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="orgName" label="所属社区" header-align="center" align="center" > |
|
|
|
<template slot-scope="scope"> |
|
|
|
<span v-if="scope.row.orgType==='agency'"><a class="name-a" style="color: #2195fe;" @click="handleClick(scope.row)">{{scope.row.orgName}}</a></span> |
|
|
|
<span v-else>{{scope.row.orgName}}</span> |
|
|
|
</template> |
|
|
|
</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="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" /> |
|
|
@ -78,8 +84,9 @@ |
|
|
|
style="width: 100%" |
|
|
|
height="200"> |
|
|
|
<!-- <el-table-column type="selection" 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="memberCount" 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="projectAve" label="人均上报" header-align="center" align="center" /> |
|
|
@ -109,15 +116,15 @@ export default { |
|
|
|
totalVisible: false, |
|
|
|
pickerOptions: { |
|
|
|
disabledDate(time) { |
|
|
|
return time.getTime() > (Date.now() - 3600 * 1000 * 24); |
|
|
|
return time.getTime() > Date.now(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
dataList: [], |
|
|
|
timeRange: '', |
|
|
|
dataForm: { |
|
|
|
agencyId: '', |
|
|
|
startTime: '', |
|
|
|
endTime: '', |
|
|
|
startDate: '', |
|
|
|
endDate: '', |
|
|
|
type: '' |
|
|
|
}, |
|
|
|
total: 0, |
|
|
@ -137,11 +144,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 +161,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() |
|
|
|