diff --git a/src/views/iscs_new/iscsDraw/index.vue b/src/views/iscs_new/iscsDraw/index.vue index 674e41902..e8e94ad8c 100644 --- a/src/views/iscs_new/iscsDraw/index.vue +++ b/src/views/iscs_new/iscsDraw/index.vue @@ -22,7 +22,8 @@
添加 - 删除 + 修改 + 删除 取消
@@ -131,8 +132,23 @@ export default { } }); }, - deleteDevice(){ - + onModify() { + let that=this; + that.$refs['dataform'+that.enabledTab][0].$refs['form'].validate((valid) => { + if (valid) { + let model = that.$refs['dataform'+that.enabledTab][0].formModel; + this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.UPDATE}}]); + } + }); + }, + onDelete(){ + let that=this; + that.$refs['dataform'+that.enabledTab][0].$refs['form'].validate((valid) => { + if (valid) { + let model = that.$refs['dataform'+that.enabledTab][0].formModel; + this.$refs.iscsCanvas.doAction([{model, action: {shapeType: shapeType.Element, order: orders.DELETE}}]); + } + }); }, initPage(){