提交代码
This commit is contained in:
parent
27bcdc52a0
commit
b7d2f79462
@ -22,7 +22,8 @@
|
||||
</el-tabs>
|
||||
<div class="bottomBtnGroup">
|
||||
<el-button type="primary" size="small" @click="onSubmit">添加</el-button>
|
||||
<el-button v-show="showDeleteButton" size="small" type="danger" @click="deleteDevice">删除</el-button>
|
||||
<el-button v-show="showDeleteButton" size="small" type="warning" @click="onModify">修改</el-button>
|
||||
<el-button v-show="showDeleteButton" size="small" type="danger" @click="onDelete">删除</el-button>
|
||||
<el-button v-show="showDeleteButton" size="small" @click="initPage">取消</el-button>
|
||||
</div>
|
||||
</el-card>
|
||||
@ -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(){
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user