From 0e461a232cce6e52fbfd071788bdd7294d51e397 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 21 Dec 2021 16:43:00 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web
---
src/components/mobileCortrolButtom/index.vue | 58 +++++++++++++++++++++++++++++-----------------------------
1 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/src/components/mobileCortrolButtom/index.vue b/src/components/mobileCortrolButtom/index.vue
index 27b63b7..350cbad 100644
--- a/src/components/mobileCortrolButtom/index.vue
+++ b/src/components/mobileCortrolButtom/index.vue
@@ -9,10 +9,10 @@
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item
- v-for="(item, index) in flagList"
+ v-for="(item, index) in tabTable"
:key="index"
:command="item"
- >{{ item.name }}</el-dropdown-item
+ >{{ item.title }}</el-dropdown-item
>
</el-dropdown-menu>
</el-dropdown>
@@ -27,29 +27,13 @@
<script>
import { mapGetters } from "vuex";
import { getIp, getUsers } from "@/api/mobile/ip/index";
+import { getListarc } from "@/api/mobile/public/arc";
export default {
name: "mobileCortrolButtom",
data() {
return {
DC: "",
- flagList: [
- {
- name: "西东大街",
- position: [121.49500690245499, 31.23791479409691],
- },
- {
- name: "长江路",
- position: [121.52498934134815, 31.227021231622302],
- },
- {
- name: "科技园",
- position: [121.48624368075255, 31.197575925580797],
- },
- {
- name: "逸夫楼",
- position: [121.52391709005656, 31.276115901927575],
- },
- ],
+ tabTable: [],
};
},
computed: {
@@ -57,6 +41,7 @@
},
created() {
this.DC = global.DC;
+ this.getStreet();
},
mounted() {},
methods: {
@@ -64,15 +49,15 @@
let that = this;
console.log(command, "定位");
// 定位
- this.mviewer.zoomToPosition(
- new that.DC.Position(
- command.position[0],
- command.position[1] - 0.012,
- 1530,
- 0,
- -45
- )
- );
+ // this.mviewer.zoomToPosition(
+ // new that.DC.Position(
+ // command.position[0],
+ // command.position[1] - 0.012,
+ // 1530,
+ // 0,
+ // -45
+ // )
+ // );
},
openBigPopupAfter() {
this.$store.commit("MSET_BIGPOPUPAFTER", true);
@@ -91,6 +76,21 @@
// console.log(res);
// });
},
+ getStreet() {
+ getListarc().then((res) => {
+ let title = [];
+ res.data.data.forEach((item) => {
+ title.push({
+ title: item.dictValue,
+ flag: false,
+ key: item.dictKey,
+ child: [],
+ });
+ });
+ this.tabTable = title;
+ this.$store.commit("MSET_POPUPTABLENAME", title);
+ });
+ },
},
};
</script>
--
Gitblit v1.9.3