This commit is contained in:
yanran200730
2022-03-29 09:39:51 +08:00
parent 34631c0668
commit 45a1f53627
2 changed files with 36 additions and 24 deletions

View File

@@ -1,14 +1,14 @@
<template> <template>
<ai-list class="notice"> <ai-list class="notice">
<template slot="title"> <template slot="title">
<ai-title title="走访排查情况统计" isShowBottomBorder :isShowArea="true" isShowBack @onBackClick="back" v-model="search.areaId" :instance="instance" @change="getList"></ai-title> <ai-title title="走访排查情况统计" isShowBottomBorder isShowBack @onBackClick="back"></ai-title>
</template> </template>
<template slot="content"> <template slot="content">
<ai-search-bar> <ai-search-bar>
<template #left> <template #left>
<el-date-picker <el-date-picker
value-format="yyyy-MM" value-format="yyyy-MM"
v-model="search.beginDate" v-model="search.startDate"
type="month" type="month"
size="small" size="small"
unlink-panels unlink-panels
@@ -25,12 +25,12 @@
</template> </template>
<template #right> <template #right>
<el-input <el-input
v-model="search.name" v-model="search.createUserName"
size="small" size="small"
placeholder="网格员姓名" placeholder="网格员姓名"
clearable clearable
v-throttle="() => {search.current = 1, getList()}" v-throttle="() => {search.current = 1, getList()}"
@clear="search.current = 1, search.name = '', getList()" @clear="search.current = 1, search.createUserName = '', getList()"
suffix-icon="iconfont iconSearch"> suffix-icon="iconfont iconSearch">
</el-input> </el-input>
</template> </template>
@@ -64,12 +64,10 @@
search: { search: {
current: 1, current: 1,
size: 10, size: 10,
title: '', createUserName: '',
areaId: '', endDate: '',
beginDate: '', startDate: ''
endDate: ''
}, },
ids: [],
total: 10, total: 10,
tableData: [] tableData: []
} }
@@ -80,27 +78,24 @@
colConfigs () { colConfigs () {
return [ return [
{ prop: 'title', label: '考核月份', align: 'left' }, { prop: 'month', label: '考核月份', align: 'left' },
{ prop: 'createUserName', label: '网格员姓名', align: 'center' }, { prop: 'createUserName', label: '网格员姓名', align: 'center' },
{ prop: 'createTime', label: '网格员联系方式', align: 'center' }, { prop: 'phone', label: '网格员联系方式', align: 'center' },
{ prop: 'createTime', label: '监测家庭数量', align: 'center' }, { prop: 'povertyNumber', label: '监测家庭数量', align: 'center' },
{ prop: 'createUserName', label: '开展走访次数', align: 'center' }, { prop: 'logNumber', label: '开展走访次数', align: 'center' },
{ prop: 'createTime', label: '已走访家庭数量', align: 'center' }, { prop: 'povertyHouseholdNumber', label: '已走访家庭数量', align: 'center' },
{ prop: 'createTime', label: '走访进度', align: 'center' } { prop: 'finishRate', label: '走访进度', align: 'center', formart: v => v * 100 + '%' }
] ]
} }
}, },
created () { created () {
this.search.areaId = this.user.info.areaId this.getList()
this.dict.load('epidemicRecentTestResult').then(() => {
this.getList()
})
}, },
methods: { methods: {
getList() { getList() {
this.instance.post(`/app/appmininotice/list`, null, { this.instance.post(`/app/statistics/preventionreturntopoverty/queryPreventionPovertyLogCount`, null, {
params: { params: {
...this.search ...this.search
} }

View File

@@ -42,9 +42,9 @@
<template #content> <template #content>
<div class="progress-wrapper"> <div class="progress-wrapper">
<div class="progress"> <div class="progress">
<div class="item" v-for="(item, index) in 10" :key="index"> <div class="item" v-for="(item, index) in logList" :key="index">
<h2>网格</h2> <h2>{{ item.createUserName }}</h2>
<el-progress :percentage="99"></el-progress> <el-progress :percentage="item.finishRate * 100"></el-progress>
</div> </div>
</div> </div>
</div> </div>
@@ -155,6 +155,7 @@
dictName: '大于0次', dictName: '大于0次',
dictValue: '1' dictValue: '1'
}], }],
logList: [],
info: {}, info: {},
ids: [], ids: [],
total: 10, total: 10,
@@ -190,10 +191,24 @@
this.getList() this.getList()
}) })
this.getTotal() this.getTotal()
this.getLogCount()
}, },
methods: { methods: {
getList() { getList() {
this.instance.post(`/app/statistics/preventionreturntopoverty/queryPreventionPovertyLogCount`, null, {
params: {
size: 15,
current: 1
}
}).then(res => {
if (res.code == 0) {
this.logList = res.data.records
}
})
},
getLogCount() {
this.instance.post(`/app/apppreventionreturntopovertylog/service-rating-list`, null, { this.instance.post(`/app/apppreventionreturntopovertylog/service-rating-list`, null, {
params: { params: {
...this.search ...this.search
@@ -290,8 +305,10 @@
} }
h2 { h2 {
margin-right: 10px; width: 90px;
margin-right: 30px;
font-size: 14px; font-size: 14px;
text-align: right;
color: #333; color: #333;
} }
} }