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

管理要素三脸及分值根据智能发现事项自动换算

parent 6f103fd4
<!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.7f0da8ef404f0aa9c17bda3b6e91aace.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.aabc35fb6b42b557049e.js></script><script type=text/javascript src=./static/js/vendor.d11eae825e5c4a0e0bb2.js></script><script type=text/javascript src=./static/js/app.5fec3beb6cdfea06ae97.js></script></body></html> }</style><script src=./static/jquery.min.js></script><link href=./static/css/app.5fc6a0485f25f10d51cd2024dbd3c545.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3e2c064765a19eb7f2c5.js></script><script type=text/javascript src=./static/js/vendor.d11eae825e5c4a0e0bb2.js></script><script type=text/javascript src=./static/js/app.5fec3beb6cdfea06ae97.js></script></body></html>
\ No newline at end of file \ 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.
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 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,a,f){for(var o,d,b,i=0,u=[];i<r.length;i++)d=r[i],c[d]&&u.push(c[d][0]),c[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=t(t.s=f[i]);return b};var r={},c={27:0};function t(n){if(r[n])return r[n].exports;var c=r[n]={i:n,l:!1,exports:{}};return e[n].call(c.exports,c,c.exports,t),c.l=!0,c.exports}t.e=function(e){var n=c[e];if(0===n)return new Promise(function(e){e()});if(n)return n[2];var r=new Promise(function(r,t){n=c[e]=[r,t]});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,t.nc&&f.setAttribute("nonce",t.nc),f.src=t.p+"static/js/"+e+"."+{0:"cbd065811a6c8a685a4a",1:"80f3e7aa96153395fe1b",2:"ddc887f3d5deca2d5116",3:"858079b6f37c68e0f6a5",4:"fdc60db3ebf2654e4461",5:"79501cbfbec9e7ca1a2b",6:"151dc3ea26d64d8986cf",7:"a66c7ca110c6128b0e5c",8:"5ad0f24b31031f7284b3",9:"fd7707babb1b38a1555a",10:"ab925f8bb0245e505ca6",11:"573ef14b9d19f5d8b630",12:"469c013fd842cd20882f",13:"16cbe0e33860ff72d492",14:"92a81e60880a6ae73756",15:"f0fdcca849fc839cdb19",16:"71b39e7f56791784419e",17:"12d3154154339a1bfdfd",18:"f2a6183255aeb9176721",19:"fe54e6ac48d20178b64b",20:"783e458e49d4f1c92bbb",23:"fffe5979c2605d3dc135",24:"f7914065b4d7bec4ccfb",25:"6b5f4749058978064562",26:"584ddfc7aad303eb351f"}[e]+".js";var o=setTimeout(d,12e4);function d(){f.onerror=f.onload=null,clearTimeout(o);var n=c[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),c[e]=void 0)}return f.onerror=f.onload=d,a.appendChild(f),r},t.m=e,t.c=r,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="./",t.oe=function(e){throw console.error(e),e}}([]); !function(e){var n=window.webpackJsonp;window.webpackJsonp=function(r,f,a){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 f)Object.prototype.hasOwnProperty.call(f,o)&&(e[o]=f[o]);for(n&&n(r,f,a);u.length;)u.shift()();if(a)for(i=0;i<a.length;i++)d=c(c.s=a[i]);return d};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 f=document.getElementsByTagName("head")[0],a=document.createElement("script");a.type="text/javascript",a.charset="utf-8",a.async=!0,a.timeout=12e4,c.nc&&a.setAttribute("nonce",c.nc),a.src=c.p+"static/js/"+e+"."+{0:"8621a36bbe069649216b",1:"80f3e7aa96153395fe1b",2:"7d1efb58d90080b0563e",3:"858079b6f37c68e0f6a5",4:"1f7557b444fdafeae962",5:"79501cbfbec9e7ca1a2b",6:"151dc3ea26d64d8986cf",7:"a66c7ca110c6128b0e5c",8:"5ad0f24b31031f7284b3",9:"fd7707babb1b38a1555a",10:"ab925f8bb0245e505ca6",11:"573ef14b9d19f5d8b630",12:"469c013fd842cd20882f",13:"16cbe0e33860ff72d492",14:"92a81e60880a6ae73756",15:"f0fdcca849fc839cdb19",16:"71b39e7f56791784419e",17:"12d3154154339a1bfdfd",18:"f2a6183255aeb9176721",19:"fe54e6ac48d20178b64b",20:"783e458e49d4f1c92bbb",23:"fffe5979c2605d3dc135",24:"f7914065b4d7bec4ccfb",25:"6b5f4749058978064562",26:"584ddfc7aad303eb351f"}[e]+".js";var o=setTimeout(b,12e4);function b(){a.onerror=a.onload=null,clearTimeout(o);var n=t[e];0!==n&&(n&&n[1](new Error("Loading chunk "+e+" failed.")),t[e]=void 0)}return a.onerror=a.onload=b,f.appendChild(a),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.aabc35fb6b42b557049e.js.map //# sourceMappingURL=manifest.3e2c064765a19eb7f2c5.js.map
\ No newline at end of file \ No newline at end of file
<template> <template>
<div> <div>
<div class="face-wrapper"> <div class="face-wrapper">
<div @click="$emit('select', safe)"><p>安全:92.8</p><img src="@/assets/images/face1.png"/></div> <div @click="$emit('select', safe)"><p>安全:{{count.safe}}</p><img :src="require(`@/assets/images/${getFace(count.safe)}.png`)"/></div>
<div><p>有序:100</p><img src="@/assets/images/face1.png"/></div> <div @click="$emit('select', order)"><p>有序:{{count.order}}</p><img :src="require(`@/assets/images/${getFace(count.order)}.png`)"/></div>
<div @click="$emit('select', clean)"><p>干净:85</p><img src="@/assets/images/face2.png"/></div> <div @click="$emit('select', clean)"><p>干净:{{count.clean}}</p><img :src="require(`@/assets/images/${getFace(count.clean)}.png`)"/></div>
</div> </div>
<div class="content"> <div class="content">
<div class="title">小区巡查事项清单</div> <div class="title">小区巡查事项清单</div>
...@@ -44,24 +44,74 @@ export default { ...@@ -44,24 +44,74 @@ export default {
'.', '.',
] ]
], ],
count: {
safe: 0,
order: 0,
clean: 0,
},
safe: { safe: {
title: '安全管理', title: '安全管理',
data: [ data: [],
{name: '占用消防通道', count: 7.2}, },
{name: '- 汇总 -', count: 7.2}, order: {
], title: '有序管理',
data: [],
}, },
clean: { clean: {
title: '卫生管理', title: '卫生管理',
data: [ data: [],
{name: '建筑垃圾违规', count: 5},
{name: '垃圾分类违规', count: 5},
{name: '楼道乱张贴', count: 5},
{name: '- 汇总 -', count: 15},
],
}, },
} }
}, },
methods: {
init(foundList) {
const cleans = ['trash']
const orders = ['weixiuzijin', 'staffLeaveAlarmTcfteodr', 'hermeticSpace']
const cleanList = [], orderList = [], safeList = []
let cleanSum = 0, orderSum = 0, safeSum = 0
foundList.forEach(item => {
if (item.num == 0) return
if (cleans.indexOf(item.key) >= 0) { // 干净
const count = +item.num * 5
cleanSum += count
cleanList.push({name: item.title, count})
} else if (orders.indexOf(item.key) >= 0) { // 有序
const count = +item.num * 2.3
orderSum += count
orderList.push({name: item.title, count})
} else { // 安全
const count = +item.num * 7.2
safeSum += count
safeList.push({name: item.title, count})
}
})
this.$set(this.clean, 'data', [...cleanList, {name: '- 汇总 -', count: cleanSum + ''}])
this.$set(this.order, 'data', [...orderList, {name: '- 汇总 -', count: orderSum + ''}])
this.$set(this.safe, 'data', [...safeList, {name: '- 汇总 -', count: safeSum + ''}])
this.count = {
safe: 100 - safeSum,
order: 100 - orderSum,
clean: 100 - cleanSum,
}
},
getFace(val) {
if (val >= 90) {
return 'face1'
} else if (val >= 80 && val < 90) {
return 'face2'
} else {
return 'face3'
}
},
},
watch: {
'$store.state.foundList': {
handler(cur) {
this.init(cur)
},
immediate: true
}
}
} }
</script> </script>
......
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