|
|
@@ -133,27 +133,28 @@ interface FormItem {
|
|
|
pageSize?: Number;
|
|
|
name?: String;
|
|
|
}
|
|
|
-const pageParams: FormItem = reactive({ pageNum: 1, pageSize: 10 });
|
|
|
+const pageParams: FormItem = reactive({ pageNum: 1, pageSize: 20 });
|
|
|
|
|
|
interface TablePage {
|
|
|
current: number;
|
|
|
limit: number;
|
|
|
total: number;
|
|
|
}
|
|
|
-const tablePage: TablePage = reactive({ current: 1, limit: 10, total: 0 });
|
|
|
+const tablePage: TablePage = reactive({ current: 1, limit: 20, total: 0 });
|
|
|
const columns = ref([
|
|
|
{ title: "选项", width: "44px", type: "checkbox" },
|
|
|
- { title: "ID", key: "id" },
|
|
|
- { title: "名称", key: "name", customSlot: "name", ellipsisTooltip: true },
|
|
|
- { title: "起始", key: "startAmount", align: "center" },
|
|
|
- { title: "收益", key: "earningRate", customSlot: "earningRate", align: "center" },
|
|
|
- { title: "状态", key: "status", customSlot: "status", align: "center" },
|
|
|
+ { title: "ID", width: "60px", key: "id" },
|
|
|
+ { title: "名称", width: "90px", key: "name", customSlot: "name", ellipsisTooltip: true },
|
|
|
+ { title: "起始", width: "90px", key: "startAmount", align: "center" },
|
|
|
+ { title: "收益", width: "90px", key: "earningRate", customSlot: "earningRate", align: "center" },
|
|
|
+ { title: "状态", width: "90px", key: "status", customSlot: "status", align: "center" },
|
|
|
{ title: "参数", key: "configs", ellipsisTooltip: true },
|
|
|
- { title: "IP:编号", key: "ip", customSlot: "ip", ellipsisTooltip: true },
|
|
|
- { title: "通讯", key: "lastReportTime", customSlot: "lastReportTime", align: "center" },
|
|
|
- { title: "修改", key: "updateTime", customSlot: "updateTime", align: "center" },
|
|
|
+ { title: "IP:编号", width: "130px", key: "ip", customSlot: "ip", ellipsisTooltip: true },
|
|
|
+ { title: "通讯", width: "120px", key: "lastReportTime", customSlot: "lastReportTime", align: "center" },
|
|
|
+ { title: "修改", width: "120px", key: "updateTime", customSlot: "updateTime", align: "center" },
|
|
|
{
|
|
|
title: "操作",
|
|
|
+ width: "120px",
|
|
|
customSlot: "operator",
|
|
|
key: "operator",
|
|
|
ignoreExport: true,
|
|
|
@@ -194,7 +195,7 @@ const jumpDetail = (info: any) => {
|
|
|
const handleShowInfo = (info: any) => {
|
|
|
document.title = `[${info.runNum || 0}/${info.total || 0}] 利润:${info.income || 0}(${info.incomeRate || 0}%)
|
|
|
初始:${info.startAmount || 0} 现有:${info.nowAmount || 0}`;
|
|
|
- collectInfo.value = `[${info.runNum || 0}/${info.total || 0}] 利润:<span class="primary-color">${info.income || 0}(${info.incomeRate || 0}%)</span>
|
|
|
+ collectInfo.value = `[${info.runNum || 0}/${info.total || 0}] 利润:<span class="${info.income >= 0 ? 'primary-color' : 'danger-color'}">${info.income || 0}(${info.incomeRate || 0}%)</span>
|
|
|
初始:<span class="primary-color">${info.startAmount || 0}</span> 现有:<span class="primary-color">${info.nowAmount || 0}</span>`;
|
|
|
};
|
|
|
|
|
|
@@ -268,6 +269,9 @@ onBeforeUnmount(() => {
|
|
|
:deep(.primary-color) {
|
|
|
color: var(--primary-color);
|
|
|
}
|
|
|
+ :deep(.danger-color) {
|
|
|
+ color: var(--danger-color);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
.custom-form-layout {
|