代码调整
This commit is contained in:
parent
2e45db73e5
commit
97f606a314
@ -141,6 +141,7 @@ export default {
|
|||||||
if (elem) {
|
if (elem) {
|
||||||
elem.model = this.selected;
|
elem.model = this.selected;
|
||||||
this.enabledTab = this.selected.type;
|
this.enabledTab = this.selected.type;
|
||||||
|
this.cardTab = 'first';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.selected = null;
|
this.selected = null;
|
||||||
@ -193,7 +194,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getComposeElemList() {
|
getComposeElemList() {
|
||||||
const source = this.$iscs.getSource();
|
const source = this.$iscs.getSource();
|
||||||
if (source.elementList) {
|
if (source.elementList && source.elementLis.length > 0) {
|
||||||
this.composeElemList = source.elementList;
|
this.composeElemList = source.elementList;
|
||||||
this.statusTab = this.composeElemList[0].code;
|
this.statusTab = this.composeElemList[0].code;
|
||||||
}
|
}
|
||||||
@ -203,7 +204,6 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
const model = utils.deepClone(this.$refs['tableform' + this.statusTab][0].formModel);
|
const model = utils.deepClone(this.$refs['tableform' + this.statusTab][0].formModel);
|
||||||
model.stateList.map(state=>{ delete state.defaultStyleSelect; delete state.defaultShapeSelect; });
|
model.stateList.map(state=>{ delete state.defaultStyleSelect; delete state.defaultShapeSelect; });
|
||||||
debugger;
|
|
||||||
this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.Update}}]);
|
this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.Update}}]);
|
||||||
this.onSave();
|
this.onSave();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user