Commit c422cb61 authored by 郭铭瑶's avatar 郭铭瑶 🤘

修改

parent 3b17e1ec
<!DOCTYPE html><html id=html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><meta http-equiv=X-UA-Compatible content="IE=edge, chrome=1"><title>南东城运第一综合网格工作站</title><style>html {
font-size: 16vh;
}</style><link href=./static/css/app.2a7d9cee837fdc941d329e4d1d8553be.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.09e7b6475d1b84b46116.js></script><script type=text/javascript src=./static/js/vendor.64f49a750b0f66cbba6d.js></script><script type=text/javascript src=./static/js/app.d33b5906e9087f6ddd92.js></script></body><script src=./static/SMap.min.js></script><script src=./static/Plugins.min.js></script></html>
\ No newline at end of file
}</style><link href=./static/css/app.3096c7a25f08a925b57b8a0632cf65a5.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.1df4b83de59d45f70b4e.js></script><script type=text/javascript src=./static/js/vendor.64f49a750b0f66cbba6d.js></script><script type=text/javascript src=./static/js/app.f449ba45e85a92cd7521.js></script></body><script src=./static/SMap.min.js></script><script src=./static/Plugins.min.js></script></html>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
webpackJsonp([7],{A8Na:function(t,i){},jkqj:function(t,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=o("Dd8w"),e=o.n(n),a=window,r=a.SMap,s=a.Plugins,u={name:"MonitorMap",data:function(){return{map:null}},mounted:function(){this.$nextTick(this.initMap)},computed:{sizeRate:function(){return Math.floor(1.48*screen.height/100/11)}},methods:{initMap:function(){var t=this;this.map=new r.Map("mapContainer",{viewMode:"2D",mapStyle:"smap://styles/dark"}).on(r.MapEvent.maploaded,function(){t.addListener(),t.$emit("complete")})},hideCommunity:function(){this.map.hideXQ_Poly(),this.map.hideXQ_Point(),this.map.hideMPZ()},showCommunity:function(){this.map.showXQ_Poly(),this.map.showXQ_Point(),this.map.showMPZ()},addListener:function(){var t=this;this.map.on(r.MapEvent.click,function(i,o){var n=o.mapPoint,e=n.x,a=n.y;console.log([e,a]),i.hitTest(o).then(function(i){i.results&&i.results.length>0&&t.$emit("event",i.results[0]&&i.results[0].graphic.attributes)})})},addPoint:function(t){var i=t.key,o=t.data,n=t.labelKey,e=void 0===n?null:n,a=t.icon,r=void 0===a?"test.png":a,s=t.size,u=void 0===s?14:s,l=t.color;if(this.map){var d=this.getMapPoints({data:o,key:i,labelKey:e,icon:r,size:u,color:l});return this.map.add(d),d}},remove:function(t){this.map&&t&&this.map.remove(t)},setFilter:function(t){var i=t.map(function(t){return"sect_name_ = '"+t+"'"});this.map.setFilter("wg_gis_xq_point",i.join(" or ")),this.map.setFilter("wg_gis_mpz",i.join(" or ")),this.map.setFilter("wg_gis_xq_poly",i.join(" or "))},getMapPoints:function(t){var i=t.data,n=void 0===i?[]:i,a=t.key,s=t.labelKey,u=t.icon,l=t.size,d=t.color,c=void 0===d?"#47B3FF":d;return n.map(function(t){var i={icon:new r.Icon({size:Array.isArray(t.size||l)?new r.Size(t.size[0]||l[0],t.size[1]||l[1]):new r.Size(t.size||l,t.size||l),image:o("g2Y0")("./"+(t.icon||u))}),attributes:e()({key:a},t),position:[t.communityMinx||t.X||t.x||t.gpsx,t.communityMiny||t.Y||t.y||t.gpsy,0]};return s&&(i.label=new r.Label({text:(t[s]||t[a])+"",size:l,color:c})),new r.Marker(i)})},focus:function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;this.map&&t&&i?this.map.setZoomAndCenter(o,[t,i]):console.error("传入的坐标点不能为空")},zoomIn:function(){this.map.zoomIn()},zoomOut:function(){this.map.zoomOut()},addPolygon:function(t){var i=t.paths,o=t.fillColor,n=void 0===o?"rgba(255,255,255,.3)":o,e=t.strokeColor,a=void 0===e?"transparent":e,s=t.attributes,u=void 0===s?{}:s,l=t.style,d=void 0===l?"solid":l,c=t.strokeWeight,m=void 0===c?1:c,p=t.label,h=void 0===p?null:p,v=new r.Polygon({paths:i.map(function(t){return new r.LngLat(t[0],t[1])}),attributes:u,fillColor:n,style:d,strokeColor:a,strokeStyle:d,strokeWeight:m,label:h});return this.map.add(v),v},addPolyLine:function(t){var i=t.paths,o=t.attributes,n=void 0===o?{}:o,e=t.strokeColor,a=void 0===e?"rgba(51,145,255,.6)":e,s=t.width,u=void 0===s?2:s,l=new r.Polyline({path:i.map(function(t){return new r.LngLat(t[0],t[1])}),attributes:n,cap:"square",strokeColor:a,style:"solid",lineJoin:"round",width:u});return this.map.add(l),l},addBoundary:function(t){var i=t.name,o=t.weight,n=void 0===o?10:o,e=t.count,a=void 0===e?10:e,r=t.color,u=void 0===r?"rgba(51,145,255,.6)":r,l=t.maskColor,d={boundaryType:"jd_boundary",boundaryDefinition:"name like '%"+i+"%'",boundarydistance:n,bounarycount:a,boundaryColor:u,maskColor:void 0===l?[0,0,0,0]:l},c=new s.MaskBoundary(this.map.view);return c.add(d),c}}},l={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"mapContainer"}})},staticRenderFns:[]};var d=o("VU/8")(u,l,!1,function(t){o("ki3R"),o("A8Na")},"data-v-7936c537",null);i.default=d.exports},ki3R:function(t,i){}});
//# sourceMappingURL=7.b9e5490a14a22741e837.js.map
\ No newline at end of file
webpackJsonp([7],{"4CER":function(t,i){},EOBP:function(t,i){},jkqj:function(t,i,o){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n=o("Dd8w"),e=o.n(n),a=window,r=a.SMap,s=a.Plugins,u={name:"MonitorMap",data:function(){return{map:null}},mounted:function(){this.$nextTick(this.initMap)},computed:{sizeRate:function(){return Math.floor(1.48*screen.height/100/11)}},methods:{initMap:function(){var t=this;this.map=new r.Map("mapContainer",{viewMode:"2D",mapStyle:"smap://styles/dark"}).on(r.MapEvent.maploaded,function(){t.addListener(),t.$emit("complete")})},hideCommunity:function(){this.map.hideXQ_Poly(),this.map.hideXQ_Point(),this.map.hideMPZ()},showCommunity:function(){this.map.showXQ_Poly(),this.map.showXQ_Point(),this.map.showMPZ()},addListener:function(){var t=this;this.map.on(r.MapEvent.click,function(i,o){var n=o.mapPoint,e=n.x,a=n.y;console.log([e,a]),i.hitTest(o).then(function(i){i.results&&i.results.length>0&&t.$emit("event",i.results[0]&&i.results[0].graphic.attributes)})})},addPoint:function(t){var i=t.key,o=t.data,n=t.labelKey,e=void 0===n?null:n,a=t.icon,r=void 0===a?"test.png":a,s=t.size,u=void 0===s?14:s,l=t.color;if(this.map){var d=this.getMapPoints({data:o,key:i,labelKey:e,icon:r,size:u,color:l});return this.map.add(d),d}},remove:function(t){this.map&&t&&this.map.remove(t)},setFilter:function(t){var i=t.map(function(t){return"sect_name_ = '"+t+"'"});this.map.setFilter("wg_gis_xq_point",i.join(" or ")),this.map.setFilter("wg_gis_mpz",i.join(" or ")),this.map.setFilter("wg_gis_xq_poly",i.join(" or "))},getMapPoints:function(t){var i=t.data,n=void 0===i?[]:i,a=t.key,s=t.labelKey,u=t.icon,l=t.size,d=t.color,c=void 0===d?"#47B3FF":d;return n.map(function(t){var i={icon:new r.Icon({size:Array.isArray(t.size||l)?new r.Size(t.size[0]||l[0],t.size[1]||l[1]):new r.Size(t.size||l,t.size||l),image:o("g2Y0")("./"+(t.icon||u))}),attributes:e()({key:a},t),position:[t.communityMinx||t.X||t.x||t.gpsx,t.communityMiny||t.Y||t.y||t.gpsy,0]};return s&&(i.label=new r.Label({text:(t[s]||t[a])+"",size:l,color:c})),new r.Marker(i)})},focus:function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6;this.map&&t&&i?this.map.setZoomAndCenter(o,[t,i]):console.error("传入的坐标点不能为空")},zoomIn:function(){this.map.zoomIn()},zoomOut:function(){this.map.zoomOut()},addPolygon:function(t){var i=t.paths,o=t.fillColor,n=void 0===o?"rgba(255,255,255,.3)":o,e=t.strokeColor,a=void 0===e?"transparent":e,s=t.attributes,u=void 0===s?{}:s,l=t.style,d=void 0===l?"solid":l,c=t.strokeWeight,m=void 0===c?1:c,p=t.label,h=void 0===p?null:p,v=new r.Polygon({paths:i.map(function(t){return new r.LngLat(t[0],t[1])}),attributes:u,fillColor:n,style:d,strokeColor:a,strokeStyle:d,strokeWeight:m,label:h});return this.map.add(v),v},addPolyLine:function(t){var i=t.paths,o=t.attributes,n=void 0===o?{}:o,e=t.strokeColor,a=void 0===e?"rgba(51,145,255,.6)":e,s=t.width,u=void 0===s?2:s,l=new r.Polyline({path:i.map(function(t){return new r.LngLat(t[0],t[1])}),attributes:n,cap:"square",strokeColor:a,style:"solid",lineJoin:"round",width:u});return this.map.add(l),l},addBoundary:function(t){var i=t.name,o=t.weight,n=void 0===o?10:o,e=t.count,a=void 0===e?10:e,r=t.color,u=void 0===r?"rgba(51,145,255,.6)":r,l=t.maskColor,d={boundaryType:"jd_boundary",boundaryDefinition:"name like '%"+i+"%'",boundarydistance:n,bounarycount:a,boundaryColor:u,maskColor:void 0===l?[0,17,33,.9]:l},c=new s.MaskBoundary(this.map.view);return c.add(d),c}}},l={render:function(){var t=this.$createElement;return(this._self._c||t)("div",{attrs:{id:"mapContainer"}})},staticRenderFns:[]};var d=o("VU/8")(u,l,!1,function(t){o("EOBP"),o("4CER")},"data-v-29c2630c",null);i.default=d.exports}});
//# sourceMappingURL=7.d0ea0413c3a04b154142.js.map
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,f){for(var o,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(o in c)Object.prototype.hasOwnProperty.call(c,o)&&(e[o]=c[o]);for(n&&n(r,c,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=a(a.s=f[i]);return b};var r={},t={25:0};function a(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,a),t.l=!0,t.exports}a.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,a){n=t[e]=[r,a]});n[2]=r;var c=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,a.nc&&f.setAttribute("nonce",a.nc),f.src=a.p+"static/js/"+e+"."+{0:"0d4e0a3495a7ba6e4c6e",1:"3dab2f03f71b0f0b1713",2:"ea58734bf5cfc5b1aa88",3:"ad4ee5a96965c56d8caf",4:"a46e55b2b83af355e6c8",5:"8d38d044dc9e96d56699",6:"b4bee5960cbbfd744133",7:"b9e5490a14a22741e837",8:"b6e8b962b26570c80b85",9:"e1c22a74c9a60f150eb1",10:"35123d8ca6f583deb04b",11:"c38471d0942ea9c6ff6e",12:"fb0dfea6afa3b80b43d6",13:"4c6969c394fb9541231d",14:"d4990f4a8237148ef7ef",15:"7655e368d63efa369118",16:"f7a75116f7b71310e271",17:"fff71e6a37ad22903519",18:"c4d6f4db971fd6a53de5",21:"5fe24bc860088be1b528",22:"c26ff53165d90faf9c4f",23:"795fee1c52905a188792",24:"ec1d710a9e7c95e61e7b"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return f.onerror=f.onload=d,c.appendChild(f),r},a.m=e,a.c=r,a.d=function(e,n,r){a.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},a.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(n,"a",n),n},a.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},a.p="./",a.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.09e7b6475d1b84b46116.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var c,d,b,i=0,u=[];i<r.length;i++)d=r[i],t[d]&&u.push(t[d][0]),t[d]=0;for(c in a)Object.prototype.hasOwnProperty.call(a,c)&&(e[c]=a[c]);for(n&&n(r,a,o);u.length;)u.shift()();if(o)for(i=0;i<o.length;i++)b=f(f.s=o[i]);return b};var r={},t={25:0};function f(n){if(r[n])return r[n].exports;var t=r[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,f),t.l=!0,t.exports}f.e=function(e){var n=t[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,f){n=t[e]=[r,f]});n[2]=r;var a=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.timeout=12e4,f.nc&&o.setAttribute("nonce",f.nc),o.src=f.p+"static/js/"+e+"."+{0:"859f1d28d6ebd7ced75f",1:"3dab2f03f71b0f0b1713",2:"3195b7867e640ae9bfee",3:"ad4ee5a96965c56d8caf",4:"a46e55b2b83af355e6c8",5:"8d38d044dc9e96d56699",6:"b4bee5960cbbfd744133",7:"d0ea0413c3a04b154142",8:"b6e8b962b26570c80b85",9:"e1c22a74c9a60f150eb1",10:"35123d8ca6f583deb04b",11:"c38471d0942ea9c6ff6e",12:"fb0dfea6afa3b80b43d6",13:"4c6969c394fb9541231d",14:"d4990f4a8237148ef7ef",15:"7655e368d63efa369118",16:"f7a75116f7b71310e271",17:"fff71e6a37ad22903519",18:"c4d6f4db971fd6a53de5",21:"5fe24bc860088be1b528",22:"c26ff53165d90faf9c4f",23:"795fee1c52905a188792",24:"ec1d710a9e7c95e61e7b"}[e]+".js";var c=setTimeout(d,12e4);function d(){o.onerror=o.onload=null,clearTimeout(c);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return o.onerror=o.onload=d,a.appendChild(o),r},f.m=e,f.c=r,f.d=function(e,n,r){f.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},f.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(n,"a",n),n},f.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},f.p="./",f.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.1df4b83de59d45f70b4e.js.map
\ No newline at end of file
......@@ -163,7 +163,7 @@ export default {
return polyline
},
// 添加边界
addBoundary({name, weight = 10, count = 10, color = 'rgba(51,145,255,.6)', maskColor = [0, 0, 0, 0]}) {
addBoundary({name, weight = 10, count = 10, color = 'rgba(51,145,255,.6)', maskColor = [0, 17, 33, 0.9]}) {
const boundary = {
boundaryType: 'jd_boundary',
boundaryDefinition: `name like '%${name}%'`,
......
......@@ -7,90 +7,60 @@ export default {
dispatch('getNonLiving')
},
async getNonLiving({commit}) {
const yi = await ajax.get({
const main = await ajax.get({
url: api.GET_NON_LIVING,
params: {
'488456305960370176_in': '衣',
// '488456305960370176_orl': '衣,食,住,行,商,学,医,政,垃圾,历史保护,地标,药,公厕,居委,工作站,助浴,倒粪,为老服务,地铁,消防,便利,菜,餐车,饭店',
'488456306136530944': '第一工作站',
pageSize: 1000,
}
})
const shi = await ajax.get({
url: api.GET_NON_LIVING,
params: {
'488456305960370176_in': '食',
'488456306136530944': '第一工作站',
pageSize: 1000,
const result = [
...com.confirm(main, 'data.content', []).map(item => {
const name = item.livehoodType || ''
if (name.indexOf('医') >= 0) {
item.icon = 'yi2.png'
item._type = 'other'
}
})
const zhu = await ajax.get({
url: api.GET_NON_LIVING,
params: {
'488456305960370176_in': '住',
'488456306136530944': '第一工作站',
pageSize: 1000,
if (name.indexOf('学') >= 0) {
item.icon = 'xue.png'
item._type = 'other'
}
})
const xing = await ajax.get({
url: api.GET_NON_LIVING,
params: {
'488456305960370176_in': '行',
'488456306136530944': '第一工作站',
pageSize: 1000,
if (name.indexOf('商') >= 0) {
item.icon = 'shang.png'
item._type = 'other'
}
})
const other = await ajax.get({
url: api.GET_NON_LIVING,
params: {
'488456305960370176_in': '商,学,医,政',
'488456306136530944': '第一工作站',
pageSize: 1000,
},
})
const result = [
...com.confirm(yi, 'data.content', []).map(item => {
if (name.indexOf('政') >= 0) {
item.icon = 'zheng.png'
item._type = 'other'
}
if (name.indexOf('衣') >= 0) {
item.icon = 'yi.png'
item.size = 20
item._type = 'yi'
return item
}),
...com.confirm(shi, 'data.content', []).map(item => {
}
if (name.indexOf('食') >= 0) {
item.icon = 'shi.png'
item.size = 20
item._type = 'shi'
return item
}),
...com.confirm(zhu, 'data.content', []).map(item => {
}
if (name.indexOf('住') >= 0) {
item.icon = 'zhu.png'
item.size = 20
item._type = 'zhu'
return item
}),
...com.confirm(xing, 'data.content', []).map(item => {
}
if (name.indexOf('行') >= 0) {
item.icon = 'xing.png'
item.size = 20
item._type = 'xing'
return item
}),
...com.confirm(other, 'data.content', []).map(item => {
if (item['488456305960370176'] === '医') {
item.icon = 'yi2.png'
}
if (item['488456305960370176'] === '学') {
item.icon = 'xue.png'
}
if (item['488456305960370176'] === '商') {
item.icon = 'shang.png'
}
if (item['488456305960370176'] === '政') {
item.icon = 'zheng.png'
}
item.size = 20
item._type = 'other'
return item
}),
]
result.forEach(item => {
if (item.unitAddr === '大沽路123号') {
item.icon = 'star-sm.png'
}
if (item.unitAddr === '人民大道200号') {
item.icon = 'star.png'
}
if (item['479477007408168960'].indexOf('重庆北路小学') >= 0) {
item.photo = 'school1.jpg'
}
......
This diff is collapsed.
......@@ -97,21 +97,21 @@ export default {
tipEvent: 'history',
checked: true
},
{
title: '便民设施',
tipEvent: 'convenient',
checked: true
},
{
title: '地铁站点',
tipEvent: 'subway',
checked: true
},
{
title: '微型消防站',
tipEvent: 'micfire',
checked: true
},
// {
// title: '便民设施',
// tipEvent: 'convenient',
// checked: true
// },
// {
// title: '地铁站点',
// tipEvent: 'subway',
// checked: true
// },
// {
// title: '微型消防站',
// tipEvent: 'micfire',
// checked: true
// },
]
},
]
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment