|
@@ -4,6 +4,7 @@
|
|
|
<div class="canvas-container">
|
|
|
<canvas id="canvas" :width="canvasWidth" :height="canvasHeight" ref="canvas" tabindex="0"></canvas>
|
|
|
</div>
|
|
|
+ <menuList :style="menuStyle"></menuList>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -25,7 +26,8 @@ import { SImageLegendItem } from "@/lib/items/SImageLegendItem";
|
|
|
import store from "../store";
|
|
|
import { Loading } from "element-ui";
|
|
|
import { Message } from "element-ui";
|
|
|
-import { SCircleItem } from "@/lib/items/SCircleItem"
|
|
|
+import { SCircleItem } from "@/lib/items/SCircleItem";
|
|
|
+import menuList from "@/components/edit/menu_list.vue";
|
|
|
window.FENGMAP = null;
|
|
|
//// 底图空间增加字段 isExtracted:boolean true 已被提取过
|
|
|
export default {
|
|
@@ -41,6 +43,9 @@ export default {
|
|
|
required: false
|
|
|
}
|
|
|
},
|
|
|
+ components: {
|
|
|
+ menuList
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
appName: "万达可视化系统",
|
|
@@ -59,7 +64,11 @@ export default {
|
|
|
graphId: "",
|
|
|
initScale: 1, //加载好底图之后的,初始缩放比例
|
|
|
changeScaleByClick: false, //区分 滚轮,点击 事件改变的缩放比例
|
|
|
- autoSave: null
|
|
|
+ autoSave: null,
|
|
|
+ menuStyle: {
|
|
|
+ top: 0,
|
|
|
+ left: 0
|
|
|
+ }
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
@@ -755,6 +764,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ // // 禁用鼠标右键菜单
|
|
|
+ // window.oncontextmenu=(e) => {
|
|
|
+ // console.log("#############",e);
|
|
|
+ // this.menuStyle.top = `${e.clientY}px`
|
|
|
+ // this.menuStyle.left = `${e.clientX}px`
|
|
|
+ // //取消默认的浏览器自带右键 很重要!!
|
|
|
+ // e.preventDefault();
|
|
|
+ // }
|
|
|
const href = window.location.href;
|
|
|
// 路由
|
|
|
// const route = href.split("?")[0];
|