# Conflicts:
#	src/views/iscs_new/iscsDraw/index.vue
This commit is contained in:
ival 2021-04-12 18:44:16 +08:00
commit ae686de0ab

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;
}
@ -202,10 +203,7 @@ export default {
this.$refs['tableform' + this.statusTab][0].$refs['form'].validate((valid) => {
if (valid) {
const model = utils.deepClone(this.$refs['tableform' + this.statusTab][0].formModel);
model.stateList.forEach(state=>{
delete state.defaultStyleSelect;
delete state.defaultShapeSelect;
});
model.stateList.map(state=>{ delete state.defaultStyleSelect; delete state.defaultShapeSelect; });
this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.Update}}]);
this.onSave();
}