- 在 certType 为 6 时显示健康证有效期列 - 使用 crewCertExpiryDate 字段表示健康证有效期 - 通过 subTimeStr 函数格式化有效期日期 - 在 certType 不为 6 时显示原有的有效期列
@@ -91,6 +91,18 @@
min-width="140"
/>
<el-table-column
+ v-if="certType == 6"
+ align="center"
+ prop="crewCertExpiryDate"
+ label="有效期"
+ min-width="120"
+ >
+ <template v-slot="scope">
+ {{ subTimeStr(scope.row.crewCertExpiryDate) }}
+ </template>
+ </el-table-column>
+ <el-table-column
+ v-if="certType != 6"
align="center"
prop="endValidTime"
label="有效期"