@@ -28,7 +56,7 @@ import Employee from "./components/employee";
import CompanyCar from "./components/companyCar";
import CompanyService from "./components/companyService";
import Notification from "./components/notification";
-import Endanger from "./components/endanger"
+import Endanger from "./components/endanger";
export default {
name: "CompositeIndex",
components: {
@@ -37,12 +65,35 @@ export default {
CompanyCar,
CompanyService,
Notification,
- Endanger
+ Endanger,
},
data() {
- return {};
+ return {
+ getPageUrl:'static/map.html', // 引入在线地图
+ options: [
+ {
+ value: "1",
+ label: "地图",
+ },
+ {
+ value: "2",
+ label: "排名",
+ },
+ ],
+ select_value: "地图",
+ };
+ },
+ methods: {
+ change_map(val) {
+ console.log("22222", val);
+ if (val == "2") {
+ console.log("789");
+ this.$router.push({
+ path: "/home/safetyIndex",
+ });
+ }
+ },
},
- methods: {},
};
\ No newline at end of file
diff --git a/src/views/head.vue b/src/views/head.vue
index 54238a9..f176be4 100644
--- a/src/views/head.vue
+++ b/src/views/head.vue
@@ -13,7 +13,7 @@
:router="true"
>
-
综合指数
diff --git a/src/views/realtimeWarning/map.vue b/src/views/realtimeWarning/map.vue
index 0280a62..7400027 100644
--- a/src/views/realtimeWarning/map.vue
+++ b/src/views/realtimeWarning/map.vue
@@ -44,7 +44,8 @@ export default {
styleJson,
},
});
-
+ console.log('this.dongtaiPoint[0]',this.dongtaiPoint[0]);
+ console.log('this.dongtaiPoint[1]',this.dongtaiPoint[1]);
// console.log(this.WaringList, 'waringList');
let that = this;
map.centerAndZoom(
diff --git a/src/views/safetyIndex/toubu.vue b/src/views/safetyIndex/toubu.vue
index 2253539..cb02b4c 100644
--- a/src/views/safetyIndex/toubu.vue
+++ b/src/views/safetyIndex/toubu.vue
@@ -113,11 +113,12 @@
placeholder="请选择"
class="topSelect"
v-if="Selectvalue == '排名'"
+ @change="change_map"
>
-
-
+ -->
{
- console.log('ressss',res.data);
+ console.log("ressss", res.data);
this.statisticsDangerData = res.data;
});
},
@@ -278,6 +279,13 @@ export default {
path: "/home/companyCanban",
});
},
+ change_map(val) {
+ if (val == "地图") {
+ this.$router.push({
+ path: "/home/compositeIndex",
+ });
+ }
+ },
},
};