代码调整

This commit is contained in:
joylink_cuiweidong 2021-04-12 18:29:23 +08:00
parent 2e45db73e5
commit 97f606a314

View File

@ -141,6 +141,7 @@ export default {
if (elem) {
elem.model = this.selected;
this.enabledTab = this.selected.type;
this.cardTab = 'first';
}
} else {
this.selected = null;
@ -193,7 +194,7 @@ export default {
},
getComposeElemList() {
const source = this.$iscs.getSource();
if (source.elementList) {
if (source.elementList && source.elementLis.length > 0) {
this.composeElemList = source.elementList;
this.statusTab = this.composeElemList[0].code;
}
@ -203,7 +204,6 @@ export default {
if (valid) {
const model = utils.deepClone(this.$refs['tableform' + this.statusTab][0].formModel);
model.stateList.map(state=>{ delete state.defaultStyleSelect; delete state.defaultShapeSelect; });
debugger;
this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.Update}}]);
this.onSave();
}