Bläddra i källkod

fix: 补充查看按钮

xiaweibo 2 månader sedan
förälder
incheckning
51eb7aa57f

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

@@ -98,6 +98,10 @@
             </template>
             <template #action="scope">
               <div class="action-container--div" style="justify-content: left">
+                <ActionButton
+                  text="查看"
+                  @click="handleView(scope.row)"
+                />
                 <ActionButton
                   v-if="scope.row.statusName === '待反馈'"
                   text="作废"
@@ -323,6 +327,17 @@
     });
   };
 
+  const handleView = (row) => {
+    if (!id.value) return;
+    router.push({
+      name: 'oneByOneManagementItem',
+      query: {
+        id: String(row.id),
+        operate: 'one-by-one-view',
+      },
+    });
+  };
+
   onMounted(() => {
     getDetail();
   });