tianq 2 years ago
parent
commit
dbf7693822
  1. 5
      src/views/modules/census/census-accountActiveList.vue
  2. 6
      src/views/modules/census/census-accountList.vue
  3. 12
      src/views/modules/census/census-nineList.vue
  4. 62
      src/views/modules/census/census-orgStatusList.vue

5
src/views/modules/census/census-accountActiveList.vue

@ -207,6 +207,11 @@ export default {
}, },
handleSearch(val) { handleSearch(val) {
let tmp = this.formData.orgId;
if (!tmp && typeof tmp != 'undefined' && tmp != 0) {
this.formData.orgId = '';
this.formData.level = '';
}
console.log(this.formData); console.log(this.formData);
this.pageNo = 1; this.pageNo = 1;
this.getTableData(); this.getTableData();

6
src/views/modules/census/census-accountList.vue

@ -271,6 +271,12 @@ export default {
}, },
methods: { methods: {
handleSearch(val) { handleSearch(val) {
let tmp = this.formData.orgId;
if (!tmp && typeof tmp != 'undefined' && tmp != 0) {
this.formData.orgId = '';
this.formData.level = '';
}
this.getCountLevel(); this.getCountLevel();
this.getTableData(); this.getTableData();
this.getsubData(); this.getsubData();

12
src/views/modules/census/census-nineList.vue

@ -90,8 +90,8 @@
:height="maxTableHeight" :height="maxTableHeight"
> >
<el-table-column label="序号" fixed="left" type="index" align="center" width="50" /> <el-table-column label="序号" fixed="left" type="index" align="center" width="50" />
<el-table-column prop="placeOrgName" align="center" label="场所名称" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="placeOrgName" align="center" label="场所名称" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="placeTypeName" align="center" label="场所类型" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="scaleName" align="center" label="规模" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="scaleName" align="center" label="规模" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="personInCharge" align="center" label="负责人" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="personInCharge" align="center" label="负责人" :show-overflow-tooltip="true"></el-table-column>
<el-table-column prop="mobile" align="center" label="联系方式" :show-overflow-tooltip="true"></el-table-column> <el-table-column prop="mobile" align="center" label="联系方式" :show-overflow-tooltip="true"></el-table-column>
@ -246,6 +246,7 @@ export default {
let tmp = this.formData.orgId; let tmp = this.formData.orgId;
if (!tmp && typeof tmp != 'undefined' && tmp != 0) { if (!tmp && typeof tmp != 'undefined' && tmp != 0) {
this.formData.orgId = ''; this.formData.orgId = '';
this.orgType = '';
} }
this.pageNo = 1; this.pageNo = 1;
@ -348,6 +349,15 @@ export default {
this.$refs.pieChart.clear(); this.$refs.pieChart.clear();
// pieChart // pieChart
this.pieOption = { this.pieOption = {
tooltip: {
trigger: 'item',
formatter: '总数 : {c}<br/> 占比 : {d}%',
backgroundColor: 'rgb(134,134,134)',
borderColor: 'rgb(134,134,134)',
textStyle: {
color: '#fff'
}
},
color: this.color, color: this.color,
title: { title: {
text: this.pieData.total, text: this.pieData.total,

62
src/views/modules/census/census-orgStatusList.vue

@ -4,7 +4,7 @@
<div class="div_search"> <div class="div_search">
<el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'80px'"> <el-form :inline="true" :model="formData" ref="ref_searchform" :label-width="'80px'">
<div> <div>
<el-form-item label="所属组织" prop="gridId"> <el-form-item label="所属组织" prop="orgId">
<el-cascader <el-cascader
class="customer_cascader" class="customer_cascader"
ref="myCascader" ref="myCascader"
@ -74,10 +74,11 @@
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :span="24"> <el-col :span="24">
<div class="div_table"> <div class="div_table">
<div class="div_table_title">下级社区数量统计 <div class="div_table_title">
下级社区数量统计
<el-form :inline="true" :model="formData2" ref="ref_searchform2" :label-width="'80px'" style="display: inline-block;margin-left: 20px;"> <el-form :inline="true" :model="formData2" ref="ref_searchform2" :label-width="'80px'" style="display: inline-block;margin-left: 20px;">
<div> <div>
<el-form-item label="" prop="startDate" > <el-form-item label="" prop="startDate">
<el-date-picker <el-date-picker
v-model="formData2.startDate" v-model="formData2.startDate"
:picker-options="startPickerOptions" :picker-options="startPickerOptions"
@ -104,8 +105,6 @@
</el-form-item> </el-form-item>
</div> </div>
</el-form> </el-form>
</div> </div>
<div :style="'height:' + TableHeight + 'px;margin-top:20px'" :h="maxTableHeight"> <div :style="'height:' + TableHeight + 'px;margin-top:20px'" :h="maxTableHeight">
<screen-echarts-frame <screen-echarts-frame
@ -186,10 +185,11 @@ export default {
orgOptions: [], orgOptions: [],
orgOptionProps: { orgOptionProps: {
multiple: false, multiple: false,
value: 'agencyId', checkStrictly: true,
label: 'agencyName', emitPath: false,
children: 'subAgencyList', children: 'subAgencyList',
checkStrictly: true label: 'agencyName',
value: 'agencyId'
}, },
tableData: [], tableData: [],
tableDataView: [], tableDataView: [],
@ -222,7 +222,8 @@ export default {
multipleSelection: [], multipleSelection: [],
TableHeight: '', TableHeight: '',
pieData: {} pieData: {},
agencyId: ''
}; };
}, },
components: { components: {
@ -351,13 +352,15 @@ export default {
console.log('this.formData.orgId', this.formData.orgId); console.log('this.formData.orgId', this.formData.orgId);
let agencyId = ''; let agencyId = '';
if (this.formData.orgId == '') { let tmp = this.formData.orgId;
agencyId = this.agencyId; if (!tmp && typeof tmp != 'undefined' && tmp != 0 && tmp != null) {
this.level = this.user.level;
} else {
agencyId = this.formData.orgId; agencyId = this.formData.orgId;
this.level = this.formData.level; this.level = this.formData.level;
} else {
agencyId = this.agencyId;
this.level = this.user.level;
} }
const url = '/gov/org/customeragency/getAgencyCountList'; const url = '/gov/org/customeragency/getAgencyCountList';
let params = { agencyId: agencyId }; let params = { agencyId: agencyId };
const { data, code, msg } = await requestGet(url, params); const { data, code, msg } = await requestGet(url, params);
@ -371,39 +374,16 @@ export default {
this.$message.error(msg); this.$message.error(msg);
} }
}, },
async getTableData() { async getTableData() {},
// this.tableLoading = true;
// const url = '/gov/org/customeragency/getCommunityCountList';
// let agencyId = '';
// if (this.formData.orgId == '') {
// agencyId = this.agencyId;
// } else {
// agencyId = this.formData.orgId;
// }
// const { data, code, msg } = await requestPost(url, {
// {agencyId:agencyId}
// });
// this.tableLoading = false;
// if (code === 0) {
// this.total = data.total || 0;
// this.tableData = data.list
// ? data.list.map(item => {
// return item;
// })
// : [];
// // console.log('this.tableData ', this.tableData);
// } else {
// this.$message.error(msg);
// }
},
async getsubData() { async getsubData() {
this.$refs.pieChart.showLoading(); this.$refs.pieChart.showLoading();
let url = '/gov/org/customeragency/getCommunityCountList'; let url = '/gov/org/customeragency/getCommunityCountList';
let agencyId = ''; let agencyId = '';
if (this.formData.orgId == '') { let tmp = this.formData.orgId;
agencyId = this.agencyId; if (!tmp && typeof tmp != 'undefined' && tmp != 0 && tmp != null) {
} else {
agencyId = this.formData.orgId; agencyId = this.formData.orgId;
} else {
agencyId = this.agencyId;
} }
const { data, code, msg } = await requestPost(url, { agencyId: agencyId, timeStart: this.formData2.startDate, timeEnd: this.formData2.endDate }); const { data, code, msg } = await requestPost(url, { agencyId: agencyId, timeStart: this.formData2.startDate, timeEnd: this.formData2.endDate });

Loading…
Cancel
Save