统计
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
<template>
|
||||
<ai-list class="AppAssessment">
|
||||
<template slot="title">
|
||||
<ai-title title="工作考核" isShowBottomBorder :hideLevel="hideLevel" :isShowArea="true" v-model="search.areaId" :instance="instance" @change="getList"></ai-title>
|
||||
<ai-title title="工作考核" isShowBottomBorder :hideLevel="hideLevel" :isShowArea="true" v-model="search.areaId" :instance="instance" @change="onChange"></ai-title>
|
||||
</template>
|
||||
<template slot="content">
|
||||
<div class="statistics-top">
|
||||
<div class="statistics-top__item">
|
||||
<span>活动登记数量</span>
|
||||
<h2 style="color: #2266FF;">{{ info['丧礼登记数量'] }}</h2>
|
||||
<span>监测家庭户数</span>
|
||||
<h2 style="color: #2266FF;">{{ totalInfo['监测家庭户数'] }}</h2>
|
||||
</div>
|
||||
<div class="statistics-top__item">
|
||||
<span>干部参与和操办登记数量</span>
|
||||
<h2 style="color: #22AA99;">{{ info['干部参与和操办登记数量'] }}</h2>
|
||||
<span>监测对象总数</span>
|
||||
<h2 style="color: #22AA99;">{{ totalInfo['监测对象总数'] }}</h2>
|
||||
</div>
|
||||
<div class="statistics-top__item">
|
||||
<span>婚礼登记数量</span>
|
||||
<h2 style="color: #F8B425">{{ info['婚礼登记数量'] }}</h2>
|
||||
<span>解除风险人数</span>
|
||||
<h2 style="color: #F8B425">{{ totalInfo['解除风险人数'] }}</h2>
|
||||
</div>
|
||||
<div class="statistics-top__item">
|
||||
<span>丧礼登记数量</span>
|
||||
<h2 style="color: red">{{ info['丧礼登记数量'] }}</h2>
|
||||
<span>解除风险户数</span>
|
||||
<h2 style="color: red">{{ totalInfo['解除风险户数'] }}</h2>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
@@ -54,7 +54,7 @@
|
||||
<template #left>
|
||||
<el-date-picker
|
||||
value-format="yyyy-MM-dd"
|
||||
v-model="search.createTimeStart"
|
||||
v-model="search.beginDate"
|
||||
type="date"
|
||||
size="small"
|
||||
unlink-panels
|
||||
@@ -62,29 +62,29 @@
|
||||
@change="search.current = 1, getList()" />
|
||||
<el-date-picker
|
||||
value-format="yyyy-MM-dd"
|
||||
v-model="search.createTimeEnd"
|
||||
v-model="search.endDate"
|
||||
type="date"
|
||||
size="small"
|
||||
unlink-panels
|
||||
placeholder="请选择结束日期"
|
||||
@change="search.current = 1, getList()" />
|
||||
<ai-select
|
||||
v-model="search.riskType"
|
||||
v-model="search.isGird"
|
||||
clearable
|
||||
placeholder="请选择是否关联网格"
|
||||
:selectList="dict.getDict('fpRiskType')"
|
||||
:selectList="girdDict"
|
||||
@change="search.current = 1, getList()">
|
||||
</ai-select>
|
||||
<ai-select
|
||||
v-model="search.riskType"
|
||||
v-model="search.isVisit"
|
||||
clearable
|
||||
placeholder="请选择走访次数"
|
||||
:selectList="dict.getDict('fpRiskType')"
|
||||
:selectList="visitDict"
|
||||
@change="search.current = 1, getList()">
|
||||
</ai-select>
|
||||
<ai-download :instance="instance" url="/app/apppreventionreturntopovertyriskperson/export" :params="search" fileName="帮扶走访" :disabled="tableData.length == 0">
|
||||
<!-- <ai-download :instance="instance" url="/app/apppreventionreturntopovertyriskperson/export" :params="search" fileName="帮扶走访" :disabled="tableData.length == 0">
|
||||
<el-button icon="iconfont iconExported" :disabled="tableData.length == 0">导出</el-button>
|
||||
</ai-download>
|
||||
</ai-download> -->
|
||||
</template>
|
||||
<template #right>
|
||||
<el-input
|
||||
@@ -109,12 +109,6 @@
|
||||
:size.sync="search.size"
|
||||
@selection-change="(v) => (ids = v.map((e) => e.id))"
|
||||
@getList="getList">
|
||||
<el-table-column slot="options" width="90px" fixed="right" label="操作" align="center">
|
||||
<div class="table-options" slot-scope="{ row }">
|
||||
<el-button type="text" @click="toAdd(row.id)">编辑</el-button>
|
||||
<el-button type="text" @click="remove(row.id)">删除</el-button>
|
||||
</div>
|
||||
</el-table-column>
|
||||
</ai-table>
|
||||
</template>
|
||||
</ai-card>
|
||||
@@ -137,15 +131,34 @@
|
||||
search: {
|
||||
current: 1,
|
||||
size: 10,
|
||||
title: '',
|
||||
areaId: ''
|
||||
name: '',
|
||||
areaId: '',
|
||||
beginDate: '',
|
||||
endDate: '',
|
||||
isVisit: '',
|
||||
isGird: ''
|
||||
},
|
||||
visitDict: [{
|
||||
dictName: '否',
|
||||
dictValue: '0'
|
||||
}, {
|
||||
dictName: '是否',
|
||||
dictValue: '1'
|
||||
}],
|
||||
girdDict: [{
|
||||
dictName: '等于0次',
|
||||
dictValue: '0'
|
||||
}, {
|
||||
dictName: '大于0次',
|
||||
dictValue: '1'
|
||||
}],
|
||||
info: {
|
||||
|
||||
},
|
||||
ids: [],
|
||||
total: 10,
|
||||
hideLevel: 3,
|
||||
totalInfo: {},
|
||||
tableData: []
|
||||
}
|
||||
},
|
||||
@@ -155,26 +168,32 @@
|
||||
|
||||
colConfigs () {
|
||||
return [
|
||||
{ prop: 'title', label: '审批负责人', align: 'left' },
|
||||
{ prop: 'createUserName', label: '所属地区', align: 'center' },
|
||||
{ prop: 'createTime', label: '操作时间', align: 'center' },
|
||||
{ prop: 'createTime', label: '操作人', align: 'center' },
|
||||
{ slot: 'options', label: '操作' }
|
||||
{ prop: 'name', label: '户主姓名', align: 'left' },
|
||||
{ prop: 'sex', label: '性别', align: 'center', formart: v => this.dict.getLabel('sex', v) },
|
||||
{ prop: 'idNumber', label: '身份证号', align: 'center' },
|
||||
{ prop: 'householdPhone', label: '户主联系方式', align: 'center' },
|
||||
{ prop: 'address', label: '家庭住址', align: 'center' },
|
||||
{ prop: 'status', label: '状态', align: 'center', formart: v => this.dict.getLabel('fpRiskPersonStatus', v) },
|
||||
{ prop: 'girdMemberName', label: '网格员', align: 'center' },
|
||||
{ prop: 'girdMemberPhone', label: '网格员电话', align: 'center' },
|
||||
{ prop: 'visitCount', label: '走访次数', align: 'center' }
|
||||
]
|
||||
}
|
||||
},
|
||||
|
||||
created () {
|
||||
this.search.areaId = this.user.info.areaId
|
||||
this.hideLevel = this.user.info.areaList.length
|
||||
this.dict.load('epidemicRecentTestResult').then(() => {
|
||||
this.hideLevel = this.user.info.areaList.length - 1
|
||||
|
||||
this.dict.load('fpRiskPersonStatus', 'sex').then(() => {
|
||||
this.getList()
|
||||
})
|
||||
this.getTotal()
|
||||
},
|
||||
|
||||
methods: {
|
||||
getList() {
|
||||
this.instance.post(`/app/appmininotice/list`, null, {
|
||||
this.instance.post(`/app/apppreventionreturntopovertylog/service-rating-list`, null, {
|
||||
params: {
|
||||
...this.search
|
||||
}
|
||||
@@ -186,6 +205,23 @@
|
||||
})
|
||||
},
|
||||
|
||||
onChange () {
|
||||
this.getList()
|
||||
this.getTotal()
|
||||
},
|
||||
|
||||
getTotal() {
|
||||
this.instance.post(`/app/statistics/preventionreturntopoverty/povertyReportNumber`, null, {
|
||||
params: {
|
||||
...this.search
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
this.totalInfo = res.data
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
removeAll () {
|
||||
var id = this.ids.join(',')
|
||||
this.remove(id)
|
||||
|
||||
Reference in New Issue
Block a user