|
@@ -3,7 +3,8 @@
|
|
|
<div class="frame-editor-wrap">
|
|
|
<div class="option-wrap">
|
|
|
<el-input style="width:240px;" placeholder="请输入框架名称" v-model.trim="frameDetail.FrameworkName"></el-input>
|
|
|
- <el-button type="primary" style="margin-left:auto;" @click="handleEditNode({})"
|
|
|
+ <el-button type="primary" plain style="margin-left:auto;" @click="returnListPage">返回</el-button>
|
|
|
+ <el-button type="primary" style="margin-left:20px;" @click="handleEditNode({})"
|
|
|
v-if="permissionBtn.isShowBtn('chartFramePermission','chartframe_my_editNode')">添加节点</el-button>
|
|
|
<el-button type="primary" style="margin-left:20px;" @click="saveFrame"
|
|
|
v-if="permissionBtn.isShowBtn('chartFramePermission','chartframe_my_saveFrame')">保存</el-button>
|
|
@@ -178,6 +179,12 @@ export default {
|
|
|
})
|
|
|
|
|
|
},
|
|
|
+ //返回至列表页,并选中当前页的框架(如果是编辑)
|
|
|
+ returnListPage(){
|
|
|
+ if(this.frameId){
|
|
|
+ this.$router.push({path:'/chartframe',query:{frameId:this.frameId}})
|
|
|
+ }
|
|
|
+ }
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getMyList()
|