Commit 5c28a092 authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新

parent 6a7f579f
<!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.717ba64a7437c064dc248a8e5c933c7f.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.b8e543a4b0d04d9b6922.js></script><script type=text/javascript src=./static/js/vendor.6cc928b1afcfbc393218.js></script><script type=text/javascript src=./static/js/app.19b647ab19a80a4800ad.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.36d3831201acac8bcd06ab835e6a5c08.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.7c1971980973830e76e9.js></script><script type=text/javascript src=./static/js/vendor.6cc928b1afcfbc393218.js></script><script type=text/javascript src=./static/js/app.2e1231f1764d237449c4.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 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 diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,c){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 a)Object.prototype.hasOwnProperty.call(a,i)&&(e[i]=a[i]);for(n&&n(r,a,c);l.length;)l.shift()();if(c)for(s=0;s<c.length;s++)f=o(o.s=c[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 a=document.getElementsByTagName("head")[0],c=document.createElement("script");c.type="text/javascript",c.charset="utf-8",c.async=!0,c.timeout=12e4,o.nc&&c.setAttribute("nonce",o.nc),c.src=o.p+"static/js/"+e+"."+{0:"c5ad9a264a9bf773293d"}[e]+".js";var i=setTimeout(u,12e4);function u(){c.onerror=c.onload=null,clearTimeout(i);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return c.onerror=c.onload=u,a.appendChild(c),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.b8e543a4b0d04d9b6922.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:"842556d95ca1928ee20d"}[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.7c1971980973830e76e9.js.map
\ No newline at end of file
......@@ -16,7 +16,6 @@ export default {
</script>
<style lang="stylus">
@import './assets/css/variables.styl'
@import './assets/css/reset.styl'
@font-face
......
......@@ -41,7 +41,11 @@ export default {
params: {pageNo: 1, pageSize: 10000, ...data},
showLoading: false,
}).then(res => {
commit('SET_PERSON_LIST', common.confirm(res, 'data.content', []))
const personData = common.confirm(res, 'data.content', [])
personData.forEach(item => {
item.icon = common.transRoleName(item.ROLE_NAME)
})
commit('SET_PERSON_LIST', personData)
})
},
}
......@@ -4,25 +4,25 @@ export default {
},
SET_THEME_LIST(state, data) {
state.themeList = data
state.situation[0].count = data.length
state.situation[0].count = (data && data.length) || 0
},
SET_THEME_COUNT(state, val) {
state.situation[0].count = val
},
SET_PERSON_LIST(state, data) {
state.personList = data
state.situation[1].count = data.length
state.situation[1].count = (data && data.length) || 0
},
SET_ORIGIN_CHECKED_LIST(state, data) {
state.originCheckedList = data
},
SET_CHECKED_LIST(state, data) {
state.checkedList = data
state.situation[2].count = data.length
state.situation[2].count = (data && data.length) || 0
},
SET_RECTIFY_LIST(state, data) {
state.rectifyList = data
state.situation[3].count = data.length
state.situation[3].count = (data && data.length) || 0
},
SET_CURDATE(state, date) {
state.curDate = date
......
......@@ -8,7 +8,7 @@ export default {
* @param {Any} defaultValue [可选-如果取不到值则默认返回该值]
*/
confirm(obj, path, defaultValue = null) {
if (!obj || typeof(obj) != 'object' || !path || typeof(path) != 'string') return
if (!obj || typeof(obj) != 'object' || !path || typeof(path) != 'string') return defaultValue
const reducer = (accumulator, currentValue) =>
(accumulator && accumulator[currentValue]) ?
accumulator[currentValue] :
......@@ -84,7 +84,6 @@ export default {
size,
resource: {
href: api.MAP_ICON_BASE + (item.icon || icon),
// href: 'http://962121.net/hmfmstest/shanghaiwuye/web/dataV/static/person-bg.png',
},
},
]
......@@ -114,5 +113,17 @@ export default {
labelPlacement: 'center-right',
}
}
}
},
transRoleName(name) {
if (name.indexOf('房') >= 0) {
return 'user1.png'
} else if (name.indexOf('区') >= 0) {
return 'user2.png'
} else if (name.indexOf('市') >= 0){
return 'user3.png'
} else {
return 'person6.png'
}
},
}
......@@ -6,7 +6,7 @@
:class="`${item.TASK_ID == curId ? 'on' : ''}`"
@click="handleClick(item)"
>
<div class="flag" :style="`background-image:url(${require('@/assets/images/flag-bg.png')})`">{{item.DEPTTYPE.charAt(0)}}</div>
<div class="flag" :style="`background-image:url(${require('@/assets/images/flag-bg.png')})`">{{flagFormat(item.DEPTTYPE)}}</div>
<div class="content">
<p class="title" :title="item.TASK_NAME">
<b>{{item.TASK_NAME}}</b>
......@@ -44,6 +44,10 @@ export default {
if (!date) return ''
return this.$moment(date).format('YYYY-MM-DD')
},
flagFormat(val) {
if (val.indexOf('房办') >= 0) return '街'
return val.charAt(0)
},
reset() {
this.curId = null
},
......
......@@ -349,9 +349,9 @@ export default {
handlePersonSelect(data) {
this.removeGifPoint('selected-point')
this.removeGifPoint('path-points')
const {OPER_ID, TASK_ID, X, Y} = data
const {OPER_ID, TASK_ID, X, Y, ROLE_NAME} = data
this.gotoPosition(X, Y, 10)
this.addGifPoint({name: 'selected-point', key: 'OPER_ID', data: data, icon: 'person6.png', size: 300})
this.addGifPoint({name: 'selected-point', key: 'OPER_ID', data: data, icon: this.$com.transRoleName(ROLE_NAME), size: 300})
// 获取人员详情
this.$ajax.post({
url: this.$api.POST_PERSON_DETAIL,
......@@ -506,7 +506,7 @@ export default {
// },
'$store.state.personList': {
handler(cur, past) {
this.addPoint({name:'person-points', key: 'OPER_ID', labelKey: 'TE_NAME', data: cur, icon: 'person6.png', size: 30})
this.addPoint({name:'person-points', key: 'OPER_ID', labelKey: 'TE_NAME', data: cur, size: 30})
}
},
'$store.state.curDate': {
......
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