NEZ-2692 fix:projetc topo bug

This commit is contained in:
zhangyu
2023-03-14 14:29:33 +08:00
parent f1ba7cf6e3
commit 0ab5b84ef3
4 changed files with 7 additions and 4 deletions

View File

@@ -20,6 +20,7 @@
width: calc(50% - 10px);
margin-right: 10px;
min-width: 435px;
overflow: hidden;
//div.page {
// textarea {
// display: none;
@@ -168,4 +169,4 @@
}
}
}
}
}

View File

@@ -11,7 +11,7 @@ export default {
},
initEdit (id) {
bus.$emit('changeSelectPens', [])
getTopology(id).active([])
getTopology(id).inactive()
getTopology(id).lock(0)
getTopology(id).stopAnimate()
if (getTopology(id).data().pens) {

View File

@@ -305,7 +305,9 @@ export default {
getTopology(this.meta2dId).addPen(pen, true)
},
clearSelection () {
getTopology(this.meta2dId).active([])
// getTopology(this.meta2dId).active([])
getTopology(this.meta2dId).inactive()
getTopology(this.meta2dId).render()
bus.$emit('changeSelectPens', [])
}
}

View File

@@ -10,7 +10,7 @@
{{$t('overall.module')}}
</div>
<div v-show="elements.position" class="form-row-content">
<el-select v-model="pen.moduleId" @change="change('moduleId')" size="small">
<el-select v-model="pen.moduleId" @change="change('moduleId')" size="small" clearable>
<el-option v-for="item in modules" :value="item.id" :key="item.id" :label="item.name" :disabled="item.disabled"/>
</el-select>
</div>