|
@@ -79,6 +79,11 @@
|
|
|
<template v-slot:ip="{ row }">
|
|
<template v-slot:ip="{ row }">
|
|
|
{{ `${row.serverIp}:${row.callPort}` }}
|
|
{{ `${row.serverIp}:${row.callPort}` }}
|
|
|
</template>
|
|
</template>
|
|
|
|
|
+ <template v-slot:configs="{ row }">
|
|
|
|
|
+ <lay-tooltip :content="row.configs">
|
|
|
|
|
+ <div class="ellipsis-2" @click="handleUpdate(row)">{{ `${row.configs}` }}</div>
|
|
|
|
|
+ </lay-tooltip>
|
|
|
|
|
+ </template>
|
|
|
<template v-slot:lastReportTime="{ row }">
|
|
<template v-slot:lastReportTime="{ row }">
|
|
|
<span :class="{ 'danger-color': timeConverts(row.lastReportTime).indexOf('秒') == -1 }">{{ row.lastReportTime ? timeConverts(row.lastReportTime) : "未通讯" }}</span>
|
|
<span :class="{ 'danger-color': timeConverts(row.lastReportTime).indexOf('秒') == -1 }">{{ row.lastReportTime ? timeConverts(row.lastReportTime) : "未通讯" }}</span>
|
|
|
</template>
|
|
</template>
|
|
@@ -170,10 +175,11 @@ const columns = ref([
|
|
|
{ title: "起始", width: "90px", key: "startAmount", align: "center" },
|
|
{ title: "起始", width: "90px", key: "startAmount", align: "center" },
|
|
|
{ title: "收益", width: "90px", key: "earningRate", customSlot: "earningRate", align: "center" },
|
|
{ title: "收益", width: "90px", key: "earningRate", customSlot: "earningRate", align: "center" },
|
|
|
{ title: "状态", width: "90px", key: "status", customSlot: "status", align: "center" },
|
|
{ title: "状态", width: "90px", key: "status", customSlot: "status", align: "center" },
|
|
|
- { title: "参数", key: "configs", ellipsisTooltip: true },
|
|
|
|
|
|
|
+ { title: "参数", key: "configs", customSlot: "configs" },
|
|
|
{ title: "IP:编号", width: "130px", key: "ip", customSlot: "ip", ellipsisTooltip: true },
|
|
{ title: "IP:编号", width: "130px", key: "ip", customSlot: "ip", ellipsisTooltip: true },
|
|
|
{ title: "通讯", width: "120px", key: "lastReportTime", customSlot: "lastReportTime", align: "center" },
|
|
{ title: "通讯", width: "120px", key: "lastReportTime", customSlot: "lastReportTime", align: "center" },
|
|
|
{ title: "修改", width: "120px", key: "updateTime", customSlot: "updateTime", align: "center" },
|
|
{ title: "修改", width: "120px", key: "updateTime", customSlot: "updateTime", align: "center" },
|
|
|
|
|
+ { title: "所属人", width: "80px", key: "userName", align: "center", ellipsisTooltip: true },
|
|
|
{
|
|
{
|
|
|
title: "操作",
|
|
title: "操作",
|
|
|
width: "120px",
|
|
width: "120px",
|
|
@@ -357,6 +363,12 @@ onBeforeUnmount(() => {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+.ellipsis-2 {
|
|
|
|
|
+ display: -webkit-box;
|
|
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
|
|
+ overflow: hidden;
|
|
|
|
|
+ -webkit-line-clamp: 2; /* 控制显示的行数 */
|
|
|
|
|
+}
|
|
|
.custom-form-layout {
|
|
.custom-form-layout {
|
|
|
font-size: 12px !important;
|
|
font-size: 12px !important;
|
|
|
}
|
|
}
|