xy 1 روز پیش
والد
کامیت
8a5018e1c1

+ 6 - 7
yudao-ui-admin-vue3/src/views/pressure2/boilerchecker/AuditCheckRecord.vue

@@ -838,13 +838,12 @@ const canSubmitMainReportType = ()=>{
 
   // 结果格式化
   const formatResult = (result) => {
-    switch (result) {
-      case '100':
-        return '通过'
-      case '200':
-        return '拒绝'
-      default:
-        return result || '-'
+    if (result === 100 || result === '100'){
+      return '通过'
+    }else if (result === 200 || result === '200'){
+      return '拒绝'
+    }else{
+      return result || '-'
     }
   }
   

+ 6 - 7
yudao-ui-admin-vue3/src/views/pressure2/pipechecker/AuditCheckRecord.vue

@@ -817,13 +817,12 @@ const canSubmitMainReportType = ()=>{
 
   // 结果格式化
   const formatResult = (result) => {
-    switch (result) {
-      case '100':
-        return '通过'
-      case '200':
-        return '拒绝'
-      default:
-        return result || '-'
+    if (result === 100 || result === '100'){
+      return '通过'
+    }else if (result === 200 || result === '200'){
+      return '拒绝'
+    }else{
+      return result || '-'
     }
   }