From db860f9c08a23fe916121a2c76001e05d2acee3e Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期一, 07 八月 2023 15:17:16 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/src/components/template/FlowPath.vue | 29 +++++++++++++++++------------ 1 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Source/UBCS-WEB/src/components/template/FlowPath.vue b/Source/UBCS-WEB/src/components/template/FlowPath.vue index f3d30c7..72d9567 100644 --- a/Source/UBCS-WEB/src/components/template/FlowPath.vue +++ b/Source/UBCS-WEB/src/components/template/FlowPath.vue @@ -171,17 +171,19 @@ // 鏂板 async handleSave(row, done, loading) { console.log(row) - const response = await flowpathSave({ ...row, ...{ templateId: this.code } }) - if (response.status === 200) { - loading() + await flowpathSave({ ...row, ...{ templateId: this.code } }).then(response=>{ + if (response.status === 200) { console.log(response) this.$message({ - type: 'success', - message: '鏂板鏁版嵁鎴愬姛锛�' + type: 'success', + message: '鏂板鏁版嵁鎴愬姛锛�' }) done() this.getDataList() - } + } + }).catch(res=>{ + loading() + }) }, // 缂栬緫 @@ -189,16 +191,19 @@ console.log(row) const { modelName, modelKey, buttonTypeKey, id ,description} = row let param = { modelName, modelKey, buttonTypeKey, id,description } - const response = await flowpathSave({ ...param, ...{ templateId: this.code } }) - if (response.status === 200) { - loading() + await flowpathSave({ ...param, ...{ templateId: this.code } }).then(response=>{ + if (response.status === 200) { this.$message({ - type: 'success', - message: '淇敼鏁版嵁鎴愬姛锛�' + type: 'success', + message: '淇敼鏁版嵁鎴愬姛锛�' }) done() this.getDataList() - } + } + }).catch(()=>{ + //loading鎺у埗绂佺敤 榛樿鏄紑鍚� + loading() + }) }, // 鍒犻櫎鍗曟潯 -- Gitblit v1.9.3