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

点击智能发现触发联勤联动列表改变

parent 85e709a3
<!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 { <!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; font-size: 1.6vh;
}</style><script src=./static/jquery.min.js></script><link href=./static/css/app.bf7029ab6fb73081cef0fbaf02ee1466.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.f49839b112e5ad1b3f3e.js></script><script type=text/javascript src=./static/js/vendor.d11eae825e5c4a0e0bb2.js></script><script type=text/javascript src=./static/js/app.64c2f75c776158731d1d.js></script></body></html> }</style><script src=./static/jquery.min.js></script><link href=./static/css/app.9a9bf222c61006fe949271b9a4ef7244.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.abc1c4cadd3d633cf3d6.js></script><script type=text/javascript src=./static/js/vendor.d11eae825e5c4a0e0bb2.js></script><script type=text/javascript src=./static/js/app.550ac693d3d4797ad1ee.js></script></body></html>
\ No newline at end of file \ 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 diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
!function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,c,f){for(var o,b,d,i=0,u=[];i<r.length;i++)b=r[i],t[b]&&u.push(t[b][0]),t[b]=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++)d=a(a.s=f[i]);return d};var r={},t={27: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:"ff246fa353f4a0e98352",1:"80f3e7aa96153395fe1b",2:"beeb013c854cc4ad7576",3:"874610ae83b6001e99dc",4:"bfb152bdc7739b7b7bac",5:"79501cbfbec9e7ca1a2b",6:"94c94cc8500e6d11e97a",7:"ae0723e8fa6bf8aefb76",8:"5ad0f24b31031f7284b3",9:"4ef6358bcf9c545ab808",10:"95e6aac83e6fd0b95f6e",11:"e0d0852893a051f35f47",12:"b26fc350b53d2b30f1b4",13:"700fbeaa3fecb8fc2c52",14:"7642b4cf5d2d8918ec69",15:"8dd2c66622a5a46d46cb",16:"f061d63018ce1704dd88",17:"912a00b10d2c58f1968b",18:"1adf9a941d5ebe37bd9e",19:"fd761234a41f95a23244",20:"85aa1475d8f340363b71",23:"2d8001a6b1d5cb810441",24:"f7914065b4d7bec4ccfb",25:"6b5f4749058978064562",26:"584ddfc7aad303eb351f"}[e]+".js";var o=setTimeout(b,12e4);function b(){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=b,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}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,a,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 a)Object.prototype.hasOwnProperty.call(a,o)&&(e[o]=a[o]);for(n&&n(r,a,f);u.length;)u.shift()();if(f)for(i=0;i<f.length;i++)b=c(c.s=f[i]);return b};var r={},t={27:0};function c(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,c),t.l=!0,t.exports}c.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,c){n=t[e]=[r,c]});n[2]=r;var a=document.getElementsByTagName("head")[0],f=document.createElement("script");f.type="text/javascript",f.charset="utf-8",f.async=!0,f.timeout=12e4,c.nc&&f.setAttribute("nonce",c.nc),f.src=c.p+"static/js/"+e+"."+{0:"08ffd2c063566b77752a",1:"80f3e7aa96153395fe1b",2:"beeb013c854cc4ad7576",3:"874610ae83b6001e99dc",4:"60e73a613e7fd85c257f",5:"79501cbfbec9e7ca1a2b",6:"94c94cc8500e6d11e97a",7:"ae0723e8fa6bf8aefb76",8:"5ad0f24b31031f7284b3",9:"4ef6358bcf9c545ab808",10:"95e6aac83e6fd0b95f6e",11:"e0d0852893a051f35f47",12:"b26fc350b53d2b30f1b4",13:"700fbeaa3fecb8fc2c52",14:"7642b4cf5d2d8918ec69",15:"8dd2c66622a5a46d46cb",16:"f061d63018ce1704dd88",17:"912a00b10d2c58f1968b",18:"1adf9a941d5ebe37bd9e",19:"fd761234a41f95a23244",20:"85aa1475d8f340363b71",23:"2d8001a6b1d5cb810441",24:"f7914065b4d7bec4ccfb",25:"6b5f4749058978064562",26:"584ddfc7aad303eb351f"}[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,a.appendChild(f),r},c.m=e,c.c=r,c.d=function(e,n,r){c.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},c.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return c.d(n,"a",n),n},c.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},c.p="./",c.oe=function(e){throw console.error(e),e}}([]);
//# sourceMappingURL=manifest.f49839b112e5ad1b3f3e.js.map //# sourceMappingURL=manifest.abc1c4cadd3d633cf3d6.js.map
\ No newline at end of file \ No newline at end of file
...@@ -34,7 +34,7 @@ html, body ...@@ -34,7 +34,7 @@ html, body
-moz-osx-font-smoothing grayscale -moz-osx-font-smoothing grayscale
width 100% width 100%
height 100% height 100%
font-size 1.05rem font-size 1.06rem
overflow: hidden overflow: hidden
color #eee color #eee
......
...@@ -11,8 +11,8 @@ default: ...@@ -11,8 +11,8 @@ default:
export default { export default {
BASE_URL, BASE_URL,
GET_SENSOR: '/service-special/public/sensor/discover?type_nin=fire,heap', GET_SENSOR: '/service-special/public/sensor/discover?type_nin=fire,heap',
GET_DISCOVER_INFO: '/service-special/public/discoverInfo?pcr.communityId_in=S015001231,S015001664&days=3&pd.createTime_gt=2020-06-26', GET_DISCOVER_INFO: '/service-special/public/discoverInfo?pcr.communityId_in=S015001231,S015001664&pd.createTime_gt=2020-06-26',
GET_HANDLE_LIST: '/service-special/public/alarm/index?pcr.communityId_in=S015001231,S015001664&days=3', GET_HANDLE_LIST: '/service-special/public/alarm/index?pcr.communityId_in=S015001231,S015001664',
GET_TS_BX: '/service-special/public/repair/complaint?communityId=S015001231', GET_TS_BX: '/service-special/public/repair/complaint?communityId=S015001231',
GET_BUILDING: '/service-search/public/buildings?sectId=120324203558281&pageSize=1000&pageNo=1' GET_BUILDING: '/service-search/public/buildings?sectId=120324203558281&pageSize=1000&pageNo=1'
} }
......
...@@ -31,5 +31,8 @@ export default { ...@@ -31,5 +31,8 @@ export default {
}, },
SET_SENSORLIST(state, data) { SET_SENSORLIST(state, data) {
state.sensorList = data state.sensorList = data
} },
SET_CURSCENE(state, val) {
state.curScene = val
},
} }
...@@ -4,6 +4,7 @@ export default { ...@@ -4,6 +4,7 @@ export default {
showElementModal: false, showElementModal: false,
curDate: null, curDate: null,
curScene: null, // 当前选择的智能发现场景类型
commandList: [], commandList: [],
operateList: [], operateList: [],
repairList: [], repairList: [],
......
...@@ -13,9 +13,10 @@ ...@@ -13,9 +13,10 @@
/> />
<div class="d-list"> <div class="d-list">
<div <div
class="d-l-card" :class="`d-l-card ${data.key == key ? 'on' : ''}`"
v-for="data in $store.state.foundList" v-for="data in $store.state.foundList"
:key="data.title" :key="data.key"
@click="handleClick(data.key)"
> >
<span class="title"> <span class="title">
<img :src="require(`@/assets/images/${data.img}`)" /> <img :src="require(`@/assets/images/${data.img}`)" />
...@@ -29,7 +30,22 @@ ...@@ -29,7 +30,22 @@
<script> <script>
export default { export default {
name: 'Discovery' name: 'Discovery',
data() {
return {
key: null,
}
},
methods: {
handleClick(key) {
if (this.key == key) {
this.key = null
} else {
this.key = key
}
this.$store.commit('SET_CURSCENE', this.key)
}
},
} }
</script> </script>
...@@ -52,12 +68,13 @@ export default { ...@@ -52,12 +68,13 @@ export default {
display flex display flex
justify-content space-between justify-content space-between
align-items center align-items center
// &:last-child cursor pointer
// span &:hover
// &.title background-color rgba(0,0,0,0.7)
// color gold &.on
background-color rgba(0,0,0,0.7)
outline .1rem solid $color-blue
span span
// color $edgeColor
color #fff color #fff
font-weight 700 font-weight 700
font-size 1.2rem font-size 1.2rem
......
<template> <template>
<div class="handle"> <div class="handle">
<template v-if="list && list.length > 0">
<m-scroll :length="list.length" :limit="2" mode="2" :step="5.5"> <m-scroll :length="list.length" :limit="2" mode="2" :step="5.5">
<div class="card" v-for="(data,i) in list" :key="i"> <div class="card" v-for="(data,i) in list" :key="i">
<div class="communityName"> <div class="communityName">
...@@ -35,6 +36,8 @@ ...@@ -35,6 +36,8 @@
</div> </div>
</div> </div>
</m-scroll> </m-scroll>
</template>
<p v-else style="text-align:center;margin: 1rem 0"> —— 暂无处置流程 ——</p>
</div> </div>
</template> </template>
...@@ -63,6 +66,7 @@ export default { ...@@ -63,6 +66,7 @@ export default {
computed: { computed: {
list() { list() {
const beforeDay = moment().subtract(1, 'days').format('YYYY-MM-DD') const beforeDay = moment().subtract(1, 'days').format('YYYY-MM-DD')
let result = []
if (this.$route.name == 'main') { if (this.$route.name == 'main') {
const mock = [ const mock = [
{ {
...@@ -129,7 +133,7 @@ export default { ...@@ -129,7 +133,7 @@ export default {
current:2 current:2
}, },
] ]
return [...mock, ...this.$store.state.handleList] result = [...mock, ...this.$store.state.handleList]
} else { } else {
const mock = [ const mock = [
{ {
...@@ -142,8 +146,17 @@ export default { ...@@ -142,8 +146,17 @@ export default {
current:2, current:2,
}, },
] ]
return [...mock, ...this.$store.state.handleList] result = [...mock, ...this.$store.state.handleList]
} }
console.log(result, this.curScene)
if (this.curScene) {
return result.filter(item => item.types && (item.types == this.curScene))
}
return result
},
curScene() {
return this.$store.state.curScene
} }
} }
} }
...@@ -170,7 +183,7 @@ export default { ...@@ -170,7 +183,7 @@ export default {
// font-weight 700 // font-weight 700
&:last-child &:last-child
color $fontColor color $fontColor
font-size .9rem font-size 1rem
.content .content
display flex display flex
align-items center align-items center
...@@ -185,7 +198,7 @@ export default { ...@@ -185,7 +198,7 @@ export default {
overflow hidden overflow hidden
text-overflow ellipsis text-overflow ellipsis
color $color-blue color $color-blue
font-size .9rem font-size 1rem
&:last-child &:last-child
color #eee color #eee
.step .step
......
...@@ -86,37 +86,37 @@ export default { ...@@ -86,37 +86,37 @@ export default {
xAxis: {key: 'date'}, xAxis: {key: 'date'},
}, },
data: [ data: [
{date: '5-1', safe: 88.6, orderly: 96.2, clean: 97.1}, {date: '5-28', safe: 88.6, orderly: 96.2, clean: 97.1},
{date: '5-2', safe: 88.6, orderly: 100, clean: 100}, {date: '5-29', safe: 88.6, orderly: 100, clean: 100},
{date: '5-3', safe: 100, orderly: 88.6, clean: 97.1}, {date: '5-30', safe: 100, orderly: 88.6, clean: 97.1},
{date: '5-4', safe: 94.3, orderly: 100, clean: 97.1}, {date: '5-31', safe: 94.3, orderly: 100, clean: 97.1},
{date: '5-5', safe: 94.3, orderly: 96.2, clean: 94.2}, {date: '6-1', safe: 94.3, orderly: 96.2, clean: 94.2},
{date: '5-6', safe: 100, orderly: 92.4, clean: 97.1}, {date: '6-2', safe: 100, orderly: 92.4, clean: 97.1},
{date: '5-7', safe: 88.6, orderly: 100, clean: 100}, {date: '6-3', safe: 88.6, orderly: 100, clean: 100},
{date: '5-8', safe: 100, orderly: 84.8, clean: 100}, {date: '6-4', safe: 100, orderly: 84.8, clean: 100},
{date: '5-9', safe: 94.3, orderly: 100, clean: 100}, {date: '6-5', safe: 94.3, orderly: 100, clean: 100},
{date: '5-10', safe: 100, orderly: 88.6, clean: 100}, {date: '6-6', safe: 100, orderly: 88.6, clean: 100},
{date: '5-11', safe: 88.6, orderly: 92.4, clean: 97.1}, {date: '6-7', safe: 88.6, orderly: 92.4, clean: 97.1},
{date: '5-12', safe: 100, orderly: 92.4, clean: 100}, {date: '6-8', safe: 100, orderly: 92.4, clean: 100},
{date: '5-13', safe: 100, orderly: 100, clean: 97.1}, {date: '6-9', safe: 100, orderly: 100, clean: 97.1},
{date: '5-14', safe: 94.3, orderly: 100, clean: 97.1}, {date: '6-10', safe: 94.3, orderly: 100, clean: 97.1},
{date: '5-15', safe: 88.6, orderly: 92.4, clean: 100}, {date: '6-11', safe: 88.6, orderly: 92.4, clean: 100},
{date: '5-16', safe: 100, orderly: 100, clean: 100}, {date: '6-12', safe: 100, orderly: 100, clean: 100},
{date: '5-17', safe: 100, orderly: 100, clean: 100}, {date: '6-13', safe: 100, orderly: 100, clean: 100},
{date: '5-18', safe: 100, orderly: 96.2, clean: 100}, {date: '6-14', safe: 100, orderly: 96.2, clean: 100},
{date: '5-19', safe: 100, orderly: 100, clean: 100}, {date: '6-15', safe: 100, orderly: 100, clean: 100},
{date: '5-20', safe: 94.3, orderly: 100, clean: 97.1}, {date: '6-16', safe: 94.3, orderly: 100, clean: 97.1},
{date: '5-21', safe: 82.9, orderly: 96.2, clean: 97.1}, {date: '6-17', safe: 82.9, orderly: 96.2, clean: 97.1},
{date: '5-22', safe: 100, orderly: 100, clean: 97.1}, {date: '6-18', safe: 100, orderly: 100, clean: 97.1},
{date: '5-23', safe: 100, orderly: 92.4, clean: 97.1}, {date: '6-19', safe: 100, orderly: 92.4, clean: 97.1},
{date: '5-24', safe: 94.3, orderly: 96.2, clean: 100}, {date: '6-20', safe: 94.3, orderly: 96.2, clean: 100},
{date: '5-25', safe: 100, orderly: 96.2, clean: 94.2}, {date: '6-21', safe: 100, orderly: 96.2, clean: 94.2},
{date: '5-26', safe: 100, orderly: 100, clean: 100}, {date: '6-22', safe: 100, orderly: 100, clean: 100},
{date: '5-27', safe: 100, orderly: 88.6, clean: 97.1}, {date: '6-23', safe: 100, orderly: 88.6, clean: 97.1},
{date: '5-28', safe: 94.3, orderly: 100, clean: 100}, {date: '6-24', safe: 94.3, orderly: 100, clean: 100},
{date: '5-29', safe: 88.6, orderly: 100, clean: 94.2}, {date: '6-25', safe: 88.6, orderly: 100, clean: 94.2},
{date: '5-30', safe: 94.3, orderly: 100, clean: 100}, {date: '6-26', safe: 94.3, orderly: 100, clean: 100},
{date: '5-31', safe: 100, orderly: 100, clean: 97.1}, {date: '6-27', safe: 100, orderly: 100, clean: 97.1},
], ],
} }
}, },
......
...@@ -426,26 +426,41 @@ export default { ...@@ -426,26 +426,41 @@ export default {
this.addSensorPoints() this.addSensorPoints()
this.setDiscoverInfo() this.setDiscoverInfo()
this.setHandleList() this.setHandleList()
this.$ajax.get({ // 获取投诉报修数据
url: this.$api.GET_TS_BX,
}).then(res => {
const data = this.$com.confirm(res, 'data.content', {})
const result = [ // 报修投诉 const result = [ // 报修投诉
{ {
title:'报修数量', title:'报修数量',
img:'repair.png', img:'repair.png',
num: data.alarmIn5MinBX || 0, num: 0,
allNum: data.undoneBX || 0, allNum: 129,
}, },
{ {
title:'投诉数量', title:'投诉数量',
img:'complaint.png', img:'complaint.png',
num: data.alarmIn5MinTS || 0, num: 0,
allNum: data.undoneTS || 0, allNum: 33,
}, },
] ]
this.$store.commit('SET_REPAIRLIST', result) this.$store.commit('SET_REPAIRLIST', result)
}) // this.$ajax.get({ // 获取投诉报修数据
// url: this.$api.GET_TS_BX,
// }).then(res => {
// const data = this.$com.confirm(res, 'data.content', {})
// const result = [ // 报修投诉
// {
// title:'报修数量',
// img:'repair.png',
// num: data.alarmIn5MinBX || 0,
// allNum: data.undoneBX || 0,
// },
// {
// title:'投诉数量',
// img:'complaint.png',
// num: data.alarmIn5MinTS || 0,
// allNum: data.undoneTS || 0,
// },
// ]
// this.$store.commit('SET_REPAIRLIST', result)
// })
}, },
...mapActions([ ...mapActions([
'initNanmatouData', 'initNanmatouData',
......
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