diff --git a/src/views/dataBoard/renfang/cpts/fwgl.vue b/src/views/dataBoard/renfang/cpts/fwgl.vue
index 04e475d9c..14c1e1440 100644
--- a/src/views/dataBoard/renfang/cpts/fwgl.vue
+++ b/src/views/dataBoard/renfang/cpts/fwgl.vue
@@ -7,6 +7,7 @@
class=""
@myChartMethod="pieInitOk"
ref="pieChart"
+ v-if="pandectData.homeCount"
>
-
{{ info.house_count }}
+
{{ pandectData.homeCount }}
户
@@ -54,7 +55,7 @@
- {{ info.self_dwelling_count }}
+ {{ pandectData.selfStay }}
户
@@ -74,7 +75,7 @@
出租房屋
-
{{ info.lease_count }}
+
{{pandectData.rentOut}}
户
@@ -92,7 +93,7 @@
闲置房屋
-
{{ info.unused_count }}
+
{{ pandectData.vacantHouse }}
户
@@ -166,10 +167,13 @@ export default {
lease_count: 0,
unused_count: 0,
},
+ pandectData:{}
};
},
mounted() {
- this.getData();
+ this.$nextTick(()=>{
+ this.getData();
+ })
},
watch: {
orgId() {
@@ -196,8 +200,9 @@ export default {
},
async getData() {
await this.getInfo();
+ this.getPie();
this.getBar();
- this.getPie();
+
},
getBar() {
if (this.barInitState) {
@@ -251,25 +256,23 @@ export default {
}
},
// 获取饼状图
- async iniPieChart() {
+ iniPieChart() {
this.$refs.pieChart.clear();
- // this.$refs.pieChart.showLoading()
-
// 获取pieChart配置
this.pieOption = pieOption();
-
- const { info } = this;
+ const {pandectData} = this
+ console.log(pandectData);
// 设置三个配置值
this.pieOption.title.text =
- (info.house_count != 0
+ (pandectData.homeCount != 0
? parseInt(
- (100 * info.self_dwelling_count) / info.house_count
+ (100 * pandectData.selfStay) / pandectData.homeCount
)
: "--") + "%";
this.pieData = [
- { value: info.self_dwelling_count, name: "自住房屋" },
- { value: info.lease_count, name: "出租房屋" },
- { value: info.unused_count, name: "闲置房屋" },
+ { value: pandectData.selfStay, name: "自住房屋" },
+ { value: pandectData.rentOut, name: "出租房屋" },
+ { value: pandectData.vacantHouse, name: "闲置房屋" },
];
this.pieOption.series[0].data = this.pieData;
this.$refs.pieChart.setOption(this.pieOption);
@@ -282,21 +285,21 @@ export default {
fromActionPayload: { dataIndexInside },
} = params;
this.pieOption.title.text =
- (info.house_count != 0
+ (pandectData.homeCount != 0
? parseInt(
(100 *
[
- info.self_dwelling_count,
- info.lease_count,
- info.unused_count,
+ pandectData.selfStay,
+ pandectData.rentOut,
+ pandectData.vacantHouse,
][dataIndexInside]) /
- info.house_count
+ pandectData.homeCount
)
: "--") + "%";
this.$refs.pieChart.myChart.setOption(this.pieOption);
});
},
-
+
// 获取房屋总数等
async getBarData() {
const url = "house_trend";
diff --git a/src/views/dataBoard/renfang/index.vue b/src/views/dataBoard/renfang/index.vue
index f4aa3483a..43ddcdf17 100644
--- a/src/views/dataBoard/renfang/index.vue
+++ b/src/views/dataBoard/renfang/index.vue
@@ -17,7 +17,7 @@
-
+
@@ -31,7 +31,7 @@
-
+
@@ -438,6 +438,8 @@ import resiDetails from "@/views/dataBoard/cpts/resi-details";
import { requestPostBi } from "@/js/dai/request-bipass";
import { requestPost } from "@/js/dai/request";
import getQueryPara from "dai-js/modules/getQueryPara";
+import {requestGet} from "@/js/dai/request";
+import resiCategoryMap from "@/views/business/resi-category-map.js";
function iniGetPerInfo() {
return {
@@ -504,6 +506,8 @@ export default {
displayedResiId: "",
displayedHouseId: "",
+
+ pandectData: {},
};
},
@@ -531,10 +535,30 @@ export default {
await this.getMapData();
await this.getSubMapData();
this.getResiCategoryData();
- this.getResiCategoryForecastData();
this.getPerInfo();
-
+ this.getResiCategoryForecastData();
+ this.getPandectData()
this.loading = true;
+ },
+ //加载组织数据
+ async getPandectData() {
+ const url = "/actual/base/residentHouseMerge/communityOverview";
+ let params = {
+ // orgId: "",
+ // level: "",
+ };
+
+ const {data, code, msg} = await requestGet(url, params);
+ if (code === 0) {
+ if (data) {
+ this.$nextTick(()=>{
+ this.$refs['fwgl'].pandectData = data
+ }
+ )
+ }
+ } else {
+ this.$message.error(msg);
+ }
},
jumpPath(pageType, type_id = "", type_name) {
this.$router.push({
@@ -729,31 +753,25 @@ export default {
//居民分类预测数据
async getResiCategoryForecastData() {
- const url = "resident_class_predict";
-
- const { data, code, msg } = await requestPostBi(
- url,
- {
- queryParam: {
- org_id: this.orgId,
- },
- },
- {
- // mockId: 60064667,
- }
- );
-
+ const url = "/actual/base/resiCategory/intelligentPredictioncategoryCountList";
+ let params = {
+ };
+ const {data, code, msg} = await requestGet(url, params);
if (code === 0) {
- this.resiCategoryForecastData = data.map((item) => {
- return {
- code: item.resident_type,
- name: item.resident_type_name,
- count: item.resident_count,
- ratio: item.resident_ratio,
- growth: item.change_count,
- growthAbs: Math.abs(item.change_count),
- };
- });
+ this.resiCategoryForecastData = data.categoryList.map((item) => {
+ return {
+ code: item.categoryName,
+ name: resiCategoryMap[item.categoryName] || "",
+ count: item.categoryCountNext,
+ // name:item.categoryCountName,
+ per: parseInt(
+ (100 * item.categoryCount) / data.resiCount
+ ),
+ // per: item.change_ratio,
+ growth: item.change_ratio,
+ growthAbs: Math.abs(item.categoryCountNext - item.categoryCount)
+ };
+ });
} else {
this.$message.error(msg);
}
diff --git a/src/views/modules/base/residentManagement/housingNature/housingNature.vue b/src/views/modules/base/residentManagement/housingNature/housingNature.vue
index 10ec1f5e7..a61dfa8dd 100644
--- a/src/views/modules/base/residentManagement/housingNature/housingNature.vue
+++ b/src/views/modules/base/residentManagement/housingNature/housingNature.vue
@@ -216,7 +216,6 @@
@@ -234,7 +233,7 @@
@@ -246,7 +245,7 @@
@@ -357,7 +356,7 @@ export default {
showDetail: false,
formType: "add",
addDiaTitle: "新增",
- detailDiaTitle: "详情",
+ detailDiaTitle: "编辑",
multiSelection: [], // 多选结果
importLoading: false,
diff --git a/src/views/modules/base/residentManagement/oldPeople/addForm.vue b/src/views/modules/base/residentManagement/oldPeople/addForm.vue
index ca89ac75b..f1fffad4b 100644
--- a/src/views/modules/base/residentManagement/oldPeople/addForm.vue
+++ b/src/views/modules/base/residentManagement/oldPeople/addForm.vue
@@ -8,7 +8,7 @@
所属组织:
{{ formData.agencyName || "--" }}
-
+
姓名:
{{ formData.name || "--" }}
-
+
@@ -35,7 +35,7 @@
联系电话:
{{ formData.mobile || "--" }}
-
+
@@ -47,7 +47,7 @@
证件类型:
{{ formData.idTypeName || "--" }}
-
+
@@ -60,7 +60,7 @@
证件号:
{{ formData.idNum || "--" }}
-
+
@@ -80,7 +80,7 @@
: "--"
}}
-
+
@@ -96,7 +96,7 @@
户籍地址:
{{ formData.placeOfDomicile || "--" }}
-
+
@@ -108,7 +108,7 @@
现居地址:
{{ formData.currentResidence || "--" }}
-
+
@@ -128,7 +128,7 @@
: "--"
}}
-
+
@@ -141,7 +141,7 @@
残疾类别:
{{ formData.disabilityCategoryName || "--" }}
-
+
@@ -158,7 +158,7 @@
残疾级别:
{{ formData.disabilityLevelName || "--" }}
-
+
@@ -171,7 +171,7 @@
残疾证号:
{{ formData.disabilityNum || "--" }}
-
+
@@ -183,7 +183,7 @@
与户主关系:
{{ formData.disabilityCategoryName || "--" }}
-
+
@@ -196,7 +196,7 @@
居住情况:
{{ formData.resideSituationName || "--" }}
-
+
@@ -212,7 +212,7 @@
婚姻情况:
{{ formData.marriageName || "--" }}
-
+
@@ -226,7 +226,7 @@
配偶情况:
{{ formData.spouseSituationName || "--" }}
-
+
@@ -241,7 +241,7 @@
退休金额:
{{ formData.retirementAmount || "--" }}
-
+
@@ -251,7 +251,7 @@
高龄补助:
{{ formData.oldSubsidy || "--" }}
-
+
@@ -260,7 +260,7 @@
- 有无赡养老人:
+ 有无赡养人:
{{
formData.elderlyFlag != null
? formData.elderlyFlag === 1
@@ -271,7 +271,7 @@
: "--"
}}
-
+
@@ -284,7 +284,7 @@
与赡养人关系:
{{ formData.elderlyRelationName || "--" }}
-
+
@@ -299,7 +299,7 @@
赡养人联系电话:
{{ formData.dependantMobile || "--" }}
-
+
@@ -311,7 +311,7 @@
备注:
{{ formData.remark || "--" }}
-
+
diff --git a/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue b/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue
index ae65dbff5..b8f834f48 100644
--- a/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue
+++ b/src/views/modules/base/residentManagement/oldPeople/oldPeople.vue
@@ -304,7 +304,7 @@
prop="elderlyFlag"
align="center"
width="100"
- label="该居民有无赡养老人"
+ label="该居民有无赡养人"
:show-overflow-tooltip="true"
>
@@ -475,8 +475,7 @@
showEdit: false,
showDetail: false,
formType: "add",
- addDiaTitle: "新增",
- detailDiaTitle: "详情",
+ addDiaTitle: "",
multiSelection: [], // 多选结果
importLoading: false,
@@ -645,6 +644,7 @@
// 编辑触发事件
async handleEdit(row) {
+ this.addDiaTitle = "编辑";
this.showAdd = true;
this.$nextTick(() => {
this.$refs.ref_add_form.initForm("edit", row);
diff --git a/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue b/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue
index 71560b313..923e3155b 100644
--- a/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue
+++ b/src/views/modules/base/residentManagement/publicWelfarePost/publicWelfarePost.vue
@@ -588,6 +588,7 @@
// 编辑触发事件
async handleEdit(row) {
+ this.addDiaTitle = "编辑";
this.showAdd = true;
this.$nextTick(() => {
this.$refs.ref_add_form.initForm("edit", row);
diff --git a/src/views/modules/base/residentManagement/resiDisability/addForm.vue b/src/views/modules/base/residentManagement/resiDisability/addForm.vue
index 80236896e..e82a7d485 100644
--- a/src/views/modules/base/residentManagement/resiDisability/addForm.vue
+++ b/src/views/modules/base/residentManagement/resiDisability/addForm.vue
@@ -302,7 +302,7 @@
月收入:
{{ formData.monthIncome || "--" }}
-
+
{
this.$refs.ref_add_form.initForm("edit", row);
diff --git a/src/views/modules/base/residentManagement/tefu/tefuList.vue b/src/views/modules/base/residentManagement/tefu/tefuList.vue
index d9358c989..f14c2ed08 100644
--- a/src/views/modules/base/residentManagement/tefu/tefuList.vue
+++ b/src/views/modules/base/residentManagement/tefu/tefuList.vue
@@ -270,7 +270,6 @@
@@ -423,7 +422,6 @@ export default {
showDetail: false,
formType: "add",
addDiaTitle: "新增",
- detailDiaTitle: "详情",
multiSelection: [], // 多选结果
importLoading: false,
diff --git a/src/views/modules/base/residentManagement/unemployment/unemployment.vue b/src/views/modules/base/residentManagement/unemployment/unemployment.vue
index b243d29ba..03c2df0d0 100644
--- a/src/views/modules/base/residentManagement/unemployment/unemployment.vue
+++ b/src/views/modules/base/residentManagement/unemployment/unemployment.vue
@@ -656,7 +656,6 @@ export default {
showDetail: false,
formType: "add",
addDiaTitle: "新增",
- detailDiaTitle: "详情",
multiSelection: [], // 多选结果
importLoading: false,
diff --git a/src/views/modules/base/residentManagement/veteran/veteran.vue b/src/views/modules/base/residentManagement/veteran/veteran.vue
index 437ddf345..89b50e0cb 100644
--- a/src/views/modules/base/residentManagement/veteran/veteran.vue
+++ b/src/views/modules/base/residentManagement/veteran/veteran.vue
@@ -642,7 +642,6 @@ export default {
showDetail: false,
formType: "add",
addDiaTitle: "新增",
- detailDiaTitle: "详情",
multiSelection: [], // 多选结果
importLoading: false,
@@ -738,7 +737,7 @@ export default {
},
// 编辑触发事件
async handleEdit(row) {
- this.addDiaTitle = "详情";
+ this.addDiaTitle = "编辑";
this.formType = "edit";
this.showAdd = true;
this.$nextTick(() => {
diff --git a/src/views/modules/base/residentManagement/volunteer/volunteer.vue b/src/views/modules/base/residentManagement/volunteer/volunteer.vue
index b30310a1e..03a6a33fe 100644
--- a/src/views/modules/base/residentManagement/volunteer/volunteer.vue
+++ b/src/views/modules/base/residentManagement/volunteer/volunteer.vue
@@ -514,7 +514,6 @@ export default {
showDetail: false,
formType: "add",
addDiaTitle: "新增",
- detailDiaTitle: "详情",
multiSelection: [], // 多选结果
importLoading: false,
diff --git a/src/views/modules/communityParty/partyOrg/orgTree.vue b/src/views/modules/communityParty/partyOrg/orgTree.vue
index 07420f7b2..acf30db19 100644
--- a/src/views/modules/communityParty/partyOrg/orgTree.vue
+++ b/src/views/modules/communityParty/partyOrg/orgTree.vue
@@ -198,7 +198,9 @@ export default {
});
},
rowClassName(row, rowIndex) {
+ console.log(row);
if (row.row.childrenQty == 0) {
+ console.log(row);
return 'no-expand';
}
return '';
@@ -269,12 +271,13 @@ export default {
}
this.partyOrgTree=[]
- this.partyOrgTree.push(data);
+ data.hasChildren = true
data.children.forEach(item=>{
if(item.childrenQty != 0){
item.hasChildren = true
}
})
+ this.partyOrgTree.push(data);
this.tableKey = new Date().getTime();
// 默认加载2级,并且展开,从第三级开始,需要展开上一级动态查询得到
console.log(">>>>", this.partyOrgTree)
diff --git a/src/views/modules/goverhotline/index.vue b/src/views/modules/goverhotline/index.vue
index 2b62f451f..18805eac1 100644
--- a/src/views/modules/goverhotline/index.vue
+++ b/src/views/modules/goverhotline/index.vue
@@ -106,15 +106,6 @@
-
-
四、工作改进举措
- 一是机制要“优”
- 二是质量要“高”
- 三是分流要“准”
- 四是流程要“亚”
- 五是沟通要“多
- 六是模板要“精"
-
@@ -590,11 +581,11 @@ export default {
const url = '/governance/dwdEvent/report';
const {formData } = this;
- const { data, code, msg } = await requestPost(url, {
+ const { data, code, internalMsg } = await requestPost(url, {
...formData
});
if (code != 0) {
- this.$message.error(msg);
+ this.$message.info(internalMsg);
return;
}
if (!data) {
diff --git a/src/views/modules/home/index.vue b/src/views/modules/home/index.vue
index 5c7f9240a..540d4a93e 100644
--- a/src/views/modules/home/index.vue
+++ b/src/views/modules/home/index.vue
@@ -226,7 +226,7 @@ import {mapGetters} from "vuex";
import nextTick from "dai-js/tools/nextTick";
import fastcall from "@/views/modules/cpts/fastcall";
import * as echarts from 'echarts';
-import { requestPostBi } from "@/js/dai/request-bipass";
+
export default {
components: {fastcall},
@@ -274,9 +274,7 @@ export default {
activeName: 'resi',
- myChart: {},
-
- resiCategoryData:[]
+ myChart: {}
}
},
computed: {
@@ -360,35 +358,6 @@ export default {
})
},
- async getResiCategoryData() {
- const url = "resident_class_statics";
-
- const { data, code, msg } = await requestPostBi(
- url,
- {
- queryParam: {
- org_id: this.$store.state.user.agencyId,
- },
- },
- {
- // mockId: 60031937,
- }
- );
-
- if (code === 0) {
- this.znycCategory.list = data.map((item) => {
- return {
- name: item.label,
- count: item.count,
- per: item.ratio,
- const: "const",
- };
- });
- console.log(this.resiCategoryData);
- } else {
- this.$message.error(msg);
- }
- },
handleWindowResize() {
if (this.myChart) {
this.myChart.resize();
@@ -455,8 +424,7 @@ export default {
async getApiData() {
await this.getOrgData();
this.getWarningList();
- // this.getZnycList();
- this.getResiCategoryData()
+ this.getZnycList();
this.getPandectData();
this.getNoticeData();
},
diff --git a/src/views/modules/shequzhili/eventOld/eventList.vue b/src/views/modules/shequzhili/eventOld/eventList.vue
index 3193869cd..a8e2f5976 100644
--- a/src/views/modules/shequzhili/eventOld/eventList.vue
+++ b/src/views/modules/shequzhili/eventOld/eventList.vue
@@ -107,7 +107,7 @@
:auto-upload="true" :on-progress="handleProgress" :on-success="handleExcelSuccess"
:before-upload="beforeExcelUpload" :http-request="uploadHttpRequest"
style="display: inline-block;margin:0px 10px">
- 导入
+
导出