NEZ-734 fix:修改project topo居中的问题
This commit is contained in:
@@ -541,10 +541,10 @@ export default {
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
if (n && n.id) {
|
if (n && n.id) {
|
||||||
if (getTopology(this.topologyIndex)) {
|
// if (getTopology(this.topologyIndex)) {
|
||||||
getTopology(this.topologyIndex).destroy()
|
// getTopology(this.topologyIndex).destroy()
|
||||||
setTopology(this.topologyIndex, null)
|
// setTopology(this.topologyIndex, null)
|
||||||
}
|
// }
|
||||||
if (!this.objChange) {
|
if (!this.objChange) {
|
||||||
this.editTopologyFlag = false
|
this.editTopologyFlag = false
|
||||||
this.topologyLoading = true
|
this.topologyLoading = true
|
||||||
@@ -690,6 +690,7 @@ export default {
|
|||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
getTopology(this.topologyIndex).resize()
|
||||||
getTopology(this.topologyIndex).centerView()
|
getTopology(this.topologyIndex).centerView()
|
||||||
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
|
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
@@ -285,7 +285,7 @@
|
|||||||
<el-col :span="4" class="upload-pic-label">{{ $t('overall.folder') }}</el-col>
|
<el-col :span="4" class="upload-pic-label">{{ $t('overall.folder') }}</el-col>
|
||||||
<el-col :span="20">
|
<el-col :span="20">
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
maxlength="64" show-word-limit
|
:maxlength="64" show-word-limit
|
||||||
class="inline-input"
|
class="inline-input"
|
||||||
v-model="uploadPic.unit"
|
v-model="uploadPic.unit"
|
||||||
:fetch-suggestions="querySearch"
|
:fetch-suggestions="querySearch"
|
||||||
@@ -541,10 +541,10 @@ export default {
|
|||||||
immediate: true,
|
immediate: true,
|
||||||
handler (n) {
|
handler (n) {
|
||||||
if (n && n.id) {
|
if (n && n.id) {
|
||||||
if (getTopology(this.topologyIndex)) {
|
// if (getTopology(this.topologyIndex)) {
|
||||||
getTopology(this.topologyIndex).destroy()
|
// getTopology(this.topologyIndex).destroy()
|
||||||
setTopology(this.topologyIndex, null)
|
// setTopology(this.topologyIndex, null)
|
||||||
}
|
// }
|
||||||
if (!this.objChange) {
|
if (!this.objChange) {
|
||||||
this.editTopologyFlag = false
|
this.editTopologyFlag = false
|
||||||
this.topologyLoading = true
|
this.topologyLoading = true
|
||||||
@@ -690,6 +690,7 @@ export default {
|
|||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
getTopology(this.topologyIndex).resize()
|
||||||
getTopology(this.topologyIndex).centerView()
|
getTopology(this.topologyIndex).centerView()
|
||||||
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
|
this.penToolTipScale = getTopology(this.topologyIndex).data.scale
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user