From 97f606a314b9fcbaad50d84a7af7d3dd97de79d3 Mon Sep 17 00:00:00 2001 From: joylink_cuiweidong <364937672@qq.com> Date: Mon, 12 Apr 2021 18:29:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/iscs_new/iscsDraw/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/iscs_new/iscsDraw/index.vue b/src/views/iscs_new/iscsDraw/index.vue index a4d583631..d336a54d9 100644 --- a/src/views/iscs_new/iscsDraw/index.vue +++ b/src/views/iscs_new/iscsDraw/index.vue @@ -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(); }