Commit 550f97f6 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新

parent 2eb3c4c0
<!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: 1.6vh;
}</style><script src=./static/jquery.min.js></script><script type=text/javascript src=http://www.962121.net/gis_system/smimap/mapdebug/ShsmiGis.Bridge.js></script><link href=./static/css/app.5418a47d2c1398c451e2eb390cd9fa8b.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.b1b962985750ef18af84.js></script><script type=text/javascript src=./static/js/vendor.dc1ed2d0549b6d6f959d.js></script><script type=text/javascript src=./static/js/app.85c9107835183cf340b7.js></script></body></html>
\ No newline at end of file
}</style><script src=./static/jquery.min.js></script><script type=text/javascript src=http://www.962121.net/gis_system/smimap/mapdebug/ShsmiGis.Bridge.js></script><link href=./static/css/app.aec136f25a6d15eb6a79ddb3ba240bc6.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.cb7e472fd5cd83264a41.js></script><script type=text/javascript src=./static/js/vendor.dc1ed2d0549b6d6f959d.js></script><script type=text/javascript src=./static/js/app.afc780c9c9da483a6739.js></script></body></html>
\ No newline at end of file
This diff is collapsed.
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 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 source diff could not be displayed because it is too large. You can view the blob instead.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={3:0};function o(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,o),t.l=!0,t.exports}o.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,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"909b36bca7893ce0604e"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.b1b962985750ef18af84.js.map
\ No newline at end of file
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,a){for(var i,u,f,s=0,l=[];s<r.length;s++)u=r[s],t[u]&&l.push(t[u][0]),t[u]=0;for(i in c)Object.prototype.hasOwnProperty.call(c,i)&&(e[i]=c[i]);for(n&&n(r,c,a);l.length;)l.shift()();if(a)for(s=0;s<a.length;s++)f=o(o.s=a[s]);return f};var r={},t={3:0};function o(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,o),t.l=!0,t.exports}o.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,o){n=t[e]=[r,o]});n[2]=r;var c=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,o.nc&&a.setAttribute("nonce",o.nc),a.src=o.p+"static/js/"+e+"."+{0:"1dc5c050e1ed64617ca6"}[e]+".js";var i=setTimeout(u,12e4);function u(){a.onerror=a.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=u,c.appendChild(a),r},o.m=e,o.c=r,o.d=function(e,n,r){o.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="./",o.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.cb7e472fd5cd83264a41.js.map
\ No newline at end of file
......@@ -19,11 +19,13 @@ export default {
// MAP_ICON_BASE: 'http://192.168.104.33:8181/smimap192/images/', // 2楼
MAP_URL: 'http://www.962121.net/gis_system/smimap/index.html#/', // 公网
MAP_ICON_BASE: 'http://www.962121.net/gis_system/smimap/mapdebug/images/', // 公网
MAP_ICON_BASE: 'http://www.962121.net/hmfmstest/shanghaiwuye/web/dataV/propertyinspector/static/icons/', // 公网
// MAP_ICON_BASE: 'http://www.962121.net/gis_system/smimap/mapdebug/images/', // 公网
POST_THEME_LIST: '/sharingplatform/themeListForOneDay',
POST_COMMUNITY_LIST: '/sharingplatform/sectListForOneDay',
POST_COMMUNITY_DETAIL: '/sharingplatform/detailForOneDay',
POST_PERSON_LIST: '/sharingplatform/getInspectors',
POST_PERSON_DETAIL: '/sharingplatform/inspectorInfo',
POST_PERSON_PATH: '/sharingplatform/getRoute'
}
......@@ -64,7 +64,7 @@ export default {
const array = {
codX: item.X,
codY: item.Y,
codZ: 100,
codZ: 0,
attrs: {
...item,
},
......
......@@ -144,11 +144,12 @@ $theme-selected()
position absolute
font-size 1.2rem
color #fff
width 15rem
&.date
left 20%
top 34%
&.time
right 20%
right 13%
top 34%
img
position absolute
......
......@@ -205,8 +205,7 @@ export default {
this.$nextTick(this.initMap)
// this.initData()
this.timer = setInterval(() => {
this.initData('2001131181448859')
// this.initData(this.curThemeId)
this.initData(this.curThemeId)
}, 1000 * 60 * 3)
},
beforeDestroy() {
......@@ -303,18 +302,21 @@ export default {
},
addGifPoint({name, data, labelKey, icon, size = 200}) {
if(!this.map) return
if (!Array.isArray(data)) {
data = [data]
}
const params = {
name: name,
mode: 'add',
datas: [
{
name: labelKey ? data[labelKey] : null,
datas: data.map(item => {
return {
name: labelKey ? item[labelKey] : null,
value: size,
corrd: [data.X, data.Y],
corrd: [item.X, item.Y],
color: '#00FFFF',
}
],
symbol: 'image://' + this.$api.MAP_ICON_BASE + icon,
}),
symbol: icon ? ('image://' + this.$api.MAP_ICON_BASE + icon) : 'circle',
position: 'right',
}
this.map.Invoke({
......@@ -348,7 +350,8 @@ export default {
this.removeGifPoint('selected-point')
this.addGifPoint({name: 'selected-point', key: 'OPER_ID', data: data, icon: 'person-bg2.png', size: 250})
const {OPER_ID, TASK_ID, X, Y} = data
this.gotoPosition(X, Y)
this.gotoPosition(X, Y, 8)
// 获取人员详情
this.$ajax.post({
url: this.$api.POST_PERSON_DETAIL,
params: {
......@@ -359,9 +362,32 @@ export default {
this.personData = (this.$com.confirm(res, 'data.content', []))[0]
this.showPersonModal = true
})
// 获取人员轨迹
const today = this.$moment().format('YYYY-MM-DD')
this.removeGifPoint('path-points')
this.$ajax.post({
url: this.$api.POST_PERSON_PATH,
params: {
person: OPER_ID,
theme: TASK_ID,
startTime: `${today} 00:00:00`,
endTime: `${today} 24:00:00`,
}
}).then(res => {
const paths = this.$com.confirm(res, 'data.content.route', [])
const pathData = paths.map((item, i) => {
return {
index: i,
X: item.x,
Y: item.y,
}
})
this.addGifPoint({name: 'path-points', key: 'index', data: pathData, size: 50})
})
},
closePersonModal() {
this.removeGifPoint('selected-point')
this.removeGifPoint('path-points')
this.$refs.person.reset()
this.showPersonModal = false
},
......@@ -372,6 +398,7 @@ export default {
data = [data]
}
this.removeGifPoint('selected-point')
this.removeGifPoint('path-points')
this.addGifPoint({name: 'selected-point', key: 'COMMUNITYID', labelKey: 'COMMUNITYNAME', data: data[0], icon: `${iconName}.png`})
let location = []
this.$ajax.all(...data.map(item => {
......@@ -438,10 +465,12 @@ export default {
this.closePersonModal()
this.$refs.theme.reset()
this.removeGifPoint('selected-point')
this.removeGifPoint('path-points')
this.removePoint('checked-points')
this.removePoint('rectify-points')
this.removePoint('person-points')
this.initData()
this.gotoPosition(1, 1, 2)
},
},
watch: {
......
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