ソースを参照

fix: 修改举一反三参数问题

xiaweibo 2 ヶ月 前
コミット
3d551db70d

+ 3 - 1
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/components/OneByOneAuditDetail.vue

@@ -153,6 +153,7 @@
     associationOneThree?: string;
     attachments?: string;
     attachmentList?: Array<{ fileName?: string; fileUrl?: string; fileNameOrUrl?: string; url?: string }>;
+    issueId?: number;
   } | null>(null);
 
   const showRejectDialog = ref(false);
@@ -220,6 +221,7 @@
           associationOneThree: data.associationOneThree,
           attachments: data.attachments,
           attachmentList: data.attachmentList,
+          issueId: data.issueId,
         };
       }
     } catch (e) {
@@ -267,7 +269,7 @@
     submitting.value = true;
     try {
       await approveDrawLessons({
-        id: id.value,
+        id: detailData.value.issueId ?? '',
         statusId: 5,
         statusName: '已完成',
       });

+ 2 - 2
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagement/components/OneByOneNotifyTarget.vue

@@ -312,12 +312,12 @@
     }
   };
 
-  const handleApprove = () => {
+  const handleApprove = (row) => {
     if (!id.value) return;
     router.push({
       name: 'oneByOneManagementItem',
       query: {
-        id: String(id.value),
+        id: String(row.id),
         operate: 'one-by-one-audit-detail',
       },
     });

+ 3 - 3
src/views/production-safety/safetyAssessment/inventory/inventory.vue

@@ -8,12 +8,12 @@
         <header>
           <div style="position: relative">
             <el-button type="primary" class="search-table-container--button" @click="handleCreate"> 添加 </el-button>
-            <!-- <el-button plain class="search-table-container--button" @click="handleImport">
+            <el-button plain class="search-table-container--button" @click="handleImport">
               导入
             </el-button>
             <el-button plain class="search-table-container--button" @click="handleDownload">
               导出
-            </el-button> -->
+            </el-button>
           </div>
 
           <div class="act-search">
@@ -180,7 +180,7 @@
   // 批量导入
   const batchImportVisible = ref(false);
   const { urlPrefix } = useGlobSetting();
-  const importApiUrl = ref(urlJoin(urlPrefix, '/inventory/importInventory'));
+  const importApiUrl = ref(urlJoin(urlPrefix, '/inventory/exportInventory'));
   const templateUrl = ref('./skyeye-file-upload/sfysecurity/TEMPLATE/import-inventory-template.xlsx');
 
   const handleImport = () => {