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

修改

parent 39f3fe67
...@@ -7,6 +7,17 @@ ...@@ -7,6 +7,17 @@
</span> --> </span> -->
<div class="btn back" @click="closePage" /> <div class="btn back" @click="closePage" />
<div class="btn close" @click="closePage" /> <div class="btn close" @click="closePage" />
<div class="slogan left">
<span v-for="(word, i) in slogan[0]" :key="i+word">{{word}}</span>
</div>
<div class="slogan right">
<span v-for="(word, i) in slogan[1]" :key="i+word">{{word}}</span>
</div>
<div class="duty">
今日值班:
<p>李明良<img src="@/assets/images/phone.png" /></p>
<p>方芳<img src="@/assets/images/phone.png" /></p>
</div>
<span v-if="!hideTime" class="moment time"> <span v-if="!hideTime" class="moment time">
<!-- <span class="switch"><img src="@/assets/images/switch.png"/> 切换街道</span> --> <!-- <span class="switch"><img src="@/assets/images/switch.png"/> 切换街道</span> -->
{{curDate}} {{time}} {{curDate}} {{time}}
...@@ -17,6 +28,7 @@ ...@@ -17,6 +28,7 @@
</template> </template>
<script> <script>
// import axios from 'axios'
export default { export default {
name: 'MonitorTitle', name: 'MonitorTitle',
props: { props: {
...@@ -49,6 +61,7 @@ export default { ...@@ -49,6 +61,7 @@ export default {
timer: null, timer: null,
time: null, time: null,
style: {}, style: {},
slogan: ['人民城市人民建', '人民城市为人民'],
} }
}, },
mounted() { mounted() {
...@@ -57,13 +70,7 @@ export default { ...@@ -57,13 +70,7 @@ export default {
this.time = `${this.$moment().format('dddd')} ${this.$moment().format('LTS')}` this.time = `${this.$moment().format('dddd')} ${this.$moment().format('LTS')}`
}, 1000) }, 1000)
} }
// if (this.color) { // this.getWeather()
// this.style = {
// 'text-shadow': `0 0.02rem 0.04rem ${this.color}`,
// 'color': this.color,
// 'background-image': `linear-gradient(to bottom, #fff, ${this.color})`
// }
// }
this.style = {...this.style, 'font-size': this.size} this.style = {...this.style, 'font-size': this.size}
}, },
beforeDestroy() { beforeDestroy() {
...@@ -94,6 +101,13 @@ export default { ...@@ -94,6 +101,13 @@ export default {
closePage() { closePage() {
window.close() window.close()
}, },
// getWeather() {
// axios.get('https://tianqiapi.com/api?version=v6&appid=27325769&appsecret=k2G7Q7bA&city=杨浦&vue=1'
// ).then(res => {
// this.weather = res.data
// console.log(this.weather)
// })
// },
} }
} }
</script> </script>
...@@ -128,6 +142,27 @@ export default { ...@@ -128,6 +142,27 @@ export default {
background-image url(../../../assets/images/close.png) background-image url(../../../assets/images/close.png)
&:hover &:hover
background-image url(../../../assets/images/close-on.png) background-image url(../../../assets/images/close-on.png)
.slogan
display flex
justify-content space-around
align-items center
width 15%
position absolute
top .05rem
z-index: 2;
&.left
left 20%
&.right
right 20%
span
$flex-center()
width .2rem
height @width
background rgba(2,68,147,.8)
border-radius 50%
font-family $font-pang
font-size .14rem
font-weight normal
.switch .switch
color #5BD5FF color #5BD5FF
margin-right .1rem margin-right .1rem
...@@ -136,46 +171,35 @@ export default { ...@@ -136,46 +171,35 @@ export default {
width .12rem width .12rem
vertical-align middle vertical-align middle
.moment .moment
z-index 100 z-index 9
position absolute position absolute
font-size 0.12rem top .07rem
color #fff left 3%
// width 1.5rem .duty
top 25% display flex
// &.date align-items center
// right 15% z-index 9
&.time position absolute
// right 15% top .07rem
left 0 right 3%
right 0 p
margin 0 auto color $color-yellow
text-align center margin 0 .05rem
transform translateX(25%) img
width .08rem
height @width
margin-left .05rem
>.bg >.bg
position absolute position absolute
width 100% width 100%
height 100% height 100%
top 0 top 0
left 0 left 0
// animation shine 2.5s linear reverse infinite
>p >p
// text-shadow 0 0.02rem 0.04rem #B3EBFF
background-clip text background-clip text
-webkit-background-clip text -webkit-background-clip text
// color #B3EBFF
-webkit-text-fill-color transparent -webkit-text-fill-color transparent
background-image linear-gradient(to bottom, #fff, #B3EBFF) background-image linear-gradient(to bottom, #fff, #B3EBFF)
z-index 99 z-index 99
letter-spacing .05rem letter-spacing .05rem
// @keyframes shine {
// 0% {
// opacity 1
// }
// 50% {
// opacity 0.7
// }
// 100% {
// opacity 1
// }
// }
</style> </style>
...@@ -64,18 +64,18 @@ const commandLayout2 = [ ...@@ -64,18 +64,18 @@ const commandLayout2 = [
] ]
export default { export default {
streets: [ streets: [
{id: 310110001000, name: '定海路街道', houseId: 310110000169, center: [8140.864167601668, 5079.364284699033]}, {id: 310110020000, name: '新江湾城街道', houseId: 310110000168, center: [3635.8506067447124, 10472.688944671301], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=-i6_oyv1Vf-BgqEojN0pPQ8bHK5LfXy6'},
{id: 310110006000, name: '平凉路街道', houseId: 310110000167, center: [5107.94932750342, 2423.6864417613733]}, {id: 310110001000, name: '定海路街道', houseId: 310110000169, center: [8140.864167601668, 5079.364284699033], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=ftoVMdCb29K2O7W5Ki-rke8vOFA_GsKM'},
{id: 310110008000, name: '江浦路街道', houseId: 310110000177, center: [4211.45116637842, 3786.741592954671]}, {id: 310110006000, name: '平凉路街道', houseId: 310110000167, center: [5107.94932750342, 2423.6864417613733], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=D_ssgjWDvxbcMcS_eVuPC5_5imPY_YW1'},
{id: 310110009000, name: '四平路街道', houseId: 310110000170, center: [3293.5942071892155, 5147.717485190097]}, {id: 310110008000, name: '江浦路街道', houseId: 310110000177, center: [4211.45116637842, 3786.741592954671], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=LjBjfj4BrtnsBbPzsUuSo4IR27brzOkO'},
{id: 310110012000, name: '控江路街道', houseId: 310110000171, center: [5008.673834530317, 5227.606100514474]}, {id: 310110009000, name: '四平路街道', houseId: 310110000170, center: [3293.5942071892155, 5147.717485190097], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=YAZ9Q4o9hgi_cw9QB3Zx2fYklef5Dtmz'},
{id: 310110013000, name: '长白新村街道', houseId: 310110000173, center: [7430.66083957447, 6663.5712796890675]}, {id: 310110012000, name: '控江路街道', houseId: 310110000171, center: [5008.673834530317, 5227.606100514474], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=tsM-JsYK7pgCRb2FMmwtGWuoR0TwCkkD'},
{id: 310110015000, name: '延吉新村街道', houseId: 310110000172, center: [6246.9579368837085, 5745.491634168607]}, {id: 310110013000, name: '长白新村街道', houseId: 310110000173, center: [7430.66083957447, 6663.5712796890675], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=J9lTtuTBWjinCpGaX-1kH0ssBamIoSmY'},
{id: 310110016000, name: '殷行街道', houseId: 310110000176, center: [6688.878806764382, 10366.540369915294]}, {id: 310110015000, name: '延吉新村街道', houseId: 310110000172, center: [6246.9579368837085, 5745.491634168607], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=8zDuAqseqAD5EYvYclnY5jpQw_-TzblE'},
{id: 310110018000, name: '大桥街道', houseId: 310110000166, center: [6374.902499188995, 3511.8719065605596]}, {id: 310110016000, name: '殷行街道', houseId: 310110000176, center: [6688.878806764382, 10366.540369915294], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=B3_40kuhej63_QyN0LlDOeuOD1HqL5_F'},
{id: 310110019000, name: '五角场街道', houseId: 310110000174, center: [3296.4282528002864, 7281.637272274846]}, {id: 310110018000, name: '大桥街道', houseId: 310110000166, center: [6374.902499188995, 3511.8719065605596], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=0Sn0K5LW4p7cc6rbCfY8mRqJ2uMS_Bvc'},
{id: 310110020000, name: '新江湾城街道', houseId: 310110000168, center: [3635.8506067447124, 10472.688944671301]}, {id: 310110019000, name: '五角场街道', houseId: 310110000174, center: [3296.4282528002864, 7281.637272274846], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=aYOvtgp4LdE37YvY4twwbP-bAKl9gXKx'},
{id: 310110101000, name: '长海路街道', houseId: 310110000175, center: [6016.66261261553, 8153.563542586172]}, {id: 310110101000, name: '长海路街道', houseId: 310110000175, center: [6016.66261261553, 8153.563542586172], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=cRV65vfRR-i9IHhK7TwAKte57x7W9iHC'},
], ],
healthInfo: { healthInfo: {
creditScore: {}, creditScore: {},
...@@ -84,7 +84,7 @@ export default { ...@@ -84,7 +84,7 @@ export default {
ownerSatisfactionScore: {}, ownerSatisfactionScore: {},
monthCheck: {}, monthCheck: {},
}, },
currentStreetInfo: {id: 310110020000, name: '新江湾城街道', houseId: 310110000168, center: [3635.8506067447124, 10472.688944671301]}, currentStreetInfo: {id: 310110020000, name: '新江湾城街道', houseId: 310110000168, center: [3635.8506067447124, 10472.688944671301], url: 'http://10.81.71.38/chengyun/chengyun_town/page1.html#/?code=-i6_oyv1Vf-BgqEojN0pPQ8bHK5LfXy6'},
showLoading: false, showLoading: false,
curDate: null, curDate: null,
curSmartType: null, curSmartType: null,
......
<template> <template>
<div class="application"> <div class="application">
<div v-for="item in list" :key="item.name"> <div v-for="item in list" :key="item.name" @click.prevent="handleClick(item.key)">
<img :src="require(`@/assets/images/${item.icon}`)" /> <img :src="require(`@/assets/images/${item.icon}`)" />
<p>{{item.name}}</p> <p>{{item.name}}</p>
</div> </div>
...@@ -16,10 +16,19 @@ export default { ...@@ -16,10 +16,19 @@ export default {
{name: '会议系统', icon: 'app1.png'}, {name: '会议系统', icon: 'app1.png'},
{name: '派单系统', icon: 'app2.png'}, {name: '派单系统', icon: 'app2.png'},
{name: '气象系统', icon: 'app3.png'}, {name: '气象系统', icon: 'app3.png'},
{name: '网格系统', icon: 'app4.png'}, {name: '网格系统', icon: 'app4.png', key: 'jumpGridPage'},
] ]
} }
}, },
methods: {
handleClick(key) {
key && this[key]()
},
jumpGridPage() {
const {url} = this.$store.state.currentStreetInfo
window.open(url)
},
}
} }
</script> </script>
...@@ -30,6 +39,10 @@ export default { ...@@ -30,6 +39,10 @@ export default {
justify-content space-around justify-content space-around
>div >div
text-align center text-align center
cursor pointer
padding 0 .05rem
&:hover
box-shadow 0 .3rem 0.1rem 0.05rem rgba(0,0,0,0.2)
img img
height .3rem height .3rem
width auto width auto
......
...@@ -70,8 +70,8 @@ export default { ...@@ -70,8 +70,8 @@ export default {
list() { list() {
const {repairInfo} = this.$store.state const {repairInfo} = this.$store.state
return [ return [
{name: '报修数量', value: repairInfo[0], img: 'repair.png'}, {name: '报修数量', value: repairInfo[0], img: 'icon5.png'},
{name: '投诉数量', value: repairInfo[1], img: 'complaint.png'}, {name: '投诉数量', value: repairInfo[1], img: 'icon6.png'},
] ]
}, },
} }
...@@ -93,9 +93,9 @@ export default { ...@@ -93,9 +93,9 @@ export default {
display flex display flex
align-items center align-items center
img img
width .25rem width .15rem
height @width height @width
margin-right .05rem margin-right .1rem
p p
color $fontColor color $fontColor
&:last-child &:last-child
......
...@@ -34,8 +34,8 @@ export default { ...@@ -34,8 +34,8 @@ export default {
sum() { sum() {
const {gridSum, notAlertSum} = this.$store.state const {gridSum, notAlertSum} = this.$store.state
return [ return [
{name: '网格事件数', value: gridSum, img: 'tips2.png'}, {name: '网格事件数', value: gridSum, img: 'icon3.png'},
{name: '110非警情数', value: notAlertSum, img: 'tips3.png'}, {name: '110非警情数', value: notAlertSum, img: 'icon4.png'},
] ]
} }
}, },
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
align-items center align-items center
font-size .11rem font-size .11rem
img img
width .2rem width .15rem
height @width height @width
margin 0 .1rem margin 0 .1rem
.content .content
......
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
.map-btns .map-btns
position fixed position fixed
left calc(33.3% + .05rem) left calc(33.3% + .05rem)
bottom .05rem bottom .1rem
transition left .5s ease-in-out transition left .5s ease-in-out
&.isFull &.isFull
left .05rem left .05rem
......
...@@ -20,10 +20,10 @@ ...@@ -20,10 +20,10 @@
</div> </div>
<div class="govern"> <div class="govern">
<div class="content"> <div class="content">
<p><m-count class="count" :value="92" :decimal="0" /><span class="unit">(分)</span></p> <p><m-count class="count" :style="`color:${switchColor}`" :value="total" :decimal="0" /><span class="unit">(分)</span></p>
<p>整体治理得分</p> <p>整体治理得分</p>
</div> </div>
<div class="needel" /> <div class="needel" :style="`background:linear-gradient(to top, transparent 45%, ${switchColor});transform:rotate(${switchDeg}deg)`"/>
</div> </div>
</div> </div>
<div> <div>
...@@ -145,13 +145,56 @@ export default { ...@@ -145,13 +145,56 @@ export default {
// +monthCheck.county || 0, // +monthCheck.county || 0,
// ] // ]
}, },
total() {
const {id} = this.$store.state.currentStreetInfo
const {creditScore, propertyWarrantyScore, communityManagementScore, ownerSatisfactionScore, monthCheck} = this.$store.state.healthInfo
const list = [
+creditScore[id + ''] || 0,
+propertyWarrantyScore[id + ''] || 0,
+communityManagementScore[id + ''] || 0,
+ownerSatisfactionScore[id + ''] || 0,
+monthCheck[id + ''] || 0,
]
return list.reduce((cur, acc) => cur + acc, 0)
},
switchColor() {
if (this.total >= 75) {
return '#75e1b0'
}
if (this.total < 75 && this.total > 20) {
return '#ffd400'
}
if (this.total <= 20) {
return '#ff1e1e'
}
// if (this.total >= 90) {
// return '#75e1b0'
// }
// if (this.total < 90 && this.total >= 80) {
// return '#ffd400'
// }
// if (this.total < 80) {
// return '#ff1e1e'
// }
},
switchDeg() {
if (this.total >= 50) {
const rate = (this.total - 50) / 50
return (90 * rate).toFixed(1)
} else if (this.total > 0 && this.total < 50) {
const rate = (50 - this.total) / 50
return (-90 * rate).toFixed(1)
} else {
return -90
}
}
}, },
methods: { methods: {
init() { init() {
this.chart = echarts.init(this.$refs.chart) this.chart = echarts.init(this.$refs.chart)
window.addEventListener('resize', () => this.chart.resize()) window.addEventListener('resize', () => this.chart.resize())
this.chart.setOption(this.option) this.chart.setOption(this.option)
} },
}, },
watch: { watch: {
chartData() { chartData() {
...@@ -211,11 +254,11 @@ export default { ...@@ -211,11 +254,11 @@ export default {
position absolute position absolute
width .05rem width .05rem
height .65rem height .65rem
background linear-gradient(to top, transparent 45%, #44D7B6)
left 0 left 0
right 0 right 0
bottom .2rem bottom .2rem
margin auto margin auto
transition rotate .3s ease-in-out
transform rotate(-90deg)
transform-origin bottom transform-origin bottom
transform rotate(60deg)
</style> </style>
...@@ -71,7 +71,8 @@ export default { ...@@ -71,7 +71,8 @@ export default {
position relative position relative
flex-wrap wrap flex-wrap wrap
>div >div
width 50% // width 50%
width calc(33.3vw / 2)
height 80% height 80%
&.left &.left
>div >div
......
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
display flex display flex
flex 1 flex 1
align-items center align-items center
padding-left .05rem padding-left .1rem
img img
width .15rem width .15rem
height @width height @width
......
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