Kaynağa Gözat

错误提醒

duy 1 yıl önce
ebeveyn
işleme
5fa56c8dbd

+ 4 - 2
src/global/components/hc-report-modal/index.vue

@@ -288,7 +288,7 @@ const queryFixedFlowApi = async (type, datas) => {
     }
     //请求数据
     linkUserJoinString.value = ''
-    const { error, code, data } = await queryFixedFlow({
+    const { error, code, data, msg } = await queryFixedFlow({
         projectId: projectId.value,
         contractId: contractId.value,
         ...flowJson,
@@ -300,6 +300,7 @@ const queryFixedFlowApi = async (type, datas) => {
         const arr = getArrValue(data['records'])
         processData.value = [...processDefaultData, ...arr]
     } else {
+        window.$message.error(msg)
         processData.value = processDefaultData
     }
 }
@@ -316,7 +317,7 @@ const queryFixedFlowApi3 = async (type, datas) => {
     }
     //请求数据
     linkUserJoinString.value = ''
-    const { error, code, data } = await queryFixedFlow3({
+    const { error, code, data, msg } = await queryFixedFlow3({
         projectId: projectId.value,
         contractId: contractId.value,
         ...flowJson,
@@ -328,6 +329,7 @@ const queryFixedFlowApi3 = async (type, datas) => {
         const arr = getArrValue(data['records'])
         processData.value = [...processDefaultData, ...arr]
     } else {
+        window.$message.error(msg)
         processData.value = processDefaultData
     }
 }