diff --git a/src/router/index.js b/src/router/index.js index e7e25fd44..176105423 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -440,6 +440,16 @@ export const dataBoardRoutes = { isTab: false, }, }, + { + path: "overview/residents", + props: true, + component: () => import("@/views/dataBoard/overview/residents/index"), + name: "dataBoard-overview-residents", + meta: { + title: "居民画像", + isTab: false, + }, + }, { path: "/organizational", props: true, diff --git a/src/views/dataBoard/cpts/family/modules/Family.vue b/src/views/dataBoard/cpts/family/modules/Family.vue index 464ce1089..a577d78d7 100644 --- a/src/views/dataBoard/cpts/family/modules/Family.vue +++ b/src/views/dataBoard/cpts/family/modules/Family.vue @@ -51,8 +51,14 @@ export default { return paramStr; }, cheackCrrent(item) { - const params = { user_id: item.id }; - this.$router.push("/dataBoard/overview/resident?" + this.getParams(params)); + const params = { + ...this.$route.query, + user_id: item.id, + user_name: item.name, + }; + this.$router.push( + "/dataBoard/overview/residents?" + this.getParams(params) + ); }, getDatas() { this.data = []; diff --git a/src/views/dataBoard/cpts/personnel/modules/Family.vue b/src/views/dataBoard/cpts/personnel/modules/Family.vue index 35c722384..0f5c73b0e 100644 --- a/src/views/dataBoard/cpts/personnel/modules/Family.vue +++ b/src/views/dataBoard/cpts/personnel/modules/Family.vue @@ -76,7 +76,7 @@ export default { return paramStr; }, cheackCrrent(item) { - const params = { ...this.$route.query, user_id: item.id }; + const params = { ...this.$route.query, user_id: item.id,user_name:item.name }; this.$router.push(this.$route.path + "?" + this.getParams(params)); }, getDatas() { diff --git a/src/views/dataBoard/overview/residents/index.vue b/src/views/dataBoard/overview/residents/index.vue new file mode 100644 index 000000000..8880303a1 --- /dev/null +++ b/src/views/dataBoard/overview/residents/index.vue @@ -0,0 +1,95 @@ + + + + +