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. 60
      src/views/modules/census/census-orgStatusList.vue

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

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

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

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

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

@ -90,8 +90,8 @@
:height="maxTableHeight"
>
<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="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="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>
@ -246,6 +246,7 @@ export default {
let tmp = this.formData.orgId;
if (!tmp && typeof tmp != 'undefined' && tmp != 0) {
this.formData.orgId = '';
this.orgType = '';
}
this.pageNo = 1;
@ -348,6 +349,15 @@ export default {
this.$refs.pieChart.clear();
// pieChart
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,
title: {
text: this.pieData.total,

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

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

Loading…
Cancel
Save