Browse Source

Merge branch 'need-pool#784'

cxmo 1 year ago
parent
commit
3b209cf97a
1 changed files with 14 additions and 2 deletions
  1. 14 2
      src/views/sandbox_manage/sandFlow/index.vue

+ 14 - 2
src/views/sandbox_manage/sandFlow/index.vue

@@ -181,7 +181,7 @@ export default {
 				const { Data } = await dataBaseInterface.uploadImgSvg(params);
 				let SandboxVersionCode = (this.sand_id && classify === this.sandInfo.ChartPermissionId)  ? this.sand_id : '';
 				
-				const { Ret } =	await sandInterface.sandSave({
+				const { Ret , Data : sandData} =	await sandInterface.sandSave({
 					SandboxVersionCode,
 					Name: name,
 					ChartPermissionId: classify,
@@ -193,7 +193,19 @@ export default {
 				if(Ret !== 200) return;
 				this.$message.success(`${SandboxVersionCode ? '编辑成功' : '保存成功'}`);
 				this.lockLoding.close();
-				!SandboxVersionCode && window.close();
+				//!SandboxVersionCode && window.close();
+				//如果是新增,直接跳转到编辑页面
+				if(!SandboxVersionCode&&sandData.VersionCode){
+					this.sand_id = sandData.VersionCode
+					this.$router.push({
+						path: '/sandflow',
+						query: {
+						id: sandData.VersionCode,
+						type:'edit',
+						},
+					});
+					this.getGraphData();
+				}
 				
 				callback && callback();
 			},{