瀏覽代碼

feat(certsManage): 证书管理页面增加健康证有效期列

- 在 certType 为 6 时显示健康证有效期列
- 使用 crewCertExpiryDate 字段表示健康证有效期
- 通过 subTimeStr 函数格式化有效期日期
- 在 certType 不为 6 时显示原有的有效期列
wzg 11 月之前
父節點
當前提交
7b1e5e0761
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      src/views/workStation/certsManage.vue

+ 12 - 0
src/views/workStation/certsManage.vue

@@ -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="有效期"