forked from drone/command-center-dashboard

chenyao
2025-04-15 828f2f412b36e03384d62874d3283f05afa7d4ea
src/views/Home/HomeLeft/OverviewNext.vue
@@ -18,15 +18,14 @@
         >
            <div
               class="table-item"
               :class="[index % 2 == 1 ? '' : 'table-item-odd']"
               :class="[index % 2 === 1 ? '' : 'table-item-odd']"
               v-for="(item, index) in tableList"
               :key="index"
               @click="signMachineNestClick(item)"
               @mouseover="changeIndex(index)"
               @mouseout="changeIndexBack(index)"
            >
               <div class="name">
                  <img class="imageicon" src="/src/assets/images/home/homeLeft/overviewnext-way.png" alt="" />
                  <img class="imageicon" :src="overviewnextWay" alt="" />
                  <!-- <img class="yjzx-img" width="10" height="10" src="@/assets/images/home/homeLeft/table-zx.png" alt="" /> -->
                  <img width="13" height="15" src="../../../assets/images/home/homeLeft/table-icon.png" alt="" />
                  {{ item.nickname }}
@@ -56,6 +55,8 @@
import { selectDevicePage } from '@/api/home/machineNest.js'
import { useStore } from 'vuex'
import overviewnextWay from '@/assets/images/home/homeLeft/overviewnext-way.png'
const store = useStore()
const isMore = ref(true)
@@ -80,8 +81,9 @@
   selectDevicePage(params).then(res => {
      if (res.data.code !== 0) return
      if (res.data.data.records.length === 0) return (isMore.value = false)
      pageParams.value.current += 1
      tableList.value = [...tableList.value, ...res.data.data.records]
      // pageParams.value.current += 1
      pageParams.value.size += 5;
      tableList.value = res.data.data.records;// [...tableList.value, ...res.data.data.records]
      busy.value = false
   })
}
@@ -97,6 +99,7 @@
const handleSearch = name => {
   searchText.value = name
   pageParams.value.current = 1
   pageParams.value.size = 5;
   tableList.value = []
   isMore.value = true
   getTableList()
@@ -148,7 +151,7 @@
         line-height: 33px;
         margin-bottom: 13px;
         .name {
            margin-left: 60px;
            margin-left: 46px;
         }
      }
      .table-body {
@@ -204,12 +207,12 @@
            cursor: pointer;
         }
         .active {
            color: #8effac;
            color: #ffa768;
            background: linear-gradient(90deg, rgba(12, 45, 92, 1) 0%, #154671 50%, rgba(12, 45, 92, 1) 100%),
               linear-gradient(90deg, rgba(12, 45, 92, 1) 0%, rgba(12, 45, 92, 1) 50%, rgba(12, 45, 92, 1) 100%);
         }
         .idle-active {
            color: #ffa768;
            color: #8effac;
         }
         .imageicon {
            object-fit: cover;