瀏覽代碼

审批报错信息修改

duy 1 年之前
父節點
當前提交
b88d3f8941
共有 1 個文件被更改,包括 5 次插入1 次删除
  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(() => {
         setTimeout(() => {
             window?.location?.reload() //刷新页面
             window?.location?.reload() //刷新页面
         }, 3000)
         }, 3000)
+    } else if (code === 400) {
+        window?.$message?.error(msg) 
     } else {
     } else {
         window?.$message?.warning('审批异常')
         window?.$message?.warning('审批异常')
     }
     }
@@ -481,8 +483,10 @@ const batchCompleteApprovalTask = async () => {
         setTimeout(() => {
         setTimeout(() => {
             window?.location?.reload() //刷新页面
             window?.location?.reload() //刷新页面
         }, 3000)
         }, 3000)
+    } else if (code === 400) {
+            window?.$message?.error(msg) 
     } else {
     } else {
-        window?.$message?.warning('审批出错')
+            window?.$message?.warning('审批出错')
     }
     }
 }
 }