Browse Source

fix: 修改举一反三相关问题

xiaweibo 2 months ago
parent
commit
793324c518

+ 4 - 4
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagementDept/oneByOneManagementDept.vue

@@ -72,11 +72,11 @@
                 <ActionButton
                 <ActionButton
                   v-if="scope.row.statusId === 3"
                   v-if="scope.row.statusId === 3"
                   text="反馈"
                   text="反馈"
-                  @click="handleFeedback(scope.row.associationOtId)"
+                  @click="handleFeedback(scope.row.id)"
                 />
                 />
                 <ActionButton
                 <ActionButton
                   text="查看"
                   text="查看"
-                  @click="handleView(scope.row.associationOtId)"
+                  @click="handleView(scope.row.id)"
                 />
                 />
               </div>
               </div>
             </template>
             </template>
@@ -228,11 +228,11 @@
 
 
   /** 反馈:跳转反馈编辑页,操作仅反馈不根据状态显示 */
   /** 反馈:跳转反馈编辑页,操作仅反馈不根据状态显示 */
   const handleFeedback = (id: number) => {
   const handleFeedback = (id: number) => {
-    router.push({
+    router.push({ 
       name: 'oneByOneManagementDeptItem',
       name: 'oneByOneManagementDeptItem',
       query: {
       query: {
         id: String(id),
         id: String(id),
-        operate: 'one-by-one-dept-edit',
+        operate: 'one-by-one-dept-feedback',
       },
       },
     });
     });
   };
   };

+ 2 - 0
src/views/production-safety/hiddenTroubleInvestigationAndGovernance/oneByOneManagementDept/oneByOneManagementDeptItem.vue

@@ -25,6 +25,8 @@
         return '编辑举一反三';
         return '编辑举一反三';
       case 'one-by-one-dept-view':
       case 'one-by-one-dept-view':
         return '查看举一反三';
         return '查看举一反三';
+      case 'one-by-one-dept-feedback':
+        return '反馈举一反三';
       default:
       default:
         return '未知操作';
         return '未知操作';
     }
     }