diff --git a/index.html b/index.html index 5d4f2926..50a5fa13 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@
"+layerInfo.name+"
\\n ";this._layerData.base.push({layerInfo:layerInfo,container:div})};MapType.prototype._addOverlayDiv=function(layerInfo){var div=AMap.DomUtil.create("li",this._container,"amap-ui-ctrl-layer-overlay-item");this._layerOverlayList.appendChild(div);div.innerHTML="\\n \\n"+layerInfo.name+"
\\n ";this._layerData.overlay.push({layerInfo:layerInfo,container:div})};return MapType}(AMap.Control);AMap["MapType"]=MapType})(); ');_jsload_('AMap.MouseTool', '(function(){"use strict";var extendStatics=function(d,b){extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return extendStatics(d,b)};function __extends(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();var Symbol=root.Symbol;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag}else{delete value[symToStringTag]}}return result}var objectProto$1=Object.prototype;var nativeObjectToString$1=objectProto$1.toString;function objectToString(value){return nativeObjectToString$1.call(value)}var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag$1=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag$1&&symToStringTag$1 in Object(value)?getRawTag(value):objectToString(value)}function isObjectLike(value){return value!=null&&typeof value=="object"}var isArray=Array.isArray;function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}function identity(value){return value}var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}var coreJsData=root["__core-js_shared__"];var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}var reRegExpChar=/[\\\\^$.*+?()[\\]{}|]/g;var reIsHostCtor=/^\\[object .+?Constructor\\]$/;var funcProto$1=Function.prototype,objectProto$2=Object.prototype;var funcToString$1=funcProto$1.toString;var hasOwnProperty$1=objectProto$2.hasOwnProperty;var reIsNative=RegExp("^"+funcToString$1.call(hasOwnProperty$1).replace(reRegExpChar,"\\\\$&").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,"$1.*?")+"$");function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}function getValue(object,key){return object==null?undefined:object[key]}function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}function constant(value){return function(){return value}}var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{configurable:true,enumerable:false,value:constant(string),writable:true})};var setToString=shortOut(baseSetToString);var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value
";_this.dl="
";_this.merge(_this,opts);_this._lastRecord=null;_this._status=_this.STATUS.OFF;return _this}RangingTool.prototype["turnOn"]=function(){if(this._status===this.STATUS.OFF){this._off2Ready();this._cacheDoubleClickZoom=this._map["getStatus"]()["doubleClickZoom"];this._map["setStatus"]({doubleClickZoom:false})}};RangingTool.prototype["turnOff"]=function(removeOverlays){if(this._status===this.STATUS.READY){this._ready2Off();this._map["setStatus"]({doubleClickZoom:this._cacheDoubleClickZoom})}else if(this._status===this.STATUS.WORKING){this._onEnd();this._working2Off();this._map["setStatus"]({doubleClickZoom:this._cacheDoubleClickZoom})}if(removeOverlays){this._removeAllRecords()}};RangingTool.prototype.setOptions=function(opts){this.merge(this,opts)};RangingTool.prototype.merge=function(obj1,obj2){for(var i in obj2){if(obj2.hasOwnProperty(i)){obj1[i]=obj2[i];if(i==="tmpLineOptions"||i==="lineOptions"){obj1[i]["bubble"]=true}}}};RangingTool.prototype.updateOptions=function(marker,options){var setting={position:[undefined,"setPosition"],draggable:[false,"setDraggable"],content:[undefined,"setContent"],icon:[undefined,"setIcon"],offset:[undefined,"setOffset"],zIndex:[100,"setzIndex"]};for(var key in setting){if(setting.hasOwnProperty(key)){var value=options[key]||setting[key][0];if(value!==undefined){marker[setting[key][1]](value)}}}};RangingTool.prototype._off2Ready=function(){this._map.on("click",this._onStart,this,true);this._status=this.STATUS.READY};RangingTool.prototype._ready2Off=function(){this._map.off("click",this._onStart,this);this._status=this.STATUS.OFF};RangingTool.prototype._ready2Working=function(){this._map.on("click",this._onAddNode,this);this._map.on("mousemove",this._onMouseMove,this);this._map.on("rightclick",this._onEnd,this,true);this._map.on("dblclick",this._onEnd,this,true);this._container.addEventListener("keydown",this._keydownEvent);this._status=this.STATUS.WORKING};RangingTool.prototype._working2Off=function(){this._map.off("click",this._onStart,this);this._map.off("click",this._onAddNode,this);this._map.off("mousemove",this._onMouseMove,this);this._map.off("rightclick",this._onEnd,this);this._map.off("dblclick",this._onEnd,this,true);this._container.removeEventListener("keydown",this._keydownEvent);this._status=this.STATUS.OFF};RangingTool.prototype._working2Ready=function(){this._working2Off();this._off2Ready();this._status=this.STATUS.READY};RangingTool.prototype._onStart=function(e){this._map["setStatus"]({allBubble:true});var record={prev:this._lastRecord};var node={_position:e["lnglat"],_marker:null};record._lastNode=node;if(this._lastRecord){this._lastRecord.next=record}this.originDraggable=this._map["getStatus"]()["dragEnable"];this._map["setStatus"]({dragEnable:false});this._lastRecord=record;this._renderMarker(node,this["startMarkerOptions"]);this._renderLabel(node,this["startLabelText"],this["startLabelOffset"],this._getRemoveNodeFunction(node,record));this._ready2Working();var addnodeEvent={position:e["lnglat"],marker:node._marker};this.emit("addnode",addnodeEvent)};RangingTool.prototype._onAddNode=function(e){var record=this._lastRecord;var prevNode=record._lastNode;var newNode={_position:e["lnglat"],prev:prevNode,_marker:null};if(prevNode&&prevNode._position.equals(e["lnglat"])){this._onEnd();return}prevNode.next=newNode;record._lastNode=newNode;this._renderMarker(newNode,this["midMarkerOptions"]);this._renderLabel(newNode,this["midLabelText"],this["midLabelOffset"],this._getRemoveNodeFunction(newNode,record));this._renderLine(record);if(this._tmpLine){this._tmpLine["setPath"]([e["lnglat"],e["lnglat"]])}var addnodeEvent={position:e["lnglat"],marker:newNode._marker};this.emit("addnode",addnodeEvent)};RangingTool.prototype._onMouseMove=function(e){var record=this._lastRecord;var position=record._lastNode._position;if(!this._tmpLine){this._tmpLine=new AMap.Polyline(this["tmpLineOptions"]);this._tmpLine.name="tmpLine";this._map.add(this._tmpLine)}this._tmpLine.isOfficial=true;this._tmpLine["setPath"]([position,e["lnglat"]]);var distance=this._tmpLine["getLength"]();if(record._line){distance+=record._line["getLength"]()}var moveEvent={position:e["lnglat"],distance:distance,target:this};this.emit("move",moveEvent)};RangingTool.prototype._onKeyDown=function(e){if(e.keyCode===27){this._onEnd()}};RangingTool.prototype._onEnd=function(){var record=this._lastRecord;var node=record&&record._lastNode;this._map["setStatus"]({allBubble:false,dragEnable:this.originDraggable});this["endMarkerOptions"]["bubble"]=false;if(node&&node.prev){this._renderMarker(node,this["endMarkerOptions"]);this._renderLabel(node,this["endLabelText"],this["endLabelOffset"],this._getRemoveNodeFunction(node,record),this._getRemoveRecordFunction(record))}else if(record){this._removeRecord(record)}this._working2Ready();if(this._tmpLine){this._map.remove(this._tmpLine);this._tmpLine=null}if(record&&record._line){record._line["setOptions"]({bubble:false});var endEvent={polyline:record._line,points:record._line["getPath"](),distance:record._line["getLength"]()};this.emit("end",endEvent)}else{this.emit("cancel",{obj:false})}};RangingTool.prototype._renderLine=function(record){var path=[];var cur=record._lastNode;while(cur){path.unshift(cur._position);cur=cur.prev}if(path.length<2){this._removeRecord(record)}else{if(record._line){record._line["setPath"](path)}else{record._line=new AMap.Polyline(this["lineOptions"]);record._line.isOfficial=true;record._line.name="recrdLine";record._line["setPath"](path);this._map.add(record._line)}}};RangingTool.prototype._renderMarker=function(node,options){var isNew=!node._marker;var map=this._map;this.merge(options,{position:node._position,bubble:true,innerOverlay:true});if(!isNew){this.updateOptions(node._marker,options)}else{node._marker=new AMap.Marker(options);node._marker.name="marker";this._map.add(node._marker);node._marker.isOfficial=true}};RangingTool.prototype._renderLabel=function(node,text,offset,dnCallback,dlCallback){var content=document.createElement("div");var d=0;if(node._label){this._map.remove(node._label);delete node._label}if(text.match("{d}")){var cur=node.prev;while(cur){var dis=AMap.GeometryUtil.distance(cur._position,cur.next._position);d+=dis;cur=cur.prev}d=(d/this.d).toFixed(this.d===1?1:2);text=text.replace("{d}",d)}content.className="amap-ranging-label";var span=document.createElement("span");span.innerHTML=text;content.appendChild(span);if(dnCallback){content.appendChild(this._getSmallButton(this.dn,dnCallback))}if(dlCallback){content.appendChild(this._getSmallButton(this.dl,dlCallback))}node._label=new AMap.Marker({content:content,position:node._position,offset:offset,cursor:"pointer",zIndex:110,bubble:false});node._label.isOfficial=true;node._marker.name="label";this._map.add(node._label)};RangingTool.prototype._updateLabels=function(record){var cur=record._lastNode;if(cur){this._renderLabel(cur,this["endLabelText"],this["endLabelOffset"],this._getRemoveNodeFunction(cur,record),this._getRemoveRecordFunction(record));while(cur.prev){cur=cur.prev;this._renderLabel(cur,this["midLabelText"],this["midLabelOffset"],this._getRemoveNodeFunction(cur,record))}this._renderLabel(cur,this["startLabelText"],this["startLabelOffset"],this._getRemoveNodeFunction(cur,record))}};RangingTool.prototype._getSmallButton=function(html,callback){var button=document.createElement("span");button.innerHTML=html;button.addEventListener("click",function(e){callback()});button.addEventListener("mousedown",function(e){e.stopPropagation()});return button};RangingTool.prototype._getRemoveNodeFunction=function(node,record){var _this=this;var removeNodeFun=function(){if(_this._status!==_this.STATUS.WORKING){_this._removeNode(node,record)}};return removeNodeFun};RangingTool.prototype._getRemoveRecordFunction=function(record){var self=this;return function(e){if(self._status!==self.STATUS.WORKING){self.emit("delete",{target:self});self._removeRecord(record)}}};RangingTool.prototype._removeNode=function(node,record){if(node.prev){node.prev.next=node.next}else if(node.next){this._renderMarker(node.next,this["startMarkerOptions"])}if(node.next){node.next.prev=node.prev}else if(node.prev){this._renderMarker(node.prev,this["endMarkerOptions"]);record._lastNode=node.prev}node.prev=node.next=null;if(node._marker){this._map.remove(node._marker);node._marker=null}if(node._label){this._map.remove(node._label);node._label=null}this._renderLine(record);this._updateLabels(record);var removenodeEvent={polyline:record._line,points:record._line?record._line["getPath"]():[],distance:record._line?record._line["getLength"]():null,target:this};this.emit("removenode",removenodeEvent)};RangingTool.prototype._removeRecord=function(record){var node=record._lastNode;if(record._line){this._map.remove(record._line);record._line=null}while(node){if(node._marker){this._map.remove(node._marker);node._marker=null}if(node._label){this._map.remove(node._label);node._label=null}node=node.prev}if(record.prev){record.prev.next=record.next}if(record.next){record.next.prev=record.prev}else{this._lastRecord=record.prev}record._lastNode=record.prev=record.next=null};RangingTool.prototype._removeAllRecords=function(){while(this._lastRecord){this._removeRecord(this._lastRecord)}};return RangingTool}(AMap.Event);AMap["RangingTool"]=RangingTool})(); ')
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index 98d56bd4..129f83d4 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,17 +14,22 @@ import '@fortawesome/fontawesome-free/css/all.css'
import '@/styles/index.scss'
import '@/assets/font/iconfont.css'
import { ElDialog } from 'element-plus'
-
+// 引入vue-amap
+import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap'
+import '@vuemap/vue-amap/dist/style.css'
window.XEUtils = XEUtils
-
const app = createApp(App)
+initAMapApiLoader({
+ offline: true
+})
app.use(router)
app.use(pinia)
-app.use(ElementPlus);
-(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
+app.use(VueAMap)
+app.use(ElementPlus)
app.use(VXETable)
+;(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
registerIcons(app) // icons
app.mount('#app')
diff --git a/src/views/pms/voltage-sags/overview.vue b/src/views/pms/voltage-sags/overview.vue
new file mode 100644
index 00000000..3d95feed
--- /dev/null
+++ b/src/views/pms/voltage-sags/overview.vue
@@ -0,0 +1,28 @@
+
+
";_this.dl="
";_this.merge(_this,opts);_this._lastRecord=null;_this._status=_this.STATUS.OFF;return _this}RangingTool.prototype["turnOn"]=function(){if(this._status===this.STATUS.OFF){this._off2Ready();this._cacheDoubleClickZoom=this._map["getStatus"]()["doubleClickZoom"];this._map["setStatus"]({doubleClickZoom:false})}};RangingTool.prototype["turnOff"]=function(removeOverlays){if(this._status===this.STATUS.READY){this._ready2Off();this._map["setStatus"]({doubleClickZoom:this._cacheDoubleClickZoom})}else if(this._status===this.STATUS.WORKING){this._onEnd();this._working2Off();this._map["setStatus"]({doubleClickZoom:this._cacheDoubleClickZoom})}if(removeOverlays){this._removeAllRecords()}};RangingTool.prototype.setOptions=function(opts){this.merge(this,opts)};RangingTool.prototype.merge=function(obj1,obj2){for(var i in obj2){if(obj2.hasOwnProperty(i)){obj1[i]=obj2[i];if(i==="tmpLineOptions"||i==="lineOptions"){obj1[i]["bubble"]=true}}}};RangingTool.prototype.updateOptions=function(marker,options){var setting={position:[undefined,"setPosition"],draggable:[false,"setDraggable"],content:[undefined,"setContent"],icon:[undefined,"setIcon"],offset:[undefined,"setOffset"],zIndex:[100,"setzIndex"]};for(var key in setting){if(setting.hasOwnProperty(key)){var value=options[key]||setting[key][0];if(value!==undefined){marker[setting[key][1]](value)}}}};RangingTool.prototype._off2Ready=function(){this._map.on("click",this._onStart,this,true);this._status=this.STATUS.READY};RangingTool.prototype._ready2Off=function(){this._map.off("click",this._onStart,this);this._status=this.STATUS.OFF};RangingTool.prototype._ready2Working=function(){this._map.on("click",this._onAddNode,this);this._map.on("mousemove",this._onMouseMove,this);this._map.on("rightclick",this._onEnd,this,true);this._map.on("dblclick",this._onEnd,this,true);this._container.addEventListener("keydown",this._keydownEvent);this._status=this.STATUS.WORKING};RangingTool.prototype._working2Off=function(){this._map.off("click",this._onStart,this);this._map.off("click",this._onAddNode,this);this._map.off("mousemove",this._onMouseMove,this);this._map.off("rightclick",this._onEnd,this);this._map.off("dblclick",this._onEnd,this,true);this._container.removeEventListener("keydown",this._keydownEvent);this._status=this.STATUS.OFF};RangingTool.prototype._working2Ready=function(){this._working2Off();this._off2Ready();this._status=this.STATUS.READY};RangingTool.prototype._onStart=function(e){this._map["setStatus"]({allBubble:true});var record={prev:this._lastRecord};var node={_position:e["lnglat"],_marker:null};record._lastNode=node;if(this._lastRecord){this._lastRecord.next=record}this.originDraggable=this._map["getStatus"]()["dragEnable"];this._map["setStatus"]({dragEnable:false});this._lastRecord=record;this._renderMarker(node,this["startMarkerOptions"]);this._renderLabel(node,this["startLabelText"],this["startLabelOffset"],this._getRemoveNodeFunction(node,record));this._ready2Working();var addnodeEvent={position:e["lnglat"],marker:node._marker};this.emit("addnode",addnodeEvent)};RangingTool.prototype._onAddNode=function(e){var record=this._lastRecord;var prevNode=record._lastNode;var newNode={_position:e["lnglat"],prev:prevNode,_marker:null};if(prevNode&&prevNode._position.equals(e["lnglat"])){this._onEnd();return}prevNode.next=newNode;record._lastNode=newNode;this._renderMarker(newNode,this["midMarkerOptions"]);this._renderLabel(newNode,this["midLabelText"],this["midLabelOffset"],this._getRemoveNodeFunction(newNode,record));this._renderLine(record);if(this._tmpLine){this._tmpLine["setPath"]([e["lnglat"],e["lnglat"]])}var addnodeEvent={position:e["lnglat"],marker:newNode._marker};this.emit("addnode",addnodeEvent)};RangingTool.prototype._onMouseMove=function(e){var record=this._lastRecord;var position=record._lastNode._position;if(!this._tmpLine){this._tmpLine=new AMap.Polyline(this["tmpLineOptions"]);this._tmpLine.name="tmpLine";this._map.add(this._tmpLine)}this._tmpLine.isOfficial=true;this._tmpLine["setPath"]([position,e["lnglat"]]);var distance=this._tmpLine["getLength"]();if(record._line){distance+=record._line["getLength"]()}var moveEvent={position:e["lnglat"],distance:distance,target:this};this.emit("move",moveEvent)};RangingTool.prototype._onKeyDown=function(e){if(e.keyCode===27){this._onEnd()}};RangingTool.prototype._onEnd=function(){var record=this._lastRecord;var node=record&&record._lastNode;this._map["setStatus"]({allBubble:false,dragEnable:this.originDraggable});this["endMarkerOptions"]["bubble"]=false;if(node&&node.prev){this._renderMarker(node,this["endMarkerOptions"]);this._renderLabel(node,this["endLabelText"],this["endLabelOffset"],this._getRemoveNodeFunction(node,record),this._getRemoveRecordFunction(record))}else if(record){this._removeRecord(record)}this._working2Ready();if(this._tmpLine){this._map.remove(this._tmpLine);this._tmpLine=null}if(record&&record._line){record._line["setOptions"]({bubble:false});var endEvent={polyline:record._line,points:record._line["getPath"](),distance:record._line["getLength"]()};this.emit("end",endEvent)}else{this.emit("cancel",{obj:false})}};RangingTool.prototype._renderLine=function(record){var path=[];var cur=record._lastNode;while(cur){path.unshift(cur._position);cur=cur.prev}if(path.length<2){this._removeRecord(record)}else{if(record._line){record._line["setPath"](path)}else{record._line=new AMap.Polyline(this["lineOptions"]);record._line.isOfficial=true;record._line.name="recrdLine";record._line["setPath"](path);this._map.add(record._line)}}};RangingTool.prototype._renderMarker=function(node,options){var isNew=!node._marker;var map=this._map;this.merge(options,{position:node._position,bubble:true,innerOverlay:true});if(!isNew){this.updateOptions(node._marker,options)}else{node._marker=new AMap.Marker(options);node._marker.name="marker";this._map.add(node._marker);node._marker.isOfficial=true}};RangingTool.prototype._renderLabel=function(node,text,offset,dnCallback,dlCallback){var content=document.createElement("div");var d=0;if(node._label){this._map.remove(node._label);delete node._label}if(text.match("{d}")){var cur=node.prev;while(cur){var dis=AMap.GeometryUtil.distance(cur._position,cur.next._position);d+=dis;cur=cur.prev}d=(d/this.d).toFixed(this.d===1?1:2);text=text.replace("{d}",d)}content.className="amap-ranging-label";var span=document.createElement("span");span.innerHTML=text;content.appendChild(span);if(dnCallback){content.appendChild(this._getSmallButton(this.dn,dnCallback))}if(dlCallback){content.appendChild(this._getSmallButton(this.dl,dlCallback))}node._label=new AMap.Marker({content:content,position:node._position,offset:offset,cursor:"pointer",zIndex:110,bubble:false});node._label.isOfficial=true;node._marker.name="label";this._map.add(node._label)};RangingTool.prototype._updateLabels=function(record){var cur=record._lastNode;if(cur){this._renderLabel(cur,this["endLabelText"],this["endLabelOffset"],this._getRemoveNodeFunction(cur,record),this._getRemoveRecordFunction(record));while(cur.prev){cur=cur.prev;this._renderLabel(cur,this["midLabelText"],this["midLabelOffset"],this._getRemoveNodeFunction(cur,record))}this._renderLabel(cur,this["startLabelText"],this["startLabelOffset"],this._getRemoveNodeFunction(cur,record))}};RangingTool.prototype._getSmallButton=function(html,callback){var button=document.createElement("span");button.innerHTML=html;button.addEventListener("click",function(e){callback()});button.addEventListener("mousedown",function(e){e.stopPropagation()});return button};RangingTool.prototype._getRemoveNodeFunction=function(node,record){var _this=this;var removeNodeFun=function(){if(_this._status!==_this.STATUS.WORKING){_this._removeNode(node,record)}};return removeNodeFun};RangingTool.prototype._getRemoveRecordFunction=function(record){var self=this;return function(e){if(self._status!==self.STATUS.WORKING){self.emit("delete",{target:self});self._removeRecord(record)}}};RangingTool.prototype._removeNode=function(node,record){if(node.prev){node.prev.next=node.next}else if(node.next){this._renderMarker(node.next,this["startMarkerOptions"])}if(node.next){node.next.prev=node.prev}else if(node.prev){this._renderMarker(node.prev,this["endMarkerOptions"]);record._lastNode=node.prev}node.prev=node.next=null;if(node._marker){this._map.remove(node._marker);node._marker=null}if(node._label){this._map.remove(node._label);node._label=null}this._renderLine(record);this._updateLabels(record);var removenodeEvent={polyline:record._line,points:record._line?record._line["getPath"]():[],distance:record._line?record._line["getLength"]():null,target:this};this.emit("removenode",removenodeEvent)};RangingTool.prototype._removeRecord=function(record){var node=record._lastNode;if(record._line){this._map.remove(record._line);record._line=null}while(node){if(node._marker){this._map.remove(node._marker);node._marker=null}if(node._label){this._map.remove(node._label);node._label=null}node=node.prev}if(record.prev){record.prev.next=record.next}if(record.next){record.next.prev=record.prev}else{this._lastRecord=record.prev}record._lastNode=record.prev=record.next=null};RangingTool.prototype._removeAllRecords=function(){while(this._lastRecord){this._removeRecord(this._lastRecord)}};return RangingTool}(AMap.Event);AMap["RangingTool"]=RangingTool})(); ')
\ No newline at end of file
diff --git a/src/main.ts b/src/main.ts
index 98d56bd4..129f83d4 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -14,17 +14,22 @@ import '@fortawesome/fontawesome-free/css/all.css'
import '@/styles/index.scss'
import '@/assets/font/iconfont.css'
import { ElDialog } from 'element-plus'
-
+// 引入vue-amap
+import VueAMap, { initAMapApiLoader } from '@vuemap/vue-amap'
+import '@vuemap/vue-amap/dist/style.css'
window.XEUtils = XEUtils
-
const app = createApp(App)
+initAMapApiLoader({
+ offline: true
+})
app.use(router)
app.use(pinia)
-app.use(ElementPlus);
-(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
+app.use(VueAMap)
+app.use(ElementPlus)
app.use(VXETable)
+;(app._context.components.ElDialog as typeof ElDialog).props.closeOnClickModal.default = false
registerIcons(app) // icons
app.mount('#app')
diff --git a/src/views/pms/voltage-sags/overview.vue b/src/views/pms/voltage-sags/overview.vue
new file mode 100644
index 00000000..3d95feed
--- /dev/null
+++ b/src/views/pms/voltage-sags/overview.vue
@@ -0,0 +1,28 @@
+
+