|
@@ -598,9 +598,11 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
this.$message.success('提交成功');
|
|
this.$message.success('提交成功');
|
|
|
- this.closeDialog();
|
|
|
|
|
const id = res.variables.bizKey || '';
|
|
const id = res.variables.bizKey || '';
|
|
|
- return this.saveExperimentalData(id,'已编制')
|
|
|
|
|
|
|
+ return this.saveExperimentalData(id,'已编制').then(() => {
|
|
|
|
|
+ this.closeDialog();
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.catch((error) => {
|
|
.catch((error) => {
|
|
|
this.$message.error('启动失败');
|
|
this.$message.error('启动失败');
|
|
@@ -620,8 +622,9 @@ export default {
|
|
|
data: JSON.stringify(data)
|
|
data: JSON.stringify(data)
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.$message.success('操作成功');
|
|
this.$message.success('操作成功');
|
|
|
- this.saveExperimentalData(data.id,data.shiFouGuoShen)
|
|
|
|
|
- this.closeDialog()
|
|
|
|
|
|
|
+ this.saveExperimentalData(data.id,data.shiFouGuoShen).then(() => {
|
|
|
|
|
+ this.closeDialog()
|
|
|
|
|
+ })
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.$message.error('操作失败');
|
|
this.$message.error('操作失败');
|
|
|
});
|
|
});
|
|
@@ -637,8 +640,9 @@ export default {
|
|
|
data: JSON.stringify(data)
|
|
data: JSON.stringify(data)
|
|
|
}).then(() => {
|
|
}).then(() => {
|
|
|
this.$message.success('退回成功');
|
|
this.$message.success('退回成功');
|
|
|
- this.saveExperimentalData(data.id,data.shiFouGuoShen)
|
|
|
|
|
- this.closeDialog()
|
|
|
|
|
|
|
+ this.saveExperimentalData(data.id,data.shiFouGuoShen).then(() => {
|
|
|
|
|
+ this.closeDialog()
|
|
|
|
|
+ })
|
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
|
this.$message.error('退回失败');
|
|
this.$message.error('退回失败');
|
|
|
});
|
|
});
|
|
@@ -651,8 +655,10 @@ export default {
|
|
|
})
|
|
})
|
|
|
.then((response) => {
|
|
.then((response) => {
|
|
|
this.$message.success('终止成功');
|
|
this.$message.success('终止成功');
|
|
|
- this.saveExperimentalData(data.id,data.shiFouGuoShen)
|
|
|
|
|
- this.closeDialog()
|
|
|
|
|
|
|
+ this.saveExperimentalData(data.id,data.shiFouGuoShen).then(() => {
|
|
|
|
|
+ this.closeDialog()
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
this.$message.error('终止失败');
|
|
this.$message.error('终止失败');
|