参数保存后异步触发项目流水重打标
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user