|
@@ -12,23 +12,23 @@
|
|
|
<ShipInfo :shipInfos="shipInfos"></ShipInfo>
|
|
<ShipInfo :shipInfos="shipInfos"></ShipInfo>
|
|
|
<div class="df aic jcsb pr20" v-if="shipInfos.length">
|
|
<div class="df aic jcsb pr20" v-if="shipInfos.length">
|
|
|
<div class="container-title">船员信息</div>
|
|
<div class="container-title">船员信息</div>
|
|
|
- <CrewInfo
|
|
|
|
|
|
|
+ <!-- <CrewInfo
|
|
|
:shipCode="route.query.shipCode"
|
|
:shipCode="route.query.shipCode"
|
|
|
:shipname="shipInfos[0].shipname"
|
|
:shipname="shipInfos[0].shipname"
|
|
|
@onSubmit="getCrewList"
|
|
@onSubmit="getCrewList"
|
|
|
- ></CrewInfo>
|
|
|
|
|
|
|
+ ></CrewInfo> -->
|
|
|
</div>
|
|
</div>
|
|
|
- <el-table border :data="crewList" stripe style="width: 1000px">
|
|
|
|
|
|
|
+ <el-table border :data="crews" stripe style="width: 1000px">
|
|
|
<el-table-column align="center" type="index" label="序号" width="80" />
|
|
<el-table-column align="center" type="index" label="序号" width="80" />
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
align="center"
|
|
align="center"
|
|
|
- prop="crewName"
|
|
|
|
|
|
|
+ prop="fullname"
|
|
|
label="船员姓名"
|
|
label="船员姓名"
|
|
|
min-width="120"
|
|
min-width="120"
|
|
|
/>
|
|
/>
|
|
|
<el-table-column
|
|
<el-table-column
|
|
|
align="center"
|
|
align="center"
|
|
|
- prop="crewCertExpiryDate"
|
|
|
|
|
|
|
+ prop="expiryAt"
|
|
|
label="有效期"
|
|
label="有效期"
|
|
|
min-width="120"
|
|
min-width="120"
|
|
|
>
|
|
>
|
|
@@ -39,27 +39,7 @@
|
|
|
<el-table-column align="center" label="详情" min-width="120">
|
|
<el-table-column align="center" label="详情" min-width="120">
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
|
<div class="df aic jcc">
|
|
<div class="df aic jcc">
|
|
|
- <CrewInfo
|
|
|
|
|
- class="mr10"
|
|
|
|
|
- :shipCode="route.query.shipCode"
|
|
|
|
|
- :shipname="shipInfos[0].shipname"
|
|
|
|
|
- :crewId="scope.row.id"
|
|
|
|
|
- :crewInfo="scope.row"
|
|
|
|
|
- btnText="查看"
|
|
|
|
|
- disabled
|
|
|
|
|
- ></CrewInfo>
|
|
|
|
|
- <CrewInfo
|
|
|
|
|
- class="mr10"
|
|
|
|
|
- :shipCode="route.query.shipCode"
|
|
|
|
|
- :shipname="shipInfos[0].shipname"
|
|
|
|
|
- :crewId="scope.row.id"
|
|
|
|
|
- :crewInfo="scope.row"
|
|
|
|
|
- btnText="修改"
|
|
|
|
|
- @onSubmit="getCrewList"
|
|
|
|
|
- ></CrewInfo>
|
|
|
|
|
- <el-button type="danger" @click="deleteCrew(scope.row.id)">
|
|
|
|
|
- 删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button type="primary">查看详情</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
@@ -144,6 +124,7 @@ let shipInfos = ref([{}]);
|
|
|
let medias = ref([]);
|
|
let medias = ref([]);
|
|
|
let mediaCoors = ref([]);
|
|
let mediaCoors = ref([]);
|
|
|
let shipCoors = ref([]);
|
|
let shipCoors = ref([]);
|
|
|
|
|
+let crews = ref([]);
|
|
|
let shipCoorsPolyline = ref([]);
|
|
let shipCoorsPolyline = ref([]);
|
|
|
let mediaCoorsPolyline = ref([]);
|
|
let mediaCoorsPolyline = ref([]);
|
|
|
async function getShipDetail(shipCode) {
|
|
async function getShipDetail(shipCode) {
|
|
@@ -159,8 +140,9 @@ async function getShipDetail(shipCode) {
|
|
|
mediaCoors.value = data.result.mediaCoors;
|
|
mediaCoors.value = data.result.mediaCoors;
|
|
|
shipCoors.value = data.result.shipCoors;
|
|
shipCoors.value = data.result.shipCoors;
|
|
|
shipInfos.value = [data.result];
|
|
shipInfos.value = [data.result];
|
|
|
|
|
+ crews.value = data.result.crews;
|
|
|
initMap();
|
|
initMap();
|
|
|
- getCrewList();
|
|
|
|
|
|
|
+ // getCrewList();
|
|
|
}
|
|
}
|
|
|
let crewCurrentPage = ref(1);
|
|
let crewCurrentPage = ref(1);
|
|
|
let crewTotal = ref(0);
|
|
let crewTotal = ref(0);
|