|
@@ -31,6 +31,7 @@
|
|
:isReadOnly='false'
|
|
:isReadOnly='false'
|
|
:caption='"选择管理分区"'
|
|
:caption='"选择管理分区"'
|
|
:data='regulateDistrictData'
|
|
:data='regulateDistrictData'
|
|
|
|
+ placeholder="全部"
|
|
:disabled='false'
|
|
:disabled='false'
|
|
@change='selectProjectItem'
|
|
@change='selectProjectItem'
|
|
/>
|
|
/>
|
|
@@ -57,10 +58,10 @@
|
|
</div>
|
|
</div>
|
|
<div class='system-equipments' v-if='item.assetTypeList'>
|
|
<div class='system-equipments' v-if='item.assetTypeList'>
|
|
<div class='number' v-for='(equip , index) in item.assetTypeList' :key='index'>
|
|
<div class='number' v-for='(equip , index) in item.assetTypeList' :key='index'>
|
|
- <p>
|
|
|
|
- {{equip.category_name}}
|
|
|
|
|
|
+ <div class="title">
|
|
|
|
+ <P>{{equip.category_name}}</p>
|
|
<span v-if='equip.is_exception_num'>{{equip.is_exception_num}}</span>
|
|
<span v-if='equip.is_exception_num'>{{equip.is_exception_num}}</span>
|
|
- </p>
|
|
|
|
|
|
+ </div>
|
|
<p>
|
|
<p>
|
|
<span>{{equip.asset_num}}</span>
|
|
<span>{{equip.asset_num}}</span>
|
|
<span>台</span>
|
|
<span>台</span>
|
|
@@ -108,7 +109,14 @@
|
|
</section>
|
|
</section>
|
|
<section class='ratio-list'>
|
|
<section class='ratio-list'>
|
|
<section class='block' :style='panelStyle(item)' v-for='(item , index) in maintainList' :key='index'>
|
|
<section class='block' :style='panelStyle(item)' v-for='(item , index) in maintainList' :key='index'>
|
|
- <h4 class='section-title' @click='toggerPanel(item)'>{{item.title}}</h4>
|
|
|
|
|
|
+ <h4 class='section-title' @click='toggerPanel(item)'>{{item.title}}<img @mouseenter="showToolTip(index, item.title)" @mouseleave="hideToolTip(index, item.title)" src="../../assets/images/icons/notice.png" /></h4>
|
|
|
|
+ <transition name="selectDownUpExtendTop">
|
|
|
|
+ <div class="tool-tip" v-if="item.showToolTip">
|
|
|
|
+ <h5 style="font-weight:bold;">{{item.title + '比值'}}</h5>
|
|
|
|
+ <p>{{item.title === '专维' ? '逾期未完成/即将到期任务数/任务总数' : '逾期未完成/任务总数'}}</p>
|
|
|
|
+ <div class="tip-triangle" :style="{left: item.title === '第三方检测' ? '12.5rem': '7.8rem'}"> </div>
|
|
|
|
+ </div>
|
|
|
|
+ </transition>
|
|
<div class='list'>
|
|
<div class='list'>
|
|
<ul>
|
|
<ul>
|
|
<li v-for='(option , index) in item.data' :key='index'>
|
|
<li v-for='(option , index) in item.data' :key='index'>
|
|
@@ -157,6 +165,7 @@ import 'leaflet-contextmenu'
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ toolTipHtml:'',
|
|
crumbsHtml: [],
|
|
crumbsHtml: [],
|
|
zoneNames: {
|
|
zoneNames: {
|
|
东北: 'dongbei',
|
|
东北: 'dongbei',
|
|
@@ -254,11 +263,20 @@ export default {
|
|
this.currentTime()
|
|
this.currentTime()
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+
|
|
window.vm = this
|
|
window.vm = this
|
|
this.getFrameworkTreeData()
|
|
this.getFrameworkTreeData()
|
|
window.addEventListener('resize', this.reinitalMap, false)
|
|
window.addEventListener('resize', this.reinitalMap, false)
|
|
},
|
|
},
|
|
- methods: {
|
|
|
|
|
|
+ methods: {
|
|
|
|
+ showToolTip (index, title) {
|
|
|
|
+
|
|
|
|
+ this.maintainList.forEach(item => {item.showToolTip = false})
|
|
|
|
+ this.maintainList[index].showToolTip = true
|
|
|
|
+ },
|
|
|
|
+ hideToolTip (index, title) {
|
|
|
|
+ this.maintainList[index].showToolTip = false
|
|
|
|
+ },
|
|
reinitalMap () {
|
|
reinitalMap () {
|
|
if (myMaps) {
|
|
if (myMaps) {
|
|
myMaps.invalidateSize(true);
|
|
myMaps.invalidateSize(true);
|
|
@@ -325,7 +343,9 @@ export default {
|
|
let res = this.provinceCities[JSONName]
|
|
let res = this.provinceCities[JSONName]
|
|
this.pantProjectsMap(data, this.currentSysId)
|
|
this.pantProjectsMap(data, this.currentSysId)
|
|
} else {
|
|
} else {
|
|
- this.$router.push({path:'/home/homePage',query:{plazaId: data.cid}}) // 点击广场时 直接跳转到详情页 地图不用响应
|
|
|
|
|
|
+ this.$router.push({path:'/home/homePage'}) // 点击广场时 直接跳转到详情页 地图不用响应
|
|
|
|
+ this.$store.commit('SETPLAZENAME', data.cname)
|
|
|
|
+ localStorage.setItem('PLAZAID', data.cid)
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -582,9 +602,9 @@ export default {
|
|
if (res.result === 'success') {
|
|
if (res.result === 'success') {
|
|
let data = res.data
|
|
let data = res.data
|
|
let orginalObj = {
|
|
let orginalObj = {
|
|
- 0:{title:'专维',data:[], expand: 0},
|
|
|
|
- 1:{title:'维保',data:[], expand: 0},
|
|
|
|
- 2:{title:'第三方检测',data:[], expand: 0}
|
|
|
|
|
|
+ 0:{title:'专维',data:[], expand: 0, showToolTip:false},
|
|
|
|
+ 1:{title:'维保',data:[], expand: 0, showToolTip:false},
|
|
|
|
+ 2:{title:'第三方检测',data:[], expand: 0, showToolTip:false}
|
|
}
|
|
}
|
|
let arr = []
|
|
let arr = []
|
|
for (let key in data) {
|
|
for (let key in data) {
|
|
@@ -885,8 +905,10 @@ export default {
|
|
this.pantProjectsMap(data, this.currentSysId)
|
|
this.pantProjectsMap(data, this.currentSysId)
|
|
}
|
|
}
|
|
if (type === 'project') {
|
|
if (type === 'project') {
|
|
- this.$router.push({path:'/home/homePage',query:{plazaId: data.cid}})
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.push({path:'/home/homePage' })
|
|
|
|
+ this.$store.commit('SETPLAZENAME', data.cname)
|
|
|
|
+ localStorage.setItem('PLAZAID', data.cid)
|
|
|
|
+ }
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}, 200)
|
|
}, 200)
|
|
@@ -895,7 +917,6 @@ export default {
|
|
* 生成弹框HTML
|
|
* 生成弹框HTML
|
|
*/
|
|
*/
|
|
createPopupHtmlContent(data, name) {
|
|
createPopupHtmlContent(data, name) {
|
|
- // return "<div>fdfdsfsdfdfds</div>"
|
|
|
|
if (Array.isArray(data) && data.length) {
|
|
if (Array.isArray(data) && data.length) {
|
|
let that = this
|
|
let that = this
|
|
let html = ''
|
|
let html = ''
|
|
@@ -940,12 +961,28 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
- window.removeEventListener(this.reinitalMap, true)
|
|
|
|
|
|
+ window.removeEventListener('resize', this.reinitalMap)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
<style scoped lang="less">
|
|
|
|
+@keyframes selectDownUpExtendTop {
|
|
|
|
+ from {
|
|
|
|
+ transform: translateY(8px);
|
|
|
|
+ opacity: 0;
|
|
|
|
+ }
|
|
|
|
+ to {
|
|
|
|
+ transform: translateY(0);
|
|
|
|
+ opacity: 1;
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+.selectDownUpExtendTop-enter-active {
|
|
|
|
+ animation: selectDownUpExtendTop .3s
|
|
|
|
+}
|
|
|
|
+.selectDownUpExtendTop-leave-active {
|
|
|
|
+ animation: selectDownUpExtendTop .3s reverse
|
|
|
|
+}
|
|
.overview {
|
|
.overview {
|
|
height: 100vh;
|
|
height: 100vh;
|
|
background: rgba(247, 249, 250, 1);
|
|
background: rgba(247, 249, 250, 1);
|
|
@@ -1095,6 +1132,8 @@ export default {
|
|
height: calc(100vh - 98px);
|
|
height: calc(100vh - 98px);
|
|
padding: 1.2rem 1.6rem;
|
|
padding: 1.2rem 1.6rem;
|
|
.section-title {
|
|
.section-title {
|
|
|
|
+ display: flex;
|
|
|
|
+ align-items: center;
|
|
padding-left: 10px;
|
|
padding-left: 10px;
|
|
border-left: 4px solid #025baa;
|
|
border-left: 4px solid #025baa;
|
|
color: #1f2429;
|
|
color: #1f2429;
|
|
@@ -1102,7 +1141,12 @@ export default {
|
|
font-weight: bolder;
|
|
font-weight: bolder;
|
|
line-height: 2rem;
|
|
line-height: 2rem;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
|
+ img{
|
|
|
|
+ width: 2rem;
|
|
|
|
+ margin-left: 1.2rem;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
.system-general {
|
|
.system-general {
|
|
width: 25.4%;
|
|
width: 25.4%;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
@@ -1112,13 +1156,15 @@ export default {
|
|
}
|
|
}
|
|
.system-list {
|
|
.system-list {
|
|
ul {
|
|
ul {
|
|
|
|
+ height: 80vh;
|
|
li.system-item {
|
|
li.system-item {
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
justify-content: flex-start;
|
|
align-items: center;
|
|
align-items: center;
|
|
width: calc(100% - 3.2rem);
|
|
width: calc(100% - 3.2rem);
|
|
|
|
+ height: calc(100% / 8);
|
|
margin-left: 1.6rem;
|
|
margin-left: 1.6rem;
|
|
- padding: 2rem 0;
|
|
|
|
|
|
+ // padding: 1rem 0;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
border: 1px solid white;
|
|
border: 1px solid white;
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
@@ -1163,14 +1209,25 @@ export default {
|
|
padding-left: 1.4rem;
|
|
padding-left: 1.4rem;
|
|
.number {
|
|
.number {
|
|
width: 33.3%;
|
|
width: 33.3%;
|
|
- p:nth-of-type(1) {
|
|
|
|
|
|
+ margin-right: 1.2rem;
|
|
|
|
+ .title{
|
|
|
|
+ display: inline-block;
|
|
position: relative;
|
|
position: relative;
|
|
- color: #1f2429;
|
|
|
|
- font-size: 1.4rem;
|
|
|
|
- line-height: 1.6rem;
|
|
|
|
|
|
+ p{
|
|
|
|
+ display: inline-block;
|
|
|
|
+ position: relative;
|
|
|
|
+ width: 100%;
|
|
|
|
+ color: #1f2429;
|
|
|
|
+ font-size: 1.4rem;
|
|
|
|
+ line-height: 1.6rem;
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ }
|
|
span {
|
|
span {
|
|
position: absolute;
|
|
position: absolute;
|
|
- top: -10px;
|
|
|
|
|
|
+ top: -1.6rem;
|
|
|
|
+ right: -1rem;
|
|
padding: 2px 4px;
|
|
padding: 2px 4px;
|
|
border-radius: 0.9rem;
|
|
border-radius: 0.9rem;
|
|
font-size: 1.2rem;
|
|
font-size: 1.2rem;
|
|
@@ -1247,9 +1304,9 @@ export default {
|
|
}
|
|
}
|
|
.map-container {
|
|
.map-container {
|
|
position: relative;
|
|
position: relative;
|
|
- height: 70rem;
|
|
|
|
|
|
+ height: 70vh;
|
|
#map {
|
|
#map {
|
|
- height: 70rem;
|
|
|
|
|
|
+ height: 70vh;
|
|
overflow: hidden;
|
|
overflow: hidden;
|
|
pointer-events: none;
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
@@ -1281,11 +1338,35 @@ export default {
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
margin-bottom: 1rem;
|
|
margin-bottom: 1rem;
|
|
background: white;
|
|
background: white;
|
|
- overflow: hidden;
|
|
|
|
|
|
+ // overflow: auto;
|
|
transition: height 0.3s ease-in-out;
|
|
transition: height 0.3s ease-in-out;
|
|
.section-title {
|
|
.section-title {
|
|
font-size: 1.6rem;
|
|
font-size: 1.6rem;
|
|
}
|
|
}
|
|
|
|
+ .tool-tip{
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ top: -6.6rem;
|
|
|
|
+ width: 100%;
|
|
|
|
+ border-radius: 4px;
|
|
|
|
+ padding: 0.8rem 1.6rem 1.6rem;
|
|
|
|
+ font-size: 1.4rem;
|
|
|
|
+ line-height: 2.2rem;
|
|
|
|
+ background: rgba(247, 249, 250, 1);
|
|
|
|
+ border:1px solid rgba(151,151,151, 0.2);
|
|
|
|
+ filter: drop-shadow(0 2px 4px rgba(31, 35, 41, .1)) ;
|
|
|
|
+ .tip-triangle{
|
|
|
|
+ position: absolute;
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 7.8rem;
|
|
|
|
+ border-style: solid;
|
|
|
|
+ width: 0;
|
|
|
|
+ height: 0;
|
|
|
|
+ bottom: -6px;
|
|
|
|
+ border-width: 6px 6px 0 6px;
|
|
|
|
+ border-color: rgba(247, 249, 250, 1) transparent transparent transparent;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
.list {
|
|
.list {
|
|
margin-top: 1.4rem;
|
|
margin-top: 1.4rem;
|
|
overflow: hidden;
|
|
overflow: hidden;
|