diff --git a/src/assets/images/gailan/tag_blue.png b/src/assets/images/gailan/tag_blue.png
new file mode 100644
index 000000000..ff745ad2c
Binary files /dev/null and b/src/assets/images/gailan/tag_blue.png differ
diff --git a/src/assets/images/gailan/tag_orange.png b/src/assets/images/gailan/tag_orange.png
new file mode 100644
index 000000000..95855764b
Binary files /dev/null and b/src/assets/images/gailan/tag_orange.png differ
diff --git a/src/assets/images/gailan/yuan_bg.png b/src/assets/images/gailan/yuan_bg.png
new file mode 100644
index 000000000..9ffe2d329
Binary files /dev/null and b/src/assets/images/gailan/yuan_bg.png differ
diff --git a/src/assets/images/gailan/zq_bg.png b/src/assets/images/gailan/zq_bg.png
new file mode 100644
index 000000000..1a310e6ab
Binary files /dev/null and b/src/assets/images/gailan/zq_bg.png differ
diff --git a/src/assets/scss/dataBoard/overview/index.scss b/src/assets/scss/dataBoard/overview/index.scss
index 19e707779..69d4eda69 100644
--- a/src/assets/scss/dataBoard/overview/index.scss
+++ b/src/assets/scss/dataBoard/overview/index.scss
@@ -494,7 +494,6 @@
height: 40px;
line-height: 40px;
font-size: 14px;
- font-family: PingFang SC;
font-weight: 400;
color: #A3B9DA;
}
@@ -508,11 +507,12 @@
height: 40px;
line-height: 40px;
width: 110px;
- height: 14px;
+ overflow: hidden;
font-size: 14px;
- font-family: PingFang SC;
font-weight: 400;
color: #FFFFFF;
+ text-overflow: ellipsis;
+ white-space: nowrap;
// padding: 0 8px;
// overflow: hidden;
// white-space: nowrap;
diff --git a/src/components/GridTree/nodeWrap.vue b/src/components/GridTree/nodeWrap.vue
index c22d450d1..0f046637d 100644
--- a/src/components/GridTree/nodeWrap.vue
+++ b/src/components/GridTree/nodeWrap.vue
@@ -96,7 +96,8 @@ export default {
},
gotoPersonnel(item) {
const grandPid = this.findParentParentId(this.nodeConfig, item.pid);
- this.$router.push(`/organizational/microgrid/${item.id}/${grandPid}`);
+ const name = item.name ? item.name : "恭喜发财";
+ this.$router.push(`/organizational/microgrid/${item.id}/${grandPid}/${name}`);
},
},
};
diff --git a/src/components/Tree/nodeWrap.vue b/src/components/Tree/nodeWrap.vue
index 36fda9d08..680c93c18 100644
--- a/src/components/Tree/nodeWrap.vue
+++ b/src/components/Tree/nodeWrap.vue
@@ -134,11 +134,13 @@ export default {
getHomeTypes(id) {
this.$http.get(`/actual/base/organizational/structure/getResidentCategoryByHouseId?houseId=${"1495582904602800129"}`).then((res) => {
- const { code, data } = res.data;
+ const { code, msg, data } = res.data;
if (code === 0) {
const newItem = data[0];
const itemNumOne = Object.keys(newItem).filter((key) => newItem[key] === 1);
this.homeTypeArr = itemNumOne;
+ } else {
+ this.$message.error(msg);
}
});
},
diff --git a/src/main.js b/src/main.js
index f27ee6174..a0549cc5d 100644
--- a/src/main.js
+++ b/src/main.js
@@ -22,7 +22,8 @@ import { message } from "@/utils/message.js";
import http from "@/utils/request";
import cloneDeep from "lodash/cloneDeep";
-
+// 引入工具类
+import './utils/jwTool'
// axios封装
import ajax from "@/js/ajax";
// service
@@ -32,6 +33,7 @@ import store from "@/js/store";
//系统工具
import util from "@js/util";
// import Cookies from "js-cookie";
+
import Moment from "moment";
import getQueryPara from "dai-js/modules/getQueryPara";
import NodeWrap from "@/components/Tree/nodeWrap.vue";
@@ -103,6 +105,7 @@ window.SITE_CONFIG["storeState"] = cloneDeep(store.state);
Vue.prototype.tableHeaderStyle = { background: "linear-gradient(0deg, #005EB3 0%, #0083F0 100%)", color: "#FFFFFF", padding: "6px 0px" };
+
new Vue({
i18n,
router,
diff --git a/src/router/index.js b/src/router/index.js
index adf278a25..13a2561bc 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -236,7 +236,17 @@ export const dataBoardRoutes = {
meta: {
title: "可视化数据",
isTab: false,
- keepAlive:false
+ keepAlive: false,
+ },
+ },
+ {
+ path: "renfang/resident",
+ props: true,
+ component: () => import("@/views/dataBoard/renfang/resident/index"),
+ name: "dataBoard-renfang-resident",
+ meta: {
+ title: "居民画像",
+ isTab: false,
},
},
{
@@ -414,7 +424,7 @@ export const dataBoardRoutes = {
{
path: "/organizational/orgPersonnel",
props: true,
- component: () => import("@/views/dataBoard/organizational/personnel/index"),
+ component: () => import("@/views/dataBoard/cpts/personnel/index"),
name: "OrgPersonnel",
meta: {
title: "居民画像",
@@ -422,7 +432,7 @@ export const dataBoardRoutes = {
},
},
{
- path: "/organizational/microgrid/:id/:pid",
+ path: "/organizational/microgrid/:id/:pid/:name",
props: true,
component: () => import("@/views/dataBoard/organizational/microgrid/index"),
name: "Microgrid",
diff --git a/src/utils/jwTool.js b/src/utils/jwTool.js
new file mode 100644
index 000000000..5e797cf78
--- /dev/null
+++ b/src/utils/jwTool.js
@@ -0,0 +1,10 @@
+import Vue from "vue";
+
+const paramsFormat = function (params) {
+ let strArray = []
+ for(let key in params) {
+ strArray.push(key+'='+params[key])
+ }
+ return strArray.join('&')
+}
+Vue.prototype.$paramsFormat = paramsFormat
diff --git a/src/views/dataBoard/cpts/map/index.vue b/src/views/dataBoard/cpts/map/index.vue
index b96ad5d1a..2d1931720 100644
--- a/src/views/dataBoard/cpts/map/index.vue
+++ b/src/views/dataBoard/cpts/map/index.vue
@@ -1,38 +1,17 @@
+