|
@@ -806,8 +806,8 @@ const { line} = configOpt;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
- this.getSandboxClassify()
|
|
|
|
- +this.$route.query.SandboxId && this.getGraphData();
|
|
|
|
|
|
+ this.getSandboxClassify();
|
|
|
|
+ this.$route.query.SandboxId && this.getGraphData(this.$route.query.SandboxId)
|
|
},
|
|
},
|
|
mounted(){
|
|
mounted(){
|
|
this.init()
|
|
this.init()
|
|
@@ -863,6 +863,7 @@ const { line} = configOpt;
|
|
},
|
|
},
|
|
/* 编辑页 自动保存 */
|
|
/* 编辑页 自动保存 */
|
|
autoSave() {
|
|
autoSave() {
|
|
|
|
+ // return
|
|
this.loopTimer = setInterval(() => {
|
|
this.loopTimer = setInterval(() => {
|
|
if(!this.sandSaveParams.Name || !this.sandSaveParams.SandboxClassifyId) return;
|
|
if(!this.sandSaveParams.Name || !this.sandSaveParams.SandboxClassifyId) return;
|
|
const { Name, SandboxClassifyId } = this.sandSaveParams;
|
|
const { Name, SandboxClassifyId } = this.sandSaveParams;
|
|
@@ -1283,7 +1284,7 @@ const { line} = configOpt;
|
|
spinner: 'el-icon-loading',
|
|
spinner: 'el-icon-loading',
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
background: 'rgba(255, 255, 255, 0.8)'
|
|
});
|
|
});
|
|
- return
|
|
|
|
|
|
+ // return
|
|
const { cells } = this.graph.toJSON();
|
|
const { cells } = this.graph.toJSON();
|
|
this.graph.toSVG(async (dataUri) => {
|
|
this.graph.toSVG(async (dataUri) => {
|
|
const params = new FormData();
|
|
const params = new FormData();
|
|
@@ -1322,14 +1323,12 @@ const { line} = configOpt;
|
|
this.lockLoding.close();
|
|
this.lockLoding.close();
|
|
//如果是新增,直接跳转到编辑页面
|
|
//如果是新增,直接跳转到编辑页面
|
|
if(!SandboxId){
|
|
if(!SandboxId){
|
|
- this.$router.push({
|
|
|
|
|
|
+ this.$router.replace({
|
|
path: '/sandflow',
|
|
path: '/sandflow',
|
|
query: {
|
|
query: {
|
|
SandboxId:sandData.SandboxId,
|
|
SandboxId:sandData.SandboxId,
|
|
},
|
|
},
|
|
});
|
|
});
|
|
- this.getGraphData(sandData.SandboxId);
|
|
|
|
- return
|
|
|
|
}
|
|
}
|
|
|
|
|
|
callback && callback();
|
|
callback && callback();
|