Просмотр исходного кода

fix: 修改下发数,反馈数,反馈比例为空值

lixuan 2 месяцев назад
Родитель
Сommit
dd12761c17

+ 3 - 6
src/views/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagement/configs/tables.ts

@@ -87,20 +87,17 @@ export const WORK_PLAN_TABLE_COLUMNS: TableColumnProps[] = [
   {
   {
     label: '下发数',
     label: '下发数',
     prop: 'issuedCount',
     prop: 'issuedCount',
-    align: 'left',
-    minWidth: '80px',
+    slot: 'issuedCount',
   },
   },
   {
   {
     label: '反馈数',
     label: '反馈数',
     prop: 'feedbackCount',
     prop: 'feedbackCount',
-    align: 'left',
-    minWidth: '80px',
+    slot: 'feedbackCount',
   },
   },
   {
   {
     label: '反馈比例',
     label: '反馈比例',
     prop: 'feedbackRatio',
     prop: 'feedbackRatio',
-    align: 'left',
-    minWidth: '80px',
+    slot: 'feedbackRatio',
   },
   },
   {
   {
     label: '计划完成时间',
     label: '计划完成时间',

+ 11 - 1
src/views/production-safety/productionSafetySystem/safetySystemConstructionWorkPlanManagement/safetySystemConstructionWorkPlanManagement.vue

@@ -78,6 +78,7 @@
           >
           >
             <template #action="scope">
             <template #action="scope">
               <div class="action-container--div" style="justify-content: left">
               <div class="action-container--div" style="justify-content: left">
+
                 <!-- 1-未下发、2-待反馈、3-已完成 4- 已作废 -->
                 <!-- 1-未下发、2-待反馈、3-已完成 4- 已作废 -->
                 <!-- 未下发(1):编辑、删除、下发 -->
                 <!-- 未下发(1):编辑、删除、下发 -->
                 <template v-if="Number(scope.row.status) === 1">
                 <template v-if="Number(scope.row.status) === 1">
@@ -85,7 +86,7 @@
                   <ActionButton
                   <ActionButton
                     text="删除"
                     text="删除"
                     :popconfirm="{
                     :popconfirm="{
-                      title: '确定要删除?',
+                      title: '确定要删除?', 
                     }"
                     }"
                     @confirm="handleDelete(scope.row.id)"
                     @confirm="handleDelete(scope.row.id)"
                   />
                   />
@@ -119,6 +120,15 @@
                 </template>
                 </template>
               </div>
               </div>
             </template>
             </template>
+            <template #feedbackCount="scope">
+              {{ (scope.row.feedbackCount === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackCount }}
+            </template>
+            <template #issuedCount="scope">
+              {{ (scope.row.issuedCount === 0 && scope.row.status === 1) ? '-' : scope.row.issuedCount }}
+            </template>
+            <template #feedbackRatio="scope">
+              {{ (scope.row.feedbackRatio === 0 && scope.row.status === 1) ? '-' : scope.row.feedbackRatio }}
+            </template>
           </BasicTable>
           </BasicTable>
         </div>
         </div>
       </div>
       </div>