+
+
diff --git a/src/router/index.js b/src/router/index.js
index dcf0edb..c42fdc8 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -12,6 +12,7 @@ const Layout = () => import('@/views/layout');
const Home = () => import('@/views/Home/index');
const Substation = () => import('@/views/substation/index');
const Line = () => import('@/views/line/index');
+const Workbench = () => import('@/views/workbench/index');
const Login = () => import('@/views/Login/index');
const routes = [
{
@@ -63,6 +64,15 @@ const routes = [
requireLoginAuth: true,
},
},
+ {
+ path: '/workbench/index',
+ component: Workbench,
+ name: 'Workbench',
+ meta: {
+ title: '工作台',
+ requireLoginAuth: true,
+ },
+ },
{
path: '/Login/index',
component: Login,
diff --git a/src/views/Home/index.vue b/src/views/Home/index.vue
index 56a9e01..dd1f040 100644
--- a/src/views/Home/index.vue
+++ b/src/views/Home/index.vue
@@ -36,7 +36,7 @@
-
+
@@ -47,6 +47,7 @@
@@ -75,8 +76,8 @@
-
-
+
+
@@ -176,7 +177,7 @@ export default {
// 您有一条检修预警提示,请注意查收!
transformList: [],
currentIndex: 1,
- showDialog: true,
+ geoData: undefined
}
},
created() {
@@ -209,6 +210,14 @@ export default {
this.transformList = res.data
})*/
+ this.geoData = [
+ { name: '北京市', itemStyle: { normal: { areaColor: '#7DDEFF' } }, value: [116.407526, 39.90403] },
+ { name: '上海市', itemStyle: { normal: { areaColor: '#7DDEFF' } }, value: [121.473701, 31.230416] },
+ { name: '云南省', itemStyle: { normal: { areaColor: '#7DDEFF' } }, value: [102.103365, 24.235567] },
+ { name: '陕西省', itemStyle: { normal: { areaColor: '#7DDEFF' } }, value: [108.551244, 34.150234] },
+ { name: '新疆维吾尔自治区', itemStyle: { normal: { areaColor: '#7DDEFF' } }, value: [87.627704, 43.793026] },
+ ]
+
},
methods: {
handleDialog(val) {
diff --git a/src/views/line/index.vue b/src/views/line/index.vue
index bb28e16..7089e21 100644
--- a/src/views/line/index.vue
+++ b/src/views/line/index.vue
@@ -62,6 +62,8 @@
:send-height="'940px'"
send-map-color="#e2e2e2"
:send-geo="geoData"
+ :show-line="true"
+ @closeMap="handleCloseMap"
>