Your Name
2022-09-26 bb455cebea17349a2f5ed0d4e86eac3905b24585
1
(this.webpackJsonp=this.webpackJsonp||[]).push([["chunk-commons"],{"/eoX":function(t,e,a){},"1V/b":function(t,e,a){"use strict";var i=a("bS4n"),n=a.n(i),l=a("KRny"),o={opacity:1,color:"#FFFFFF",font_family:"黑体",font_size:18,font_style:"normal",font_weight:"normal",border:!1,border_color:"#ffffff",border_width:2,background:!0,background_color:"#000"},s={components:{},data:function(){return{label:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},labels:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"label"===t.attribute.type})}},methods:{editHandle:function(t){l.c.map&&(this.label={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLabel:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;if(l.c.map){var e=l.c.map,a=this.label,i=a.id,s=a.name,r=i&&e.getPlotById(i);this.closeCreateHandle(),r?(e.updatePlotStyle(i,{text:s}),e.updatePlotAttribute(i,{name:s}),this._initLabel(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"label",style:n()({text:s},o),attr:{name:s}},function(){t._initLabel(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},r=(a("rFL2"),a("ZrdR")),c=Object(r.a)(s,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n          创建\n        ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n          清空\n        ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n          "+t._s(t.showPlot?"隐藏":"显示")+"\n        ")])],1)],1),t._v(" "),t._l(t.labels,function(e){return a("el-row",{key:e.attr.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:14}},[t._v("\n        "+t._s(e.attr.name||" ")+"\n      ")]),t._v(" "),a("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建标注","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.label.name,callback:function(e){t.$set(t.label,"name",e)},expression:"label.name"}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"2e9e3636",null);c.options.__file="Label.vue";var m=c.exports,u=a("cLjf"),p=a.n(u),d=a("omC7"),h=a.n(d),f=a("hDQ3"),v=a.n(f),b=a("UzrJ"),_={props:["type","colorMapList"],components:{},data:function(){return{label:{id:null,name:""},color:"",colorList:[{id:1,name:"blue",text:"低风险"},{id:2,name:"yellow",text:"一般风险"},{id:3,name:"orange",text:"较大风险"},{id:4,name:"red",text:"重大风险"}],showCreatePanel:!1,showPlot:!0,form:{id:"",etype:1,type:"Feature",properties:{type:"polygon",style:{text:"D号楼",clampToGround:!0,color:""},attr:{name:"",id:""}},geometry:{type:"Polygon",coordinates:[[[120.728524,31.258178,0],[120.727911,31.257992,0],[120.728024,31.25772,0],[120.727986,31.2577,0],[120.728039,31.257535,0],[120.728759,31.257714,0],[120.728524,31.258178,0],[120.728524,31.258178,0],[120.728524,31.258178,0]]]}}}},computed:{timestamp:function(){return this.$store.state.map.timestamp},labels:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"polygon"===t.attribute.type})}},methods:{editHandle:function(t){l.c.map&&(this.label={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){var e=this;if(l.c.map)for(var a in this.colorMapList)JSON.parse(this.colorMapList[a].properties).attr.id===t.attr.id&&Object(b.b)({id:this.colorMapList[a].id}).then(function(a){"200"===a.data.code&&(e.$message({title:"成功",message:"删除成功",duration:2e3,type:"success"}),l.c.map.deletePlot(t.attr.id),e.$store.dispatch("map/updateTimestamp"))})},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLabel:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;return v()(p.a.mark(function e(){var a,i,n,o,s;return p.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(l.c.map){e.next=2;break}return e.abrupt("return");case 2:a=l.c.map,i=t.label,n=i.id,o=i.name,s=n&&a.getPlotById(n),t.closeCreateHandle(),s?(a.updatePlotStyle(n,{text:o}),a.updatePlotAttribute(n,{name:o}),t._initLabel(),t.$store.dispatch("map/updateTimestamp")):a.startDraw({type:"polygon",style:{text:o,color:t.color,clampToGround:!0},attr:{name:o}},function(e){console.log(wutu3d.draw.attr.getCoordinates(e)),t._initLabel(),t.$store.dispatch("map/updateTimestamp"),t.form={id:"",etype:t.type,type:"Feature",properties:h()(e.attribute),geometry:h()({type:"Polygon",coordinates:[wutu3d.draw.attr.getCoordinates(e)]})},Object(b.a)(t.form).then(function(e){"200"===e.data.code&&t.$message({type:"success",duration:2e3,title:"成功",message:"四色图新增成功"}),t.$emit("getList")})});case 7:case"end":return e.stop()}},e,t)}))()},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},g=(a("uyxc"),Object(r.a)(_,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n                        创建\n                    ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n                        "+t._s(t.showPlot?"隐藏":"显示")+"\n                    ")])],1)],1),t._v(" "),t._l(t.labels,function(e){return a("el-row",{key:e.attr.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:14}},[t._v("\n                    "+t._s(e.attr.name||" ")+"\n                ")]),t._v(" "),a("el-col",{staticStyle:{textalign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建标注","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.label.name,callback:function(e){t.$set(t.label,"name",e)},expression:"label.name"}}),t._v(" "),a("p",[t._v("请选择风险等级:")]),t._v(" "),a("el-select",{attrs:{placeholder:"请选择"},model:{value:t.color,callback:function(e){t.color=e},expression:"color"}},t._l(t.colorList,function(t){return a("el-option",{key:t.id,attrs:{value:t.name,label:t.text}})})),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"57f6a8f0",null));g.options.__file="Plot.vue";var w=g.exports,y=a("4Gw3"),k=a("zhJn"),H=a("WqOt"),P=a("8cix"),C=a("DUma"),T=a("tUB6"),$=a("zmaI"),x=a("A6MW"),E={components:{},data:function(){return{labels:[{id:1,url:y,name:"动火作业"},{id:2,url:k,name:"吊装作业"},{id:3,url:H,name:"高处作业"},{id:4,url:P,name:"受限空间"},{id:5,url:C,name:"盲板抽堵"},{id:6,url:T,name:"临时用电"},{id:7,url:$,name:"动土作业"},{id:8,url:x,name:"断路作业"}],images:[{url:"../../../public/images/icon/1.png",type:"消防预警"},{url:"../../../public/images/icon/2.png",type:"风险预警"},{url:"../../../public/images/icon/3.png",type:"监控"},{url:"../../../public/images/wet.png",type:"车辆1"},{url:"../../../public/images/dry.png",type:"车辆2"},{url:"../../../public/images/alarm1.png",type:"告警"},{url:"../../../public/images/police.png",type:"警察"}],marker:{id:null,name:"",image:null,scale:.25},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},markers:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"billboard"===t.attribute.type})}},methods:{editHandle:function(t){l.c.map&&(this.marker={id:t.attr.id,name:t.attr.name,image:t.style.image,scale:.5},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initMarker:function(){this.marker={id:null,name:"",image:"",scale:.25}},createHandle:function(){var t=this;if(l.c.map){var e=l.c.map,a=this.marker,i=a.id,n=a.image,o=a.scale,s=a.name,r=i&&e.getPlotById(i);this.closeCreateHandle(),r?(e.updatePlotStyle(i,{image:n,scale:o}),e.updatePlotAttribute(i,{name:s}),this._initMarker(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"billboard",style:{image:n,scale:o},attr:{name:s}},function(){t._initMarker()})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clickCreateHandle:function(t){var e=this;l.c.map&&l.c.map.startDraw({type:"billboard",style:{image:t,scale:.25}},function(){e.$store.dispatch("map/updateTimestamp")})},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},z=(a("hlJu"),Object(r.a)(E,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"images"}),t._v(" "),a("div",{staticClass:"model-panel-list"},t._l(t.labels,function(e){return a("el-row",{key:e.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:18}},[a("img",{staticStyle:{width:"30px",height:"30px"},attrs:{src:e.url}})]),t._v(" "),a("el-col",{attrs:{span:6}},[t._v("\n                    "+t._s(e.name||" ")+"\n                ")])],1)})),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建图标","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.marker.name,callback:function(e){t.$set(t.marker,"name",e)},expression:"marker.name"}}),t._v(" "),a("div",{staticClass:"image-list"},[a("ul",t._l(t.images,function(e){return a("li",{key:e.url,class:t.marker.image===e.url?"active":"",on:{click:function(a){t.marker.image=e.url}}},[a("img",{attrs:{src:e.url}})])}))]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"cb585d66",null));z.options.__file="Marker.vue";var M=z.exports,L={color:"#ff0000",duration:2e3,gradient:0,count:3},D={data:function(){return{circle:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},circles:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"circle"===t.attribute.type&&t.attribute.attr&&t.attribute.attr.wave})}},methods:{editHandle:function(t){l.c.map&&(this.circle={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initCircle:function(){this.label={id:null,name:""}},createHandle:function(){var t=this;if(l.c.map){var e=l.c.map,a=this.circle,i=a.id,o=a.name,s=i&&e.getPlotById(i);this.closeCreateHandle(),s?(e.updatePlotAttribute(i,{name:o}),this._initCircle(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"circle",style:n()({outline:!1},L),attr:{name:o,wave:!0}},function(){t._initCircle(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},B=(a("x2oE"),Object(r.a)(D,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n                      创建\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n                      清空\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n                      "+t._s(t.showPlot?"隐藏":"显示")+"\n                  ")])],1)],1),t._v(" "),t._l(t.circles,function(e){return a("el-row",{key:e.attr.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:14}},[t._v("\n                  "+t._s(e.attr.name||" ")+"\n              ")]),t._v(" "),a("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建波动圈","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.circle.name,callback:function(e){t.$set(t.circle,"name",e)},expression:"circle.name"}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"61a99328",null));B.options.__file="Wave.vue";var O=B.exports,j=a("4QxH"),S={data:function(){return{enablePopup:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},hasEdit:function(){return!this.timestamp||!l.c.map||l.c.map.isPlotEditing()}},methods:{toggleEditHandle:function(){l.c.map&&(l.c.map.setPlotEditable(!this.hasEdit),this.$store.dispatch("map/updateTimestamp"))},clearHandle:function(){l.c.map&&(l.c.map.clearAllPlots(),this.$store.dispatch("map/updateTimestamp"))},downloadHandle:function(){if(l.c.map){var t=h()(l.c.map.toGeoJSON()),e=new Blob([t],{type:"text/plain;charset=utf-8"});Object(j.saveAs)(e,"plots_"+(new Date).getTime()+".geojson")}},togglePopup:function(){this.enablePopup=!this.enablePopup}},mounted:function(){}},V=(a("CV9j"),Object(r.a)(S,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-button-group",[a("el-button",{attrs:{size:"mini"},on:{click:t.toggleEditHandle}},[t._v(t._s(t.hasEdit?"停止编辑":"编辑"))]),t._v(" "),a("el-button",{attrs:{size:"mini"},on:{click:t.clearHandle}},[t._v("清空")]),t._v(" "),a("el-button",{attrs:{size:"mini"},on:{click:t.downloadHandle}},[t._v("下载")])],1)},[],!1,null,null,null));V.options.__file="Tool.vue";var A=V.exports,F={components:{},data:function(){return{model:{id:"",name:"",link:""},showCreatePanel:!1,showModel:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},models:function(){return this.timestamp&&l.c.map?l.c.map.models:[]}},mounted:function(){this.beginSet()},methods:{beginSet:function(){this.focusHandle(this.models[0].id)},editHandle:function(t){l.c.map&&(this.model={id:t.id,name:t.name,link:t.link},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.removeModel(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1,this._initModel()},showCreateHandle:function(){this.showCreatePanel=!0},toggleModelVisible:function(t){var e=l.c.map.getModel(t);e&&l.c.map.setModelVisible(t,!e.visible),this.$store.dispatch("map/updateTimestamp")},_initModel:function(){this.model={id:null,name:"",link:""}},createHandle:function(){if(l.c.map){var t=l.c.map,e=this.model,a=e.link,i=e.name;this.closeCreateHandle(),t.addModel({name:i,link:a}),this.$store.dispatch("map/updateTimestamp")}},toggleVisible:function(){var t=this;this.showModel=!this.showModel,l.c.map&&this.models.forEach(function(e){l.c.map.setModelVisible(e.id,t.showModel)}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){l.c.map&&l.c.map.flyToModel(t)},clearHandle:function(){l.c.map&&this.models.forEach(function(t){l.c.removeModel(t.id)}),this.$store.dispatch("map/updateTimestamp")}}},N=(a("BEP4"),Object(r.a)(F,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n                  添加\n              ")]),t._v(" "),a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showModel?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n                  "+t._s(t.showModel?"隐藏":"显示")+"\n              ")])],1),t._v(" "),t._l(t.models,function(e){return a("el-row",{key:e.link,attrs:{gutter:10}},[a("el-col",{attrs:{span:12}},[t._v("\n                  "+t._s(e.name||" ")+"\n              ")]),t._v(" "),a("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-view",size:"mini",type:e.visible?"primary":"default",circle:""},on:{click:function(){return t.toggleModelVisible(e.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.id)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"添加模型","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("模型名称")]),t._v(" "),a("el-input",{attrs:{placeholder:"模型名称"},model:{value:t.model.name,callback:function(e){t.$set(t.model,"name",e)},expression:"model.name"}}),t._v(" "),a("p",[t._v("模型地址")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入模型地址"},model:{value:t.model.link,callback:function(e){t.$set(t.model,"link",e)},expression:"model.link"}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"a83349be",null));N.options.__file="Model.vue";var I=N.exports,G={components:{},data:function(){return{images:[{url:"./images/wet.png",type:"光柱"}],marker:{id:null,name:"",image:null,scale:.25},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},markers:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"billboard"===t.attribute.type&&t.attribute.attr.isBeam})}},methods:{editHandle:function(t){l.c.map&&(this.marker={id:t.attr.id,name:t.attr.name,image:t.style.image,scale:.5},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initMarker:function(){this.marker={id:null,name:"",image:"",scale:.25}},createHandle:function(){var t=this;if(l.c.map){var e=l.c.map,a=this.marker,i=a.id,n=a.image,o=a.scale,s=a.name,r=i&&e.getPlotById(i);this.closeCreateHandle(),r?(e.updatePlotStyle(i,{image:n,scale:o}),e.updatePlotAttribute(i,{name:s}),this._initMarker(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"billboard",style:{image:n,scale:o},attr:{name:s}},function(){t._initMarker()})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&(this.entities.forEach(function(e){e.show=t.showPlot}),l.c.map.beams.setVisible(this.showPlot)),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clickCreateHandle:function(t){var e=this;l.c.map&&l.c.map.startDraw({type:"billboard",style:{image:t,scale:.25},attr:{isBeam:!0}},function(t){e.$store.dispatch("map/updateTimestamp")})},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},J=(a("Y00k"),Object(r.a)(G,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"images"},t._l(t.images,function(e){return a("img",{key:e.url,attrs:{src:e.url},on:{click:function(a){t.clickCreateHandle(e.url)}}})})),t._v(" "),a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n                      创建\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n                      清空\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n                      "+t._s(t.showPlot?"隐藏":"显示")+"\n                  ")])],1)],1),t._v(" "),t._l(t.markers,function(e){return a("el-row",{key:e.attr.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:2}},[a("img",{staticStyle:{width:"22px",height:"22px"},attrs:{src:e.style.image}})]),t._v(" "),a("el-col",{attrs:{span:12}},[t._v("\n                  "+t._s(e.attr.name||" ")+"\n              ")]),t._v(" "),a("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建图标","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.marker.name,callback:function(e){t.$set(t.marker,"name",e)},expression:"marker.name"}}),t._v(" "),a("div",{staticClass:"image-list"},[a("ul",t._l(t.images,function(e){return a("li",{key:e.url,class:t.marker.image===e.url?"active":"",on:{click:function(a){t.marker.image=e.url}}},[a("img",{attrs:{src:e.url}})])}))]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"ed9e3998",null));J.options.__file="Beam.vue";var R=J.exports,W=a("unDg"),U=a.n(W),Q={color:"#FF6A00",width:6,lineType:"solid",outline:!1,outlineColor:"#ffffff",outlineWidth:"1.0",opacity:1},Y={components:{},data:function(){return{line:{id:null,name:""},showCreatePanel:!1,showPlot:!0}},computed:{timestamp:function(){return this.$store.state.map.timestamp},lines:function(){return this.entities.map(function(t){return t.attribute})},entities:function(){var t=this.timestamp&&l.c.map?l.c.map.plotDrawTool.getEntitys():[];return t.filter(function(t){return"polyline"===t.attribute.type})}},methods:{editHandle:function(t){l.c.map&&(this.line={id:t.attr.id,name:t.attr.name},this.showCreatePanel=!0)},removeHandle:function(t){l.c.map&&(l.c.map.deletePlot(t),this.$store.dispatch("map/updateTimestamp"))},closeCreateHandle:function(){this.showCreatePanel=!1},showCreateHandle:function(){this.showCreatePanel=!0},_initLine:function(){this.line={id:null,name:""}},createHandle:function(){var t=this;if(l.c.map){console.log(l.c.map);var e=l.c.map,a=this.line,i=a.id,n=a.name,o=i&&e.getPlotById(i);this.closeCreateHandle(),o?(e.updatePlotStyle.apply(e,[i].concat(U()(Q))),e.updatePlotAttribute(i,{name:n}),this._initLine(),this.$store.dispatch("map/updateTimestamp")):e.startDraw({type:"polyline",style:Q,attr:{name:n,animateLine:!0}},function(){t._initLine(),t.$store.dispatch("map/updateTimestamp")})}},toggleVisible:function(){var t=this;this.showPlot=!this.showPlot,l.c.map&&this.entities.forEach(function(e){e.show=t.showPlot}),this.$store.dispatch("map/updateTimestamp")},focusHandle:function(t){if(l.c.map){var e=l.c.map.getPlotById(t);e&&l.c.map.viewer.flyTo(e,{duration:1})}},clearHandle:function(){l.c.map&&this.entities.forEach(function(t){l.c.map.plotDrawTool.deleteEntity(t)}),this.$store.dispatch("map/updateTimestamp")}}},Z=(a("Nfm3"),Object(r.a)(Y,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"container"},[a("div",{staticClass:"model-panel-list"},[a("el-row",{attrs:{gutter:10}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-plus",size:"small",type:"primary"},on:{click:t.showCreateHandle}},[t._v("\n                      创建\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-delete",size:"small",type:"danger"},on:{click:t.clearHandle}},[t._v("\n                      清空\n                  ")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{icon:"el-icon-view",size:"small",type:t.showPlot?"success":"info"},on:{click:t.toggleVisible}},[t._v("\n                      "+t._s(t.showPlot?"隐藏":"显示")+"\n                  ")])],1)],1),t._v(" "),t._l(t.lines,function(e){return a("el-row",{key:e.attr.id,attrs:{gutter:10}},[a("el-col",{attrs:{span:14}},[t._v("\n                  "+t._s(e.attr.name||" ")+"\n              ")]),t._v(" "),a("el-col",{staticStyle:{textAlign:"right"},attrs:{span:10}},[a("el-button",{attrs:{icon:"el-icon-s-promotion",size:"mini",circle:""},on:{click:function(){return t.focusHandle(e.attr.id)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-edit",size:"mini",circle:""},on:{click:function(){return t.editHandle(e)}}}),t._v(" "),a("el-button",{attrs:{icon:"el-icon-delete",type:"danger",size:"mini",circle:""},on:{click:function(){return t.removeHandle(e.attr.id)}}})],1)],1)})],2),t._v(" "),a("el-dialog",{attrs:{visible:t.showCreatePanel,width:"380px",title:"创建动态线","append-to-body":!0,"close-on-click-modal":!1,"before-close":t.closeCreateHandle}},[a("p",[t._v("请输入内容:")]),t._v(" "),a("el-input",{attrs:{placeholder:"请输入内容"},model:{value:t.line.name,callback:function(e){t.$set(t.line,"name",e)},expression:"line.name"}}),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:t.closeCreateHandle}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.createHandle}},[t._v("确 定")])],1)],1)],1)},[],!1,null,"46e30bb5",null));Z.options.__file="AnimateLine.vue";var K={props:["type","colorMapList"],components:{LabelPanel:m,PlotPanel:w,MarkerPanel:M,WavePanel:O,ToolPanel:A,ModelPanel:I,AnimateLinePanel:Z.exports,BeamPanel:R},data:function(){return{activeName:"model",showTab:!0}},methods:{getList:function(){this.$emit("getList")}}},X=(a("GRp6"),Object(r.a)(K,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tab"},[a("div",{directives:[{name:"show",rawName:"v-show",value:t.showTab,expression:"showTab"}],staticClass:"tab-content"},[a("div",[a("el-button",{attrs:{type:"text"},on:{click:function(e){t.showTab=!t.showTab}}},[t._v("隐藏菜单")])],1),t._v(" "),a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"模型",name:"model"}},[a("model-panel")],1),t._v(" "),a("el-tab-pane",{attrs:{label:"四色图",name:"plot"}},[a("plot-panel",{attrs:{type:t.type,colorMapList:t.colorMapList},on:{getList:t.getList}})],1),t._v(" "),a("el-tab-pane",{attrs:{label:"图标",name:"marker"}},[a("marker-panel")],1)],1)],1),t._v(" "),a("div",{directives:[{name:"show",rawName:"v-show",value:!t.showTab,expression:"!showTab"}]},[a("el-button",{attrs:{type:"text"},on:{click:function(e){t.showTab=!t.showTab}}},[t._v("显示菜单")])],1)])},[],!1,null,"5cad537c",null));X.options.__file="index.vue";e.a=X.exports},"1x5k":function(t,e,a){},"9CxU":function(t,e,a){"use strict";var i=a("7Qib");e.a={data:function(){return{sidebarElm:null}},mounted:function(){var t=this;this.__resizeHandler=Object(i.b)(function(){t.chart&&t.chart.resize()},100),window.addEventListener("resize",this.__resizeHandler),this.sidebarElm=document.getElementsByClassName("sidebar-container")[0],this.sidebarElm&&this.sidebarElm.addEventListener("transitionend",this.sidebarResizeHandler)},beforeDestroy:function(){window.removeEventListener("resize",this.__resizeHandler),this.sidebarElm&&this.sidebarElm.removeEventListener("transitionend",this.sidebarResizeHandler)},methods:{sidebarResizeHandler:function(t){"width"===t.propertyName&&this.__resizeHandler()}}}},BEP4:function(t,e,a){"use strict";var i=a("iBtZ");a.n(i).a},CV9j:function(t,e,a){"use strict";var i=a("/eoX");a.n(i).a},GRp6:function(t,e,a){"use strict";var i=a("SQ1+");a.n(i).a},Gp3n:function(t,e,a){"use strict";var i=a("YAjj");a.n(i).a},NNB3:function(t,e,a){"use strict";var i={name:"Titlename",props:{title:{type:String,default:"标题"}},data:function(){return{}}},n=(a("Gp3n"),a("ZrdR")),l=Object(n.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"app"},[e("div",{staticClass:"box"},[e("div",{staticClass:"dian"}),this._v(" "),e("div",{staticClass:"net"},[this._v(this._s(this.title))])])])},[],!1,null,"3c99051b",null);l.options.__file="index.vue";e.a=l.exports},Nfm3:function(t,e,a){"use strict";var i=a("UFMK");a.n(i).a},Om0O:function(t,e,a){},"SQ1+":function(t,e,a){},UFMK:function(t,e,a){},W18O:function(t,e,a){},Y00k:function(t,e,a){"use strict";var i=a("Om0O");a.n(i).a},YAjj:function(t,e,a){},hlJu:function(t,e,a){"use strict";var i=a("W18O");a.n(i).a},i6P6:function(t,e,a){},iBtZ:function(t,e,a){},n4MH:function(t,e,a){},rFL2:function(t,e,a){"use strict";var i=a("n4MH");a.n(i).a},uyxc:function(t,e,a){"use strict";var i=a("1x5k");a.n(i).a},x2oE:function(t,e,a){"use strict";var i=a("i6P6");a.n(i).a}}]);