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