Parcourir la source

检测结果字段回显

duy il y a 2 ans
Parent
commit
782cce5da8
1 fichiers modifiés avec 8 ajouts et 2 suppressions
  1. 8 2
      src/views/tentative/detect/third.vue

+ 8 - 2
src/views/tentative/detect/third.vue

@@ -73,7 +73,13 @@
                     </div>
                 </template>
                 <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCheck
-                         @selection-change="tableSelection"/>
+                         @selection-change="tableSelection">
+                         
+                         <template #status="{row}">
+                        <!-- <span>{{arrKeyValue(categoryData, 'dictKey', 'dictValue', row.detectionCategory)}}</span> -->
+                            <span>{{ row.status===1?'合格':row.status===0?'不合格':'' }}</span>
+                        </template>
+                </HcTable>
                 <template #action>
                     <HcPages :pages="searchForm" @change="pageChange"/>
                 </template>
@@ -401,7 +407,7 @@ const tableColumn = ref([
     {key: 'userName', name: '送样人', width: 100},
     {key: 'sampleDeliveryDate', name: '送样日期', width: 150},
     {key: 'reportDate', name: '报告日期', width: 150},
-    {key: 'testConclusionText', name: '检测结果', width: 150},
+    {key: 'status', name: '检测结果', width: 150},
     {key: 'remarks', name: '备注', width: 180},
 ])
 const tableData = ref([])