|
@@ -3,12 +3,14 @@
|
|
|
<div class="mb30">
|
|
<div class="mb30">
|
|
|
<el-button-group class="mr30">
|
|
<el-button-group class="mr30">
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="type == 1 ? 'primary' : ''"
|
|
:type="type == 1 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (type = 1), getCertList()"
|
|
@click="(currentPage = 1), (type = 1), getCertList()"
|
|
|
>
|
|
>
|
|
|
当月
|
|
当月
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="type == 2 ? 'primary' : ''"
|
|
:type="type == 2 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (type = 2), getCertList()"
|
|
@click="(currentPage = 1), (type = 2), getCertList()"
|
|
|
>
|
|
>
|
|
@@ -17,24 +19,28 @@
|
|
|
</el-button-group>
|
|
</el-button-group>
|
|
|
<el-button-group>
|
|
<el-button-group>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="certType == 1 ? 'primary' : ''"
|
|
:type="certType == 1 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (certType = 1), getCertList()"
|
|
@click="(currentPage = 1), (certType = 1), getCertList()"
|
|
|
>
|
|
>
|
|
|
船舶国籍证书
|
|
船舶国籍证书
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="certType == 2 ? 'primary' : ''"
|
|
:type="certType == 2 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (certType = 2), getCertList()"
|
|
@click="(currentPage = 1), (certType = 2), getCertList()"
|
|
|
>
|
|
>
|
|
|
内河船舶适航证书
|
|
内河船舶适航证书
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="certType == 3 ? 'primary' : ''"
|
|
:type="certType == 3 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (certType = 3), getCertList()"
|
|
@click="(currentPage = 1), (certType = 3), getCertList()"
|
|
|
>
|
|
>
|
|
|
船舶年审合格证书
|
|
船舶年审合格证书
|
|
|
</el-button>
|
|
</el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
|
|
+ size="large"
|
|
|
:type="certType == 4 ? 'primary' : ''"
|
|
:type="certType == 4 ? 'primary' : ''"
|
|
|
@click="(currentPage = 1), (certType = 4), getCertList()"
|
|
@click="(currentPage = 1), (certType = 4), getCertList()"
|
|
|
>
|
|
>
|
|
@@ -66,8 +72,12 @@
|
|
|
align="center"
|
|
align="center"
|
|
|
prop="endValidTime"
|
|
prop="endValidTime"
|
|
|
label="有效期"
|
|
label="有效期"
|
|
|
- width="180"
|
|
|
|
|
- />
|
|
|
|
|
|
|
+ width="120"
|
|
|
|
|
+ >
|
|
|
|
|
+ <template v-slot="scope">
|
|
|
|
|
+ {{ subTimeStr(scope.row.endValidTime) }}
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column align="center" label="详情" width="180">
|
|
<el-table-column align="center" label="详情" width="180">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<el-button
|
|
<el-button
|
|
@@ -100,6 +110,8 @@ import md5 from "md5";
|
|
|
import api from "../../apis/fetch";
|
|
import api from "../../apis/fetch";
|
|
|
import { useRoute } from "vue-router";
|
|
import { useRoute } from "vue-router";
|
|
|
import _ from "lodash";
|
|
import _ from "lodash";
|
|
|
|
|
+import { subTimeStr } from "../../utils/utils";
|
|
|
|
|
+
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
|
let type = ref(1);
|
|
let type = ref(1);
|
|
|
let certType = ref(1);
|
|
let certType = ref(1);
|