diff --git a/src/views/dataBoard/sida/cpts/fwqd.vue b/src/views/dataBoard/sida/cpts/fwqd.vue
index 81167068d..2bd47c3aa 100644
--- a/src/views/dataBoard/sida/cpts/fwqd.vue
+++ b/src/views/dataBoard/sida/cpts/fwqd.vue
@@ -95,20 +95,26 @@ export default {
this.getPie();
},
handleClickItem(item) {
- const { type, name } = item;
- this.$router.push({
- path: '/dataBoard/renfang/resi-analyze',
- query: {
- org_id: this.orgId,
- type,
- type_category: this.currentTab,
- type_name: name
- }
- });
+ // const { type, name } = item;
+ // this.$router.push({
+ // path: '/dataBoard/renfang/resi-analyze',
+ // query: {
+ // org_id: this.orgId,
+ // type,
+ // type_category: this.currentTab,
+ // type_name: name
+ // }
+ // });
},
// 获取房屋总数等
async getInfo() {
- const url = 'resident_analyze';
+ let url = '';
+ if (this.currentTab == '公共服务') {
+ url = 'people_res_view';
+ } else {
+ url = 'goods_res_view';
+ }
+
this.$refs.pieChart.showLoading();
const { data, code, msg } = await requestPostBi(
url,
@@ -157,172 +163,33 @@ export default {
},
setPieData() {
const { currentTab, info } = this;
- if (currentTab == '性别') {
- this.pieData = [
- {
- value: info.male_count || 0,
- type: 'male_count',
- name: '男性'
- },
- {
- value: info.female_count || 0,
- type: 'female_count',
- name: '女性'
- }
- ];
- } else if (currentTab == '户籍') {
- this.pieData = [
- {
- value: info.local_count || 0,
- type: 'local_count',
- name: '本地户籍'
- },
- {
- value: info.field_count || 0,
- type: 'field_count',
- name: '外地户籍'
- }
- ];
- } else if (currentTab == '人户状况') {
- this.pieData = [
- {
- value: info.resi_y_house_y_count || 0,
- type: 'resi_y_house_y_count',
- name: '人户一致'
- },
- {
- value: info.resi_y_house_n_count || 0,
- type: 'resi_y_house_n_count',
- name: '人在户不在'
- },
- {
- value: info.resi_n_house_y_count || 0,
- type: 'resi_n_house_y_count',
- name: '户在人不在'
- }
- ];
- } else if (currentTab == '年龄') {
- this.pieData = [
- {
- value: info.age50_count || 0,
- type: 'age50_count',
- name: '50岁以下'
- },
- {
- value: info.age5059_count || 0,
- type: 'age5059_count',
- name: '50-59岁'
- },
- {
- value: info.age6069_count || 0,
- type: 'age6069_count',
- name: '60-69岁'
- },
- {
- value: info.age7079_count || 0,
- type: 'age7079_count',
- name: '70-79岁'
- },
- {
- value: info.age80_count || 0,
- type: 'age80_count',
- name: '80岁以上'
- }
- ];
- } else if (currentTab == '志愿者类别') {
- this.pieData = [
- {
- value: info.culture_count || 0,
- type: 'culture_count',
- name: '文化队伍'
- },
- {
- value: info.committee_count || 0,
- type: 'committee_count',
- name: '楼委会'
- },
- {
- value: info.capable_count || 0,
- type: 'capable_count',
- name: '能人达人'
- },
- {
- value: info.friend_count || 0,
- type: 'friend_count',
- name: '老友俱乐部'
- },
- {
- value: info.agent_count || 0,
- type: 'agent_count',
- name: '代办员'
- },
- {
- value: info.mediator_count || 0,
- type: 'mediator_count',
- name: '调解员'
- },
- {
- value: info.collector_count || 0,
- type: 'collector_count',
- name: '采集员'
- },
- {
- value: info.security_count || 0,
- type: 'security_count',
- name: '治安巡逻员'
- },
- {
- value: info.party_mem_count || 0,
- type: 'party_mem_count',
- name: '党员中心户'
- }
- ];
- } else if (currentTab == '党员文化程度') {
- this.pieData = [
- {
- value: info.primary_count || 0,
- type: 'primary_count',
- name: '小学及文盲'
- },
- {
- value: info.junior_high_count || 0,
- type: 'junior_high_count',
- name: '初中'
- },
- {
- value: info.second_speci_count || 0,
- type: 'second_speci_count',
- name: '中专'
- },
- {
- value: info.high_school_count || 0,
- type: 'high_school_count',
- name: '高中'
- },
- {
- value: info.junior_college_count || 0,
- type: 'junior_college_count',
- name: '大专'
- },
- {
- value: info.undergrad_count || 0,
- type: 'undergrad_count',
- name: '本科'
- },
- {
- value: info.master_count || 0,
- type: 'master_count',
- name: '硕士'
- },
- {
- value: info.doctor_count || 0,
- type: 'doctor_count',
- name: '博士'
- }
- ];
- } else if (currentTab == '下级人口分布') {
- this.pieData = [];
- }
+
+ let data = [
+ {
+ name: '江',
+ org_id: '7b6f9a9f9f38d5f9fa7ce94a93d6eb28',
+ count: 61
+ },
+ {
+ name: '平',
+ org_id: '7b6f9a9f9f38d5f9fa7ce94a93d6eb28',
+ count: 63
+ },
+ {
+ name: '究',
+ org_id: '7b6f9a9f9f38d5f9fa7ce94a93d6eb28',
+ count: 66
+ },
+ {
+ name: '布',
+ org_id: '7b6f9a9f9f38d5f9fa7ce94a93d6eb28',
+ count: 61
+ }
+ ];
+ data = JSON.parse(JSON.stringify(data).replace(/count/g, 'value'));
+ console.log('data', data);
+ this.pieData = data;
+
this.iniPieChart();
},
// 获取饼状图
diff --git a/src/views/dataBoard/sida/cpts/sqpj.vue b/src/views/dataBoard/sida/cpts/sqpj.vue
index b88381fe5..12fdebb89 100644
--- a/src/views/dataBoard/sida/cpts/sqpj.vue
+++ b/src/views/dataBoard/sida/cpts/sqpj.vue
@@ -45,13 +45,7 @@ export default {
pieOption: {},
pieInitState: false,
pieData: [],
- tabList: [
- '满意度',
- '关注度',
- '期盼度',
- '烦心度'
- // "下级人口分布",
- ],
+ tabList: ['满意度', '关注度', '期盼度', '烦心度'],
currentTab: '满意度',
info: {
male_count: 0,
@@ -105,16 +99,16 @@ export default {
this.getResiCategoryData();
},
handleClickItem(item) {
- const { type, name } = item;
- this.$router.push({
- path: '/dataBoard/renfang/resi-analyze',
- query: {
- org_id: this.orgId,
- type,
- type_category: this.currentTab,
- type_name: name
- }
- });
+ // const { type, name } = item;
+ // this.$router.push({
+ // path: '/dataBoard/renfang/resi-analyze',
+ // query: {
+ // org_id: this.orgId,
+ // type,
+ // type_category: this.currentTab,
+ // type_name: name
+ // }
+ // });
},
selItem(selItem, selIndex) {
this.tabList.forEach((element, index) => {
@@ -126,8 +120,18 @@ export default {
});
},
async getResiCategoryData() {
- console.log('=========================getResiCategoryData');
- const url = 'resident_class_statics';
+ let url = '';
+ if (this.currentTab == '满意度') {
+ url = 'self_need_view';
+ } else if (this.currentTab == '关注度') {
+ url = 'attention_eval_view';
+ } else if (this.currentTab == '期盼度') {
+ url = 'self_need_view';
+ } else {
+ // 烦心度
+ url = 'self_need_view';
+ }
+
const { data, code, msg } = await requestPostBi(
url,
{
diff --git a/src/views/dataBoard/sida/cpts/wtqd.vue b/src/views/dataBoard/sida/cpts/wtqd.vue
index 1e5b0f10f..2af7feb0b 100644
--- a/src/views/dataBoard/sida/cpts/wtqd.vue
+++ b/src/views/dataBoard/sida/cpts/wtqd.vue
@@ -1,10 +1,7 @@