Sfoglia il codice sorgente

审批报错信息修改

duy 1 anno fa
parent
commit
b88d3f8941
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      src/views/tasks/hc-data.vue

+ 5 - 1
src/views/tasks/hc-data.vue

@@ -463,6 +463,8 @@ const saveCompleteApprovalTask = async () => {
         setTimeout(() => {
             window?.location?.reload() //刷新页面
         }, 3000)
+    } else if (code === 400) {
+        window?.$message?.error(msg) 
     } else {
         window?.$message?.warning('审批异常')
     }
@@ -481,8 +483,10 @@ const batchCompleteApprovalTask = async () => {
         setTimeout(() => {
             window?.location?.reload() //刷新页面
         }, 3000)
+    } else if (code === 400) {
+            window?.$message?.error(msg) 
     } else {
-        window?.$message?.warning('审批出错')
+            window?.$message?.warning('审批出错')
     }
 }