|
@@ -110,18 +110,6 @@
|
|
|
min-width="140"
|
|
min-width="140"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<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"
|
|
align="center"
|
|
|
prop="endValidTime"
|
|
prop="endValidTime"
|
|
|
label="有效期"
|
|
label="有效期"
|
|
@@ -133,28 +121,19 @@
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
<el-table-column align="center" label="详情" min-width="120">
|
|
<el-table-column align="center" label="详情" min-width="120">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
- <CrewInfo
|
|
|
|
|
|
|
+ <el-button
|
|
|
v-if="certType == 6"
|
|
v-if="certType == 6"
|
|
|
- class="mr10"
|
|
|
|
|
- :shipCode="route.query.shipCode"
|
|
|
|
|
- :shipname="scope.row.shipname"
|
|
|
|
|
- :crewId="scope.row.id"
|
|
|
|
|
- :crewInfo="scope.row"
|
|
|
|
|
- btnText="查看"
|
|
|
|
|
- :isText="true"
|
|
|
|
|
- disabled
|
|
|
|
|
- ></CrewInfo>
|
|
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ text
|
|
|
|
|
+ @click="goToShipOwnerDetail(scope.row.id)"
|
|
|
|
|
+ >
|
|
|
|
|
+ 详情
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-else
|
|
v-else
|
|
|
type="primary"
|
|
type="primary"
|
|
|
text
|
|
text
|
|
|
- @click="
|
|
|
|
|
- goToDetail(
|
|
|
|
|
- scope.row.shipCode,
|
|
|
|
|
- scope.row.crewName,
|
|
|
|
|
- scope.row.id
|
|
|
|
|
- )
|
|
|
|
|
- "
|
|
|
|
|
|
|
+ @click="goToShipDetail(scope.row.shipCode)"
|
|
|
>
|
|
>
|
|
|
详情
|
|
详情
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -235,24 +214,24 @@ function pageChange(e) {
|
|
|
currentPage.value = e;
|
|
currentPage.value = e;
|
|
|
getCertList();
|
|
getCertList();
|
|
|
}
|
|
}
|
|
|
-function goToDetail(shipCode, crewName, shipCrewId) {
|
|
|
|
|
- if (certType.value === 6 && crewName) {
|
|
|
|
|
- router.push({
|
|
|
|
|
- path: "/crewManage/crewDetail",
|
|
|
|
|
- query: {
|
|
|
|
|
- shipCode,
|
|
|
|
|
- shipCrewId,
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
- } else {
|
|
|
|
|
- router.push({
|
|
|
|
|
- path: "/shipManage/shipDetail",
|
|
|
|
|
- query: {
|
|
|
|
|
- shipCode,
|
|
|
|
|
- },
|
|
|
|
|
- });
|
|
|
|
|
- }
|
|
|
|
|
|
|
+function goToShipDetail(shipCode) {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: "/shipManage/shipDetail",
|
|
|
|
|
+ query: {
|
|
|
|
|
+ shipCode,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+function goToShipOwnerDetail(shipOwnerId) {
|
|
|
|
|
+ router.push({
|
|
|
|
|
+ path: "/shipOwnerManage/shipOwnerDetail",
|
|
|
|
|
+ query: {
|
|
|
|
|
+ shipOwnerId,
|
|
|
|
|
+ },
|
|
|
|
|
+ });
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
let certTypes = ref([
|
|
let certTypes = ref([
|
|
|
{
|
|
{
|
|
|
validTypes: [],
|
|
validTypes: [],
|