|
@@ -15,7 +15,13 @@
|
|
|
<div class="c6 fs16">所有船舶总数量: {{ total }}</div>
|
|
<div class="c6 fs16">所有船舶总数量: {{ total }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-top: 24px">
|
|
<div style="margin-top: 24px">
|
|
|
- <el-table border :data="tableData" stripe style="width: 100%">
|
|
|
|
|
|
|
+ <el-table
|
|
|
|
|
+ border
|
|
|
|
|
+ :data="tableData"
|
|
|
|
|
+ stripe
|
|
|
|
|
+ style="width: 100%"
|
|
|
|
|
+ :row-class-name="tableRowClassName"
|
|
|
|
|
+ >
|
|
|
<el-table-column label="序号" width="50" align="center">
|
|
<el-table-column label="序号" width="50" align="center">
|
|
|
<template v-slot="scope">
|
|
<template v-slot="scope">
|
|
|
{{ scope.$index + 1 + 10 * (currentPage - 1) }}
|
|
{{ scope.$index + 1 + 10 * (currentPage - 1) }}
|
|
@@ -183,6 +189,14 @@ async function shipDetail(shipCode) {
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+const tableRowClassName = ({ row, rowIndex }) => {
|
|
|
|
|
+ if (row.hhdAuthStatus === 0) {
|
|
|
|
|
+ return "unauthenticated-row";
|
|
|
|
|
+ }
|
|
|
|
|
+ return "";
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
function pageChange(e) {
|
|
function pageChange(e) {
|
|
|
currentPage.value = e;
|
|
currentPage.value = e;
|
|
|
getShipList();
|
|
getShipList();
|
|
@@ -254,4 +268,8 @@ onMounted(() => {
|
|
|
font-weight: 400;
|
|
font-weight: 400;
|
|
|
color: #0094fe;
|
|
color: #0094fe;
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+:deep().unauthenticated-row {
|
|
|
|
|
+ color: red !important;
|
|
|
|
|
+}
|
|
|
</style>
|
|
</style>
|