From 22119b6c5128b773d4e72a0a6ca1f736d0def087 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 08 八月 2023 18:08:05 +0800 Subject: [PATCH] 修改流程启动,流程执行 --- 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