NEZ-3182 fix:去除缩放限制
This commit is contained in:
@@ -81,8 +81,9 @@ export default {
|
|||||||
init: function () {
|
init: function () {
|
||||||
const meta2dOptions = {
|
const meta2dOptions = {
|
||||||
minScale: this.minScale,
|
minScale: this.minScale,
|
||||||
maxScale: 2,
|
// maxScale: 2,
|
||||||
autoAnchor: false
|
autoAnchor: false,
|
||||||
|
// disableAnchor: true
|
||||||
}
|
}
|
||||||
const meta2d = new window.Meta2d(this.meta2dId, meta2dOptions)
|
const meta2d = new window.Meta2d(this.meta2dId, meta2dOptions)
|
||||||
meta2d.register(flowPens())
|
meta2d.register(flowPens())
|
||||||
@@ -126,9 +127,12 @@ export default {
|
|||||||
this.position.show = false
|
this.position.show = false
|
||||||
let endTime = new Date().getTime()
|
let endTime = new Date().getTime()
|
||||||
let startTime = endTime - 60 * this.params.timeType * 1000
|
let startTime = endTime - 60 * this.params.timeType * 1000
|
||||||
if (this.isChart) {
|
if (this.isChart && this.timeRange) {
|
||||||
startTime = this.timeRange[0]
|
startTime = this.timeRange[0]
|
||||||
endTime = this.timeRange[1]
|
endTime = this.timeRange[1]
|
||||||
|
} else if (this.filterTime) {
|
||||||
|
startTime = this.filterTime[0]
|
||||||
|
endTime = this.filterTime[1]
|
||||||
}
|
}
|
||||||
this.getQueryValues(this.querysArray, startTime, endTime).then((arr) => {
|
this.getQueryValues(this.querysArray, startTime, endTime).then((arr) => {
|
||||||
this.clacTopoData(this.$lodash.cloneDeep(this.topoData), arr).then((data) => {
|
this.clacTopoData(this.$lodash.cloneDeep(this.topoData), arr).then((data) => {
|
||||||
@@ -306,6 +310,9 @@ export default {
|
|||||||
},
|
},
|
||||||
pensActive (pens, e) { // 选中节点
|
pensActive (pens, e) { // 选中节点
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
pens.forEach(item => {
|
||||||
|
item.disableAnchor = false
|
||||||
|
})
|
||||||
this.selectPens = pens
|
this.selectPens = pens
|
||||||
this.modulesDiff(pens[0])
|
this.modulesDiff(pens[0])
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|||||||
@@ -137,6 +137,11 @@ export default {
|
|||||||
option: this.option
|
option: this.option
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
filterTime () {
|
||||||
|
return this.$store.getters.getTimeRange
|
||||||
|
},
|
||||||
|
},
|
||||||
props: {
|
props: {
|
||||||
meta2dId: {}, // 唯一id 不可重复
|
meta2dId: {}, // 唯一id 不可重复
|
||||||
iconArray: {
|
iconArray: {
|
||||||
|
|||||||
@@ -289,9 +289,9 @@ export default {
|
|||||||
if (this.scaleNum < 25) {
|
if (this.scaleNum < 25) {
|
||||||
this.scaleNum = 25
|
this.scaleNum = 25
|
||||||
}
|
}
|
||||||
if (this.scaleNum > 400) {
|
// if (this.scaleNum > 400) {
|
||||||
this.scaleNum = 400
|
// this.scaleNum = 400
|
||||||
}
|
// }
|
||||||
this.scale(this.scaleNum)
|
this.scale(this.scaleNum)
|
||||||
},
|
},
|
||||||
scale (val) {
|
scale (val) {
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 162 KiB |
Reference in New Issue
Block a user