@@ -122,6 +123,19 @@ export default {
this.getPie();
},
+ handleClickItem(item) {
+ const { type, name } = item;
+ this.$router.push({
+ path: "/dataBoard/renfang/resi-list",
+ query: {
+ org_id: this.orgId,
+ type,
+ type_category: this.currentTab,
+ type_name: name,
+ },
+ });
+ },
+
// 获取房屋总数等
async getInfo() {
const url = "resident_analyze";
@@ -176,50 +190,166 @@ export default {
const { currentTab, info } = this;
if (currentTab == "性别") {
this.pieData = [
- { value: info.male_count, name: "男" },
- { value: info.female_count, name: "女" },
+ {
+ value: info.male_count,
+ type: "male_count",
+ name: "男性",
+ },
+ {
+ value: info.female_count,
+ type: "female_count",
+ name: "女性",
+ },
];
} else if (currentTab == "户籍") {
this.pieData = [
- { value: info.local_count, name: "本地户籍" },
- { value: info.field_count, name: "外地户籍" },
+ {
+ value: info.local_count,
+ type: "local_count",
+ name: "本地户籍",
+ },
+ {
+ value: info.field_count,
+ type: "field_count",
+ name: "外地户籍",
+ },
];
} else if (currentTab == "人户状况") {
this.pieData = [
- { value: info.resi_y_house_y_count, name: "人户一致" },
- { value: info.resi_y_house_n_count, name: "人在户不在" },
- { value: info.resi_n_house_y_count, name: "户在人不在" },
+ {
+ value: info.resi_y_house_y_count,
+ type: "resi_y_house_y_count",
+ name: "人户一致",
+ },
+ {
+ value: info.resi_y_house_n_count,
+ type: "resi_y_house_n_count",
+ name: "人在户不在",
+ },
+ {
+ value: info.resi_n_house_y_count,
+ type: "resi_n_house_y_count",
+ name: "户在人不在",
+ },
];
} else if (currentTab == "年龄") {
this.pieData = [
- { value: info.age50_count, name: "50岁以下" },
- { value: info.age5059_count, name: "50-59岁" },
- { value: info.age6069_count, name: "60-69岁" },
- { value: info.age7079_count, name: "70-79岁" },
- { value: info.age80_count, name: "80岁以上" },
+ {
+ value: info.age50_count,
+ type: "age50_count",
+ name: "50岁以下",
+ },
+ {
+ value: info.age5059_count,
+ type: "age5059_count",
+ name: "50-59岁",
+ },
+ {
+ value: info.age6069_count,
+ type: "age6069_count",
+ name: "60-69岁",
+ },
+ {
+ value: info.age7079_count,
+ type: "age7079_count",
+ name: "70-79岁",
+ },
+ {
+ value: info.age80_count,
+ type: "age80_count",
+ name: "80岁以上",
+ },
];
} else if (currentTab == "志愿者类别") {
this.pieData = [
- { value: info.culture_count, name: "文化队伍" },
- { value: info.committee_count, name: "楼委会" },
- { value: info.capable_count, name: "能人达人" },
- { value: info.friend_count, name: "老友俱乐部" },
- { value: info.agent_count, name: "代办员" },
- { value: info.mediator_count, name: "调解员" },
- { value: info.collector_count, name: "采集员" },
- { value: info.security_count, name: "治安巡逻员" },
- { value: info.party_mem_count, name: "党员中心户" },
+ {
+ value: info.culture_count,
+ type: "culture_count",
+ name: "文化队伍",
+ },
+ {
+ value: info.committee_count,
+ type: "committee_count",
+ name: "楼委会",
+ },
+ {
+ value: info.capable_count,
+ type: "capable_count",
+ name: "能人达人",
+ },
+ {
+ value: info.friend_count,
+ type: "friend_count",
+ name: "老友俱乐部",
+ },
+ {
+ value: info.agent_count,
+ type: "agent_count",
+ name: "代办员",
+ },
+ {
+ value: info.mediator_count,
+ type: "mediator_count",
+ name: "调解员",
+ },
+ {
+ value: info.collector_count,
+ type: "collector_count",
+ name: "采集员",
+ },
+ {
+ value: info.security_count,
+ type: "security_count",
+ name: "治安巡逻员",
+ },
+ {
+ value: info.party_mem_count,
+ type: "party_mem_count",
+ name: "党员中心户",
+ },
];
} else if (currentTab == "党员文化程度") {
this.pieData = [
- { value: info.primary_count, name: "小学及文盲" },
- { value: info.junior_high_count, name: "初中" },
- { value: info.second_speci_count, name: "中专" },
- { value: info.high_school_count, name: "高中" },
- { value: info.junior_college_count, name: "大专" },
- { value: info.undergrad_count, name: "本科" },
- { value: info.master_count, name: "硕士" },
- { value: info.doctor_count, name: "博士" },
+ {
+ value: info.primary_count,
+ type: "primary_count",
+ name: "小学及文盲",
+ },
+ {
+ value: info.junior_high_count,
+ type: "junior_high_count",
+ name: "初中",
+ },
+ {
+ value: info.second_speci_count,
+ type: "second_speci_count",
+ name: "中专",
+ },
+ {
+ value: info.high_school_count,
+ type: "high_school_count",
+ name: "高中",
+ },
+ {
+ value: info.junior_college_count,
+ type: "junior_college_count",
+ name: "大专",
+ },
+ {
+ value: info.undergrad_count,
+ type: "undergrad_count",
+ name: "本科",
+ },
+ {
+ value: info.master_count,
+ type: "master_count",
+ name: "硕士",
+ },
+ {
+ value: info.doctor_count,
+ type: "doctor_count",
+ name: "博士",
+ },
];
} else if (currentTab == "下级人口分布") {
this.pieData = [];
diff --git a/src/views/dataBoard/renfang/resi/list.vue b/src/views/dataBoard/renfang/resi/list.vue
index ade2ad80f..099d3048b 100644
--- a/src/views/dataBoard/renfang/resi/list.vue
+++ b/src/views/dataBoard/renfang/resi/list.vue
@@ -139,9 +139,13 @@ export default {
};
},
- mounted() {
+ activated() {
this.org_id = getQueryPara("org_id");
this.resiType = getQueryPara("type");
+ const type_name = getQueryPara("type_name");
+ this.breadList[1].meta.title = type_name + "居民列表";
+ this.tableTitle = type_name + "居民列表";
+
this.getList();
},
diff --git a/src/views/dataBoard/renfang/warn/resi.vue b/src/views/dataBoard/renfang/warn/resi.vue
index 560d0fab4..6105bb33d 100644
--- a/src/views/dataBoard/renfang/warn/resi.vue
+++ b/src/views/dataBoard/renfang/warn/resi.vue
@@ -123,7 +123,7 @@ export default {
};
},
- mounted() {
+ activated() {
this.getList();
},
diff --git a/src/views/main-navbar.vue b/src/views/main-navbar.vue
index 1fc73f903..9ce10aa93 100644
--- a/src/views/main-navbar.vue
+++ b/src/views/main-navbar.vue
@@ -1,118 +1,142 @@
-
-
+
+
diff --git a/src/views/modules/shequ/chaxun.vue b/src/views/modules/shequ/chaxun.vue
index 62c9784ec..52fe8ae3d 100644
--- a/src/views/modules/shequ/chaxun.vue
+++ b/src/views/modules/shequ/chaxun.vue
@@ -587,7 +587,7 @@ export default {
}
},
},
- mounted() {
+ activated() {
this.getApiData();
this.firstSearch();
From 4768227216a14ec612c2121e496796e63584e56c Mon Sep 17 00:00:00 2001
From: mk <2403457699@qq.com>
Date: Fri, 17 Feb 2023 14:47:12 +0800
Subject: [PATCH 08/14] =?UTF-8?q?=E5=B1=95=E5=BC=80=E5=A4=9A=E5=B1=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/modules/base/community/community.vue | 18 +++++++-----------
1 file changed, 7 insertions(+), 11 deletions(-)
diff --git a/src/views/modules/base/community/community.vue b/src/views/modules/base/community/community.vue
index 571533aa2..f4c1f3b44 100644
--- a/src/views/modules/base/community/community.vue
+++ b/src/views/modules/base/community/community.vue
@@ -470,6 +470,7 @@ export default {
this.getHouseList();
},
async lazyLoadTree(node, resolve) {
+ console.log(node);
const url = `/actual/base/communityBuilding/tree/nextTreeNode?id=${node.data.id}&level=${node.data.level}`;
const { data, code, msg } = await requestGet(url);
if (code === 0) {
@@ -536,24 +537,23 @@ export default {
},
//回车搜索组织
async handleChangeSerch (){
- this.startLoading()
- this.$refs.ref_tree.$data.store.lazy = !this.filterText
+ this.startLoading()
+ this.$refs.ref_tree.$data.store.lazy = !this.filterText
if(this.filterText.length > 0 && this.filterText!=''){
const url = `/actual/base/communityBuilding/tree/search?keyword=${this.filterText}`
const {data,code,msg} = await requestGet(url)
if(data[0].children.length>0){
this.treeData = data
- this.autoOpenArr.push(this.treeData[0].id);
+ for(let i in this.treeData[0].children){
+ this.autoOpenArr.push(this.treeData[0].id,this.treeData[0].children[i].id,this.treeData[0].children[0].children[0].id);
+ }
}else{
this.treeData = []
- setTimeout(() => {
- this.loadTree()
- }, 5)
-
this.$message.error('暂未找到!')
}
}else {
this.treeData = []
+ this.autoOpenArr = []
this.loadTree()
}
this.endLoading()
@@ -665,9 +665,6 @@ export default {
const url = "/actual/base/communityBuilding/tree/initTree"
const { data, code, msg } = await requestGet(url)
if (code === 0) {
- this.openNodes = []
- this.openNodes.push(data.id)
-
this.treeData = []
this.treeData.push(data)
if (!isRefresh && data) {
@@ -736,7 +733,6 @@ export default {
this.updateStartDate = ''
this.updateEndDate = ''
this.showRoomTable = false
-
this.selObj = JSON.parse(JSON.stringify(obj))
this.getTreeObj(obj)
await nextTick(1000)
From b34fdc9c2d13167652ca1b33aca4e76c3fb7bb5f Mon Sep 17 00:00:00 2001
From: dai <851733175@qq.com>
Date: Fri, 17 Feb 2023 16:41:12 +0800
Subject: [PATCH 09/14] =?UTF-8?q?=E6=99=BA=E8=83=BD=E6=8F=90=E9=86=92?=
=?UTF-8?q?=E7=9A=84bug?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/assets/images/main/clear.png | Bin 0 -> 1020 bytes
src/assets/images/main/close.png | Bin 0 -> 560 bytes
src/assets/scss/common.scss | 6 +-
src/views/main-navbar.vue | 140 +++++++++++++++++++++++++++---
src/views/modules/home/notice.vue | 134 ++++++++++++++++++++--------
5 files changed, 231 insertions(+), 49 deletions(-)
create mode 100644 src/assets/images/main/clear.png
create mode 100644 src/assets/images/main/close.png
diff --git a/src/assets/images/main/clear.png b/src/assets/images/main/clear.png
new file mode 100644
index 0000000000000000000000000000000000000000..c78f41b377e50a629fecee90a1eba2f8771869c9
GIT binary patch
literal 1020
zcmV
Px&wn;=mR9HvFmrZCKWf;eQ&s29~toVTkd(gIsIx~vWmTC_oC@mh;gO}Y@DlOQ=
z5A;wdMg?&NMXaK|C~dS*X*4_QO;bErS`Qwg#rB|`*;+A*Vxb^fZKcL!9+`RfV|KH<
zGubGaQ^>yW^Zz~1^MBrXM_A%VmRO(p0II^~>ULBgLAe=No)K~e;RMK0gjXm#KV;e0
z3b4gr!HkT9-jii>*EPauEguwT=MBTOq<@$>~@eKvFysSY|!UggxE@Al7cs0A&~G<(Lt@rG8HI1}N!8oceB%
z_iy-PUQ61=g*hgjS2><=5k+r_b7rD8wR
z0@=w^#o!}UA3!*c=dLwFQh(YvJasD1nc1IFy&9NBtcPNVEaFKMCQV%kUIu**n4#k4
zdjrHls&_*;2@KXCc0#x#Hk{erTJ~fKI#pmOC=u!l@v@2=C!cP@R)~Z|hqC`K0P`ym
z9TxL@-tN->tO5;>e0vu%7adTOc+MNC2UQ;ce*-xziQeUrQTl&Mn!^vGcu}>Ur((Yp
z|Jl<6MgJJe8jyojocsG%2cntRxi5{rwVkrPF9SfZ7u6AvIYjTobEo=-CV|4&c&Z>
qBKw%I-)+AcX9virw$Nou4)8C6_0up-Fk!C%0000Px$>PbXFR9Hvt)<>??KoE!V-@5=g!;YMD5E2sc1}s@{BJRKmSRyhTR*#$!If^LY
z0)R>?OC!UKyZt0)Gv3;+@9Te6w>@Rd*VLH#CIXWLMkR0x8*u_(dJgL>oW@U_{8x=p
z0vB-v_iz|rDwfmWXzI8&Ysi!gu2Z4q+%fYLp1Hlem*fv?T(50lN|&vA^w_n^J+Ovn1QG
z4sD6Kx$=NN&)DB}!D|v|Y7I)nWXCS~oh#poXBm4DypKSW#8s@#?ez;g@HFA?OIF@I
zQ`3UMx=XViArV)=qvs!L;C&N__vRxGs%;6pmF@WcKLi4P30v_bchVZ%#8Fg9)V5$j
zt~}t6^N5Zbabot8s1XQwtb9wtlE1D|0@tt~0go?W?O)NLM4TBhm{kI2Fb~Ijzz35!o5OgZR-kKu
yOYb)+$49Fwfl|PXp6l8LGb@
-

+
+

+
-
+
{{
unreadMsgNum
}}
-

+
+

+
@@ -136,6 +140,23 @@
>
+
+
+
新提醒
+
+

+
+
+ {{ noticeList[0].createdTime }}
+ NEW
+
+
+ {{ noticeList[0].content }}
+
+
@@ -157,6 +178,10 @@ export default {
customerName: "",
unreadMsgNum: 0,
+
+ noticeList: [],
+
+ displayedNoticeList: true,
};
},
components: {
@@ -182,7 +207,8 @@ export default {
},
},
methods: {
- toRemindPage() {
+ toNoticePage() {
+ this.displayedNoticeList = false;
this.$router.replace("/main/home-notice");
},
@@ -284,15 +310,39 @@ export default {
const { data, code, msg } = await requestGet(url, {});
if (code === 0) {
console.log("列表请求成功!!!!!!!!!!!!!!");
+ if (data.unreadNum > 0 && this.unreadMsgNum < data.unreadNum) {
+ this.getNoticeList();
+ this.displayedNoticeList = true;
+ }
this.unreadMsgNum = data.unreadNum;
} else {
}
},
+
+ //加载组织数据
+ async getNoticeList() {
+ const url = "/message/intelligentMessage/page";
+ let params = {
+ page: this.pageNo,
+ limit: this.pageSize,
+ readFlag: 0,
+ };
+
+ const { data, code, msg } = await requestGet(url, params);
+
+ if (code === 0) {
+ this.noticeList = data.list;
+ } else {
+ this.$message.error(msg);
+ }
+ },
},
};
diff --git a/src/views/modules/home/notice.vue b/src/views/modules/home/notice.vue
index 0cc1a9f72..83288500b 100644
--- a/src/views/modules/home/notice.vue
+++ b/src/views/modules/home/notice.vue
@@ -2,14 +2,13 @@