优化发起评估的流程接口调用时机
Showing
2 changed files
with
18 additions
and
0 deletions
| ... | @@ -132,6 +132,14 @@ const handleCreate = () => { | ... | @@ -132,6 +132,14 @@ const handleCreate = () => { |
| 132 | formItems.value[1].default = []; | 132 | formItems.value[1].default = []; |
| 133 | dialogInfo.value.visible = true; | 133 | dialogInfo.value.visible = true; |
| 134 | dialogInfo.value.type = ''; | 134 | dialogInfo.value.type = ''; |
| 135 | getCamundaDeploymentId('10018', userData.tenantGuid, userData.staffGuid).then((res: any) => { | ||
| 136 | if (res.code == proxy.$passCode) { | ||
| 137 | deploymentId.value = res.data; | ||
| 138 | } else { | ||
| 139 | deploymentId.value = ''; | ||
| 140 | proxy.$ElMessage.error(res.msg); | ||
| 141 | } | ||
| 142 | }) | ||
| 135 | } | 143 | } |
| 136 | 144 | ||
| 137 | const page = ref({ | 145 | const page = ref({ | ... | ... |
| ... | @@ -192,6 +192,16 @@ const handleCreate = () => { | ... | @@ -192,6 +192,16 @@ const handleCreate = () => { |
| 192 | formItems.value[5].default = []; | 192 | formItems.value[5].default = []; |
| 193 | dialogInfo.value.visible = true; | 193 | dialogInfo.value.visible = true; |
| 194 | dialogInfo.value.type = ''; | 194 | dialogInfo.value.type = ''; |
| 195 | if (!deploymentId.value) { | ||
| 196 | getCamundaDeploymentId('10019', userData.tenantGuid, userData.staffGuid).then((res: any) => { | ||
| 197 | if (res.code == proxy.$passCode) { | ||
| 198 | deploymentId.value = res.data; | ||
| 199 | } else { | ||
| 200 | deploymentId.value = ''; | ||
| 201 | proxy.$ElMessage.error(res.msg); | ||
| 202 | } | ||
| 203 | }) | ||
| 204 | } | ||
| 195 | } | 205 | } |
| 196 | 206 | ||
| 197 | const page = ref({ | 207 | const page = ref({ | ... | ... |
-
Please register or sign in to post a comment