Prechádzať zdrojové kódy

检测结果字段回显

duy 2 rokov pred
rodič
commit
50a73f56d5
1 zmenil súbory, kde vykonal 6 pridanie a 2 odobranie
  1. 6 2
      src/views/tentative/detect/outside.vue

+ 6 - 2
src/views/tentative/detect/outside.vue

@@ -73,7 +73,11 @@
                     </div>
                 </template>
                 <HcTable ref="tableRef" :column="tableColumn" :datas="tableData" :loading="tableLoading" isCheck
-                         @selection-change="tableSelection"/>
+                         @selection-change="tableSelection">
+                         <template #status="{row}">
+                            <span>{{ row.status===1?'合格':row.status===0?'不合格':'' }}</span>
+                        </template>
+                </HcTable>
                 <template #action>
                     <HcPages :pages="searchForm" @change="pageChange"/>
                 </template>
@@ -402,7 +406,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([])