浏览代码

添加开机币对数统计

DESKTOP-NE65RNK\Citrus_limon 1 年之前
父节点
当前提交
165047cdaa
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      src/views/bot/manage/index.vue

+ 7 - 0
src/views/bot/manage/index.vue

@@ -110,6 +110,9 @@
           <template v-slot:posNum="{ row }">
             <span :class="{ 'danger-color': row.posNum != 0 }">{{ row.posNum }}</span>
           </template>
+          <template v-slot:pairNum="{ row }">
+            <span :class="{ 'primary-color': row.pairNum < 20, 'warm-color': row.pairNum >= 20 && row.pairNum < 50, 'danger-color': row.pairNum >= 50 }">{{ row.pairNum }}</span>
+          </template>
           <template v-slot:updateTime="{ row }">
             <span>{{ timeConverts(row.updateTime) }}</span>
           </template>
@@ -240,6 +243,7 @@ const columns = ref([
   { title: "IP:编号", width: "120px", key: "ip", customSlot: "ip", ellipsisTooltip: true },
   { title: "通讯", width: "80px", key: "lastReportTime", customSlot: "lastReportTime", align: "center" },
   { title: "持仓信息", width: "80px", key: "posNum", customSlot: "posNum", align: "center", ellipsisTooltip: true },
+  { title: "开机币对数", width: "90px", key: "pairNum", customSlot: "pairNum", align: "center" },
   { title: "修改", width: "90px", key: "updateTime", customSlot: "updateTime", align: "center" },
   { title: "所属人", width: "80px", key: "userName", align: "center", ellipsisTooltip: true },
   {
@@ -521,6 +525,9 @@ onDeactivated(() => {
 .normal-color {
   color: var(--normal-color);
 }
+.warm-color {
+  color: var(--warm-color);
+}
 .danger-color {
   color: var(--danger-color);
 }