NEZ-2239 fix: terminal 样式错误 以及地图resize 不生效
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
background: $--background-color-empty;
|
background: $--background-color-empty;
|
||||||
z-index: 2000;
|
z-index: 2000;
|
||||||
height: 300px;
|
height: 300px;
|
||||||
|
padding: 0 !important;
|
||||||
.shell-split {
|
.shell-split {
|
||||||
cursor: ns-resize;
|
cursor: ns-resize;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
@@ -210,6 +210,7 @@
|
|||||||
}
|
}
|
||||||
.sub-list{
|
.sub-list{
|
||||||
background: #000 !important;
|
background: #000 !important;
|
||||||
|
left: -2px;
|
||||||
}
|
}
|
||||||
/* 上滑resize工具条--end */
|
/* 上滑resize工具条--end */
|
||||||
.config-dropdown.w260{
|
.config-dropdown.w260{
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="overview">
|
<div class="overview" >
|
||||||
<div class="content-col-content" style="padding:0">
|
<div class="content-col-content" style="padding:0">
|
||||||
<div :id="'map' + (isFullscreen ? '-screen-' : '' ) + chartInfo.id " style="height: 100%; width: 100%"></div>
|
<div :id="'map' + (isFullscreen ? '-screen-' : '' ) + chartInfo.id " style="height: 100%; width: 100%"></div>
|
||||||
</div>
|
</div>
|
||||||
@@ -301,7 +301,8 @@ export default {
|
|||||||
},
|
},
|
||||||
pointAnimation (timeStep) {
|
pointAnimation (timeStep) {
|
||||||
const opacity = 0.5 + (timeStep % 1000) / 1000 / 2
|
const opacity = 0.5 + (timeStep % 1000) / 1000 / 2
|
||||||
this.map && this.map.setPaintProperty('pointLayer', 'circle-opacity', [
|
if (this.map) {
|
||||||
|
this.map.setPaintProperty('pointLayer', 'circle-opacity', [
|
||||||
'step',
|
'step',
|
||||||
['get', 'color'],
|
['get', 'color'],
|
||||||
0.5,
|
0.5,
|
||||||
@@ -311,9 +312,15 @@ export default {
|
|||||||
0.5
|
0.5
|
||||||
])
|
])
|
||||||
requestAnimationFrame(this.pointAnimation)
|
requestAnimationFrame(this.pointAnimation)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
resize () {
|
resize () {
|
||||||
this.map.resize()
|
console.log(123123123123)
|
||||||
|
setTimeout(() => {
|
||||||
|
this.map && this.map.remove()
|
||||||
|
this.map = null
|
||||||
|
this.initChart()
|
||||||
|
}, 100)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy () {
|
beforeDestroy () {
|
||||||
|
|||||||
@@ -1768,10 +1768,15 @@ export default {
|
|||||||
const domRect = dom ? dom.getBoundingClientRect() : {}
|
const domRect = dom ? dom.getBoundingClientRect() : {}
|
||||||
getTopology(this.topologyIndex).canvasPos = domRect
|
getTopology(this.topologyIndex).canvasPos = domRect
|
||||||
if (this.fromOverView) {
|
if (this.fromOverView) {
|
||||||
if (this.oldTopologyData && !this.oldTopologyData.pens) {
|
try {
|
||||||
this.oldTopologyData.pens = []
|
const obj = JSON.parse(this.oldTopologyData)
|
||||||
|
if (obj && !obj.pens) {
|
||||||
|
obj.pens = []
|
||||||
|
}
|
||||||
|
getTopology(this.topologyIndex).open(obj)
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
getTopology(this.topologyIndex).open(this.oldTopologyData || {})
|
|
||||||
}
|
}
|
||||||
let flag = false
|
let flag = false
|
||||||
const position = {
|
const position = {
|
||||||
|
|||||||
@@ -31,17 +31,19 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeDetailType (flag) {
|
changeDetailType (flag) {
|
||||||
this.detailType = flag
|
setTimeout(() => {
|
||||||
const query = { ...this.$route.query, detailType: flag }
|
const query = { ...this.$route.query, detailType: flag }
|
||||||
|
query.bottomBox = this.detailType !== 'view'
|
||||||
|
this.$router.replace({ query: query }).catch(err => {})
|
||||||
|
}, 100)
|
||||||
if (this.detailType === flag) {
|
if (this.detailType === flag) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.detailType = flag
|
||||||
// this.$refs.dataList.bottomBox.showSubList = false
|
// this.$refs.dataList.bottomBox.showSubList = false
|
||||||
// if (this.orderBy) {
|
// if (this.orderBy) {
|
||||||
// this.detailViewRightObj = ''
|
// this.detailViewRightObj = ''
|
||||||
// }
|
// }
|
||||||
query.bottomBox = this.detailType !== 'view'
|
|
||||||
this.$router.replace({ query: query }).catch(err => {})
|
|
||||||
let dataList = ''
|
let dataList = ''
|
||||||
localStorage.setItem('detail-view-' + this.tableId, this.detailType)
|
localStorage.setItem('detail-view-' + this.tableId, this.detailType)
|
||||||
if (this.detailType === 'view') {
|
if (this.detailType === 'view') {
|
||||||
|
|||||||
@@ -2234,10 +2234,15 @@ export default {
|
|||||||
let domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
|
let domRect = document.getElementById('topology-canvas' + this.topologyIndex).getBoundingClientRect()
|
||||||
getTopology(this.topologyIndex).canvasPos = domRect
|
getTopology(this.topologyIndex).canvasPos = domRect
|
||||||
if (this.fromOverView) {
|
if (this.fromOverView) {
|
||||||
if (this.oldTopologyData && !this.oldTopologyData.pens) {
|
try {
|
||||||
this.oldTopologyData.pens = []
|
const obj = JSON.parse(this.oldTopologyData)
|
||||||
|
if (obj && !obj.pens) {
|
||||||
|
obj.pens = []
|
||||||
|
}
|
||||||
|
getTopology(this.topologyIndex).open(obj)
|
||||||
|
} catch (e) {
|
||||||
|
console.log(e)
|
||||||
}
|
}
|
||||||
getTopology(this.topologyIndex).open(this.oldTopologyData)
|
|
||||||
}
|
}
|
||||||
let flag = false
|
let flag = false
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,8 @@ const store = new Vuex.Store({
|
|||||||
globalShow: false,
|
globalShow: false,
|
||||||
globalSearchId: '',
|
globalSearchId: '',
|
||||||
isRouteLive: true,
|
isRouteLive: true,
|
||||||
nowPath: ''
|
nowPath: '',
|
||||||
|
myEvent: new Event('resize')
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getGlobalSearchId (state) {
|
getGlobalSearchId (state) {
|
||||||
@@ -181,6 +182,7 @@ const store = new Vuex.Store({
|
|||||||
isShrink (state) {
|
isShrink (state) {
|
||||||
state.isShrink = !state.isShrink
|
state.isShrink = !state.isShrink
|
||||||
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
|
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
|
||||||
|
window.dispatchEvent(state.myEvent)
|
||||||
},
|
},
|
||||||
setMetricsList (state, metricsList) {
|
setMetricsList (state, metricsList) {
|
||||||
state.metricsList = [...metricsList]
|
state.metricsList = [...metricsList]
|
||||||
|
|||||||
@@ -45,7 +45,8 @@ const store = new Vuex.Store({
|
|||||||
globalShow: false,
|
globalShow: false,
|
||||||
globalSearchId: '',
|
globalSearchId: '',
|
||||||
isRouteLive: true,
|
isRouteLive: true,
|
||||||
nowPath: ''
|
nowPath: '',
|
||||||
|
myEvent: new Event('resize')
|
||||||
},
|
},
|
||||||
getters: {
|
getters: {
|
||||||
getGlobalSearchId (state) {
|
getGlobalSearchId (state) {
|
||||||
@@ -183,6 +184,7 @@ const store = new Vuex.Store({
|
|||||||
isShrink (state) {
|
isShrink (state) {
|
||||||
state.isShrink = !state.isShrink
|
state.isShrink = !state.isShrink
|
||||||
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
|
localStorage.setItem('nz-left-menu-shrink', state.isShrink)
|
||||||
|
window.dispatchEvent(state.myEvent)
|
||||||
},
|
},
|
||||||
setMetricsList (state, metricsList) {
|
setMetricsList (state, metricsList) {
|
||||||
state.metricsList = [...metricsList]
|
state.metricsList = [...metricsList]
|
||||||
|
|||||||
Reference in New Issue
Block a user