Эх сурвалжийг харах

fix(bpm): 修复businessType默认值定义并优化API调用代码格式

yusheng 4 сар өмнө
parent
commit
6f7e3becdf

+ 5 - 3
src/views/bpm/handleTask/components/qualityReportApproval/detailDialog.vue

@@ -42,7 +42,9 @@
       businessCode: {
         default: ''
       },
-      businessType: ''
+      businessType: {
+        default: ''
+      }
     },
     components: {
       browse
@@ -60,12 +62,12 @@
     methods: {
       async open() {
         let api = getDetailById;
-        console.log(this.businessType,'this.businessType')
+        console.log(this.businessType, 'this.businessType');
         if (this.businessType?.includes('质检任务单')) {
           api = taskmonadGetById;
         }
         if (this.businessType?.includes('质检受托单')) {
-          api = requestentrustGetById
+          api = requestentrustGetById;
         }
         const detail = await api(this.businessId);
         // this.reportData = detail;