| 1 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var l={}.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?n(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,l=Array(n);t<n;t++)l[t]=e[t];return l}System.register(["./index-legacy-c2eb0980.js","./index-legacy-7f6656e1.js","./CusNavigation.vue_vue_type_style_index_0_scoped_5a71d35e_lang-legacy-2e6df359.js","./CusNavigation-legacy-ce721f1c.js","./ReloadOutlined-legacy-23a37b93.js"],function(n,t){"use strict";var l,a,o,i,r,u,c,d,s,f,v,p,g,b,m,y,h,x,w,_,k,C,S,z,U,O;return{setters:[function(e){l=e.p},function(e){a=e.d,o=e.i,i=e.v,r=e.k,u=e.n,c=e.o,d=e.b,s=e.w,f=e.H,v=e.r,p=e.c,g=e.y,b=e.e,m=e.l,y=e.s,h=e.p,x=e.f,w=e.F,_=e.J,k=e.S,C=e.t,S=e.M,z=e._},null,function(e){U=e.C},function(e){O=e.R}],execute:function(){var t=document.createElement("style");t.textContent="[data-v-08b25017] .ant-table-wrapper{height:0px;flex-grow:1}[data-v-08b25017] .ant-spin-nested-loading{height:100%}[data-v-08b25017] .ant-spin-container{height:100%;display:flex;flex-direction:column}[data-v-08b25017] .ant-table{flex-grow:1;height:0px}[data-v-08b25017] .ant-table-container{height:100%;display:flex;flex-direction:column}[data-v-08b25017] .ant-table-body{overflow-y:auto!important;flex-grow:1;border-bottom:1px solid #eee;border-right:1px solid #eee}[data-v-08b25017] .ant-table-body::-webkit-scrollbar{width:1px;height:8px;background:#0058FF}[data-v-08b25017] .ant-table-body::-webkit-scrollbar-track{width:1px;background:#eee}[data-v-08b25017] .ant-table-body::-webkit-scrollbar-thumb{width:1px;background:#0058FF}[data-v-08b25017] .ant-table-body::-webkit-scrollbar-thumb:hover{background:#0058FF}[data-v-08b25017] .ant-table-body::-webkit-scrollbar-corner{width:1px;background:#eee}.cus-forbidden[data-v-08b25017]:hover{cursor:not-allowed}\n",document.head.appendChild(t);var A=a({__name:"Add",emits:["onSuccess"],setup:function(e,n){var t=n.expose,a=n.emit,b=o(null),m=o(!1),y=o(!0),h=a,x=o([{value:"00",label:"中国移动"},{value:"01",label:"中国联通"},{value:"02",label:"中国电信"}]),w=i({id:void 0,lac:"",ci:"",mnc:"",lng:"",lat:"",address:""}),_=function(e){var n;console.log("handleOK",e),null===(n=b.value)||void 0===n||n.validate().then(function(){var e;console.log("11"),e="",e=y.value?"/stationLocation/add":"/stationLocation/edit",l({url:e,data:w},function(e){console.log(e),g.info(e.msg),C(),h("onSuccess",e)})},function(){console.log("22")})},k=function(){m.value=!0},C=function(){m.value=!1};return r(function(){console.log("onMounted")}),u(function(){console.log("onUnmounted")}),t({add:function(){var e;y.value=!0,f(w),null===(e=b.value)||void 0===e||e.clearValidate(),k()},update:function(e){var n;y.value=!1,Object.assign(w,e),null===(n=b.value)||void 0===n||n.clearValidate(),k()}}),function(e,n){var t=v("a-input"),l=v("a-form-item"),a=v("a-select"),o=v("a-textarea"),i=v("a-form"),r=v("a-modal");return c(),d(r,{title:"添加设备",visible:m.value,"onUpdate:visible":n[6]||(n[6]=function(e){return m.value=e}),maskClosable:!1,width:480,bodyStyle:{height:"500px","overflow-y":"auto"},cancelText:"取消",okText:"确定",onOk:_},{default:s(function(){return[p(i,{ref_key:"formRef",ref:b,model:w,name:"basic","label-align":"left","label-col":{span:24},"wrapper-col":{span:20},autocomplete:"off",layout:"vertical"},{default:s(function(){return[p(l,{"wrapper-col":{offset:0,span:24},label:"基站ID",name:"lac",rules:[{required:!0,message:"请输入基站ID!"}]},{default:s(function(){return[p(t,{size:"large",value:w.lac,"onUpdate:value":n[0]||(n[0]=function(e){return w.lac=e})},null,8,["value"])]}),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"小区ID",name:"ci",rules:[{required:!0,message:"请输入小区ID!"}]},{default:s(function(){return[p(t,{size:"large",value:w.ci,"onUpdate:value":n[1]||(n[1]=function(e){return w.ci=e})},null,8,["value"])]}),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"运营商",name:"mnc",rules:[{required:!0,message:"请选择运营商!"}]},{default:s(function(){return[p(a,{size:"large",value:w.mnc,"onUpdate:value":n[2]||(n[2]=function(e){return w.mnc=e}),options:x.value},null,8,["value","options"])]}),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"坐标(经度)",name:"lng",rules:[{required:!0,message:"请输入经度!"}]},{default:s(function(){return[p(t,{size:"large",value:w.lng,"onUpdate:value":n[3]||(n[3]=function(e){return w.lng=e})},null,8,["value"])]}),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"坐标(纬度)",name:"lat",rules:[{required:!0,message:"请输入经度!"}]},{default:s(function(){return[p(t,{size:"large",value:w.lat,"onUpdate:value":n[4]||(n[4]=function(e){return w.lat=e})},null,8,["value"])]}),_:1}),p(l,{"wrapper-col":{offset:0,span:24},label:"地址",name:"address"},{default:s(function(){return[p(o,{value:w.address,"onUpdate:value":n[5]||(n[5]=function(e){return w.address=e}),placeholder:"请输入地址","allow-clear":""},null,8,["value"])]}),_:1})]}),_:1},8,["model"])]}),_:1},8,["visible"])}}}),F=a({__name:"Detail",setup:function(n,t){var l=t.expose,a=o(!1),i=function(e){console.log(e),a.value=!1};return r(function(){}),l({show:function(){a.value=!0},hidden:function(){a.value=!1}}),function(n,t){var l=v("a-modal");return c(),d(l,{title:"基站信息",visible:a.value,"onUpdate:visible":t[0]||(t[0]=function(e){return a.value=e}),maskClosable:!1,width:480,cancelText:"取消",okText:"确定",onOk:i},{default:s(function(){return e(t[1]||(t[1]=[b("div",null," 详情 ",-1)]))}),_:1},8,["visible"])}}}),I=a({__name:"Location",setup:function(n,t){var l=t.expose,a=o(!1),i=window.BMapGL,f=o(null),h=function(e){console.log(e),a.value=!1},x=o();return r(function(){console.log("onMounted")}),u(function(){console.log("onUnmounted")}),m(function(){var e,n;if(a.value){console.log("onUpdate"),function(){if(!f.value){f.value=new i.Map("map_2",{mapType:window.BMAP_EARTH_MAP}),f.value.centerAndZoom(new i.Point(114.404,39.915),15),f.value.enableScrollWheelZoom(!0);var e=new i.ScaleControl;f.value.addControl(e)}}(),f.value.clearOverlays();var t={lat:parseFloat(null===(e=x.value)||void 0===e?void 0:e.lat),lng:parseFloat(null===(n=x.value)||void 0===n?void 0:n.lng)};if(console.log(t),t.lat&&t.lng){var l=t.lng,o=t.lat,r=new i.Point(l,o);console.log(l,o);var u=new i.Marker(r),c=new i.Circle(r,500,{strokeColor:"red",strokeWeight:1,strokeOpacity:1,fillOpacity:0});f.value.addOverlay(u),f.value.addOverlay(c),setTimeout(function(){f.value.setCenter(r)},300)}else g.error("暂无定位")}}),l({show:function(e){a.value=!0,x.value=e},hidden:function(){a.value=!1}}),function(n,t){var l=v("a-button"),o=v("a-modal");return c(),d(o,{visible:a.value,"onUpdate:visible":t[0]||(t[0]=function(e){return a.value=e}),maskClosable:!1,destroyOnClose:!1,width:900},{title:s(function(){return e(t[1]||(t[1]=[b("div",{style:{"font-weight":"bold"}},[b("span",null,"基站定位")],-1)]))}),footer:s(function(){return[p(l,{type:"primary",onClick:h},{default:s(function(){return e(t[2]||(t[2]=[y("知道了",-1)]))}),_:1})]}),default:s(function(){return[t[3]||(t[3]=b("div",{id:"map_2",style:{"flex-grow":"1",width:"100%",height:"500px"}},null,-1))]}),_:1},8,["visible"])}}}),T={class:"cus-animation",style:{height:"100%",width:"100%",padding:"16px 20px",display:"flex","flex-direction":"column"}},j={style:{display:"flex","justify-content":"space-between","align-items":"flex-end"}},M={style:{display:"flex"}},D={style:{"font-weight":"bold"}},R={key:0},q={key:1,style:{color:"red"}},L=["onClick"],W={key:1,class:"cus-forbidden",style:{color:"rgba(0, 0, 0, 0.25)"}},P=["onClick"],E=["onClick"],H={key:0,style:{"margin-left":"26px"}};n("default",z(a({__name:"Index",setup:function(e){var n=o(null),t=i({x:1600}),a=i({pageSize:20,current:1,size:"default",showSizeChanger:!0,showQuickJumper:!0,showTotal:function(e){return"共 ".concat(e," 条数据")},onChange:function(e,n){console.log("111",e,n),this.current=e,this.pageSize=n,m()}}),u=o([]),d=o(!1),f=i({size:20,page:1,sort:"createtime",order:"desc",keyWord:""}),m=function(){d.value=!0,f.size=a.pageSize,f.page=a.current,l({url:"/stationLocation/search",data:f},function(e){console.log(e),a.total=e.total,u.value=e.data,d.value=!1})},y=function(){a.current=1,m()},z=o(null),B=function(e){var n;console.log(e),null===(n=z.value)||void 0===n||n.add()},J=o(null),N=o(null),V=function(e){console.log(e),m()};return r(function(){var e;t.y=(null===(e=n.value)||void 0===e?void 0:e.clientHeight)-113,m()}),function(e,o){var i=v("a-button"),r=v("a-tooltip"),Z=v("a-input"),G=v("a-form-item"),K=v("a-form"),Q=v("a-table-column"),$=v("a-popconfirm"),X=v("a-table");return c(),h(w,null,[b("div",T,[p(x(U),{title:"基站管理"}),b("div",j,[b("div",M,[p(i,{type:"primary",style:{"margin-right":"10px",background:"#0058FF"},onClick:B},{icon:s(function(){return[p(x(_))]}),default:s(function(){return[o[1]||(o[1]=b("span",null,"添加",-1))]}),_:1}),p(K,{layout:"inline",model:f},{default:s(function(){return[p(G,null,{default:s(function(){return[p(Z,{allowClear:"",value:f.keyWord,"onUpdate:value":o[0]||(o[0]=function(e){return f.keyWord=e}),placeholder:"请输入要查询的内容",style:{width:"280px"}},{suffix:s(function(){return[p(r,{title:"点击搜索",onClick:y},{default:s(function(){return[p(x(k),{style:{color:"rgba(0, 0, 0, 0.45)"}})]}),_:1})]}),_:1},8,["value"])]}),_:1})]}),_:1},8,["model"])]),b("div",null,[p(r,{onClick:m},{default:s(function(){return[p(x(O),{style:{"font-size":"16px"},spin:d.value},null,8,["spin"])]}),_:1})])]),b("div",{ref_key:"table_container",ref:n,style:{"margin-top":"9px","border-top":"1px solid #eee",display:"flex","flex-direction":"column",overflow:"hidden",height:"0px","flex-grow":"1"}},[p(X,{"data-source":u.value,pagination:a,scroll:t,bordered:!0,loading:d.value,size:"middle"},{default:s(function(){return[p(Q,{title:"序号",width:60,fixed:"left",align:"center"},{default:s(function(e){var n=e.index;return[b("div",null,C(n+1),1)]}),_:1}),p(Q,{title:"基站ID","data-index":"lac",width:100,fixed:"left",align:"center"}),p(Q,{title:"小区ID","data-index":"ci",width:150,fixed:"left",align:"center"}),p(Q,{title:"运营商",width:120,fixed:"left",align:"left"},{default:s(function(e){var n=e.record;return[b("div",D,["00"==n.mnc?(c(),h("span",R,"中国移动")):(c(),h("span",q,"未知"))])]}),_:1}),p(Q,{title:"坐标(经度)","data-index":"lng",width:200}),p(Q,{title:"坐标(纬度)","data-index":"lat",width:200}),p(Q,{title:"地址","data-index":"address","min-width":200,ellipsis:!0}),p(Q,{title:"上次更新时间","data-index":"modifytime",width:200}),p(Q,{title:"创建时间","data-index":"createtime",width:200}),p(Q,{title:"操作",width:250,fixed:"right"},{default:s(function(e){var n=e.record;return[b("div",null,[n.lat?(c(),h("a",{key:0,onClick:function(e){return function(e){var n;console.log(e),null===(n=J.value)||void 0===n||n.show(e)}(n)}},"位置",8,L)):(c(),h("a",W,"位置")),b("a",{style:{"margin-left":"26px"},onClick:function(e){return function(e){var n;console.log(e),null===(n=N.value)||void 0===n||n.show(e)}(n)}},"查看",8,P),b("a",{style:{"margin-left":"26px"},onClick:function(e){return function(e){var n;console.log(e),null===(n=z.value)||void 0===n||n.update(e)}(n)}},"编辑",8,E),p($,{title:"确定删除?",okText:"确定",cancelText:"取消",onConfirm:function(e){return function(e){console.log(e);var n={id:e.id};l({url:"/stationLocation/delete",data:n},function(e){console.log(e),g.info(e.msg),m()})}(n)}},{default:s(function(){return[1!=n.id?(c(),h("a",H,"删除")):S("",!0)]}),_:2},1032,["onConfirm"])])]}),_:1})]}),_:1},8,["data-source","pagination","scroll","loading"])],512)]),p(A,{ref_key:"addRef",ref:z,onOnSuccess:V},null,512),p(F,{ref_key:"detailRef",ref:N},null,512),p(I,{ref_key:"locationRef",ref:J},null,512)],64)}}}),[["__scopeId","data-v-08b25017"]]))}}})}();
|