参数保存后异步触发项目流水重打标

This commit is contained in:
wkc
2026-03-18 17:18:39 +08:00
parent acf5249caf
commit 0233e203b7
13 changed files with 592 additions and 17 deletions

View File

@@ -186,11 +186,26 @@ export default {
models: Object.values(modelMap)
};
try {
await this.$confirm(
'保存参数后将进行项目内流水重新打标,是否继续?',
'提示',
{
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}
)
} catch (error) {
return
}
this.saving = true;
try {
await saveAllParams(saveDTO);
this.$modal.msgSuccess('保存成功');
this.$modal.msgSuccess('保存成功,已开始项目内流水重新打标');
await this.loadAllParams();
this.$emit('refresh-project');
} catch (error) {
if (error.response && error.response.data && error.response.data.msg) {
this.$message.error('保存失败:' + error.response.data.msg);