Browse Source

Merge branch 'master' of http://192.168.0.115:3000/bill/traffic-laser

xushiting 2 years ago
parent
commit
4de8dc100f
2 changed files with 5 additions and 14 deletions
  1. 2 6
      src/graphic/enum/UIEvents.js
  2. 3 8
      src/views/graphic/geos/road.vue

+ 2 - 6
src/graphic/enum/UIEvents.js

@@ -2,8 +2,6 @@ const UIEvents = {
   // 图例
   // 客车平面
   BusPlane: "BusPlane",
-  // 解锁
-  UnLock: "解锁",
 
   // 画直线线
   Line: "line",
@@ -139,14 +137,12 @@ const UIEvents = {
   BasemapClose: "BasemapClose",
 
   // ------------选中组件时的UI控制-----------
+  // 解锁
+  UnLock: "UnLock",
   // 加控制点
   AddCrossPoint: "AddCrossPoint",
   // 减控制点
   MinusCrossPoint: "MinusCrossPoint",
-  // 复制
-  Copy: "copy",
-  // 删除
-  Delete: "delete",
   // 单实线
   SingleSolidLine: "SingleSolidLine",
   // 单虚线

+ 3 - 8
src/views/graphic/geos/road.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="layout">
     <GraphicAction class="full-action">
-      <ui-icon type="lock" ctrl @click="clickHandlerFactory(UIEvents.UnLock)"/>
+      <ui-icon type="lock" ctrl @click="clickHandlerFactory(UIEvents.UnLock)()"/>
     </GraphicAction>
     <GeoTeleport :menus="menus" class="geo-teleport-use"  />
   </div>
@@ -9,16 +9,11 @@
 
 <script setup lang="ts">
 import GeoTeleport from "@/views/graphic/geos/geo-teleport.vue";
-import UiInput from "@/components/base/components/input/index.vue";
 import UiIcon from "@/components/base/components/icon/index.vue";
-import {drawRef, FocusVector, uiType, UIType, useChange} from '@/hook/useGraphic'
-import {computed, ref, toRaw, UnwrapRef, watch, watchEffect} from "vue";
+import {drawRef, FocusVector, uiType, UIType} from '@/hook/useGraphic'
+import {computed, ref} from "vue";
 import {dataService} from "@/graphic/Service/DataService";
 import GeoActions from "@/graphic/enum/GeoActions"
-import {debounce} from "@/utils";
-import VectorCategory from "@/graphic/enum/VectorCategory";
-import {UITypeExtend} from "@/views/graphic/menus";
-import {customMap} from "@/hook";
 import GraphicAction from "@/components/button-pane/index.vue";
 import UIEvents from "@/graphic/enum/UIEvents";