|
@@ -37,6 +37,8 @@
|
|
|
<el-button-group>
|
|
|
<el-button size="mini" @click="() => chooseTemplate()" :disabled="state == -1">选择模板</el-button>
|
|
|
<el-button size="mini" @click="() => loadData()" :disabled="state == -1">加载数据</el-button>
|
|
|
+
|
|
|
+ <el-button size="mini" @click="() => reset()" :disabled="state == -1">重置</el-button>
|
|
|
</el-button-group>
|
|
|
|
|
|
<el-button-group>
|
|
@@ -398,7 +400,12 @@
|
|
|
save(){
|
|
|
Template.clearParent(this.currentDiagram.template);
|
|
|
const params:any = {diagram: this.currentDiagram};
|
|
|
- this.callAction("saveDiagram", params)
|
|
|
+ this.callAction("saveDiagram", params);
|
|
|
+ }
|
|
|
+
|
|
|
+ reset(){
|
|
|
+ const params:any = {diagramId: this.currentDiagram.id};
|
|
|
+ this.callAction("resetDiagram", params);
|
|
|
}
|
|
|
|
|
|
//切换编辑状态
|