forked from drone/command-center-dashboard

罗广辉
2025-04-03 7635213630830c4cbb9ff6ada69ba9b5c8a35d42
src/views/Home/components/HomeLeft/OverviewNext.vue
@@ -37,7 +37,7 @@
            <img width="13" height="15" src="@/assets/images/home/homeLeft/table-icon.png" alt="" />
            {{ item.nickname }}
          </div>
          <div class="status" :class="item.status==='WORKING'?'atcive':''" @click="signMachineNestClick">
          <div class="status" :class="item.status==='WORKING'?'atcive':''" @click="signMachineNestClick(item)">
            {{ item.status==='OFFLINE'?'离线中':(item.status==='WORKING'?'作业中':'空闲中') }}
          </div>
        </div>
@@ -94,12 +94,12 @@
const tableList = ref([]);
// 机巢列表数据
const getTableList = () => {
  const params = {
    nickname: searchText.value,
    is_execute: false,
    type: 1,
    current: pageParams.value.current,
    size: pageParams.value.size
  const params = {
    nickname: searchText.value,
    is_execute: false,
    type: 1,
    current: pageParams.value.current,
    size: pageParams.value.size
  };
  selectDevicePage(params).then((res) => {
    // if (res.data.code !== 0) return;
@@ -126,10 +126,8 @@
}
// 单个机巢详情
const signMachineNestClick = () => {
  store.commit('setSingleUavHome', {
    id: '123'
  });
const signMachineNestClick = (item) => {
  store.commit('setSingleUavHome', item);
}
const detailsFun = () => {
@@ -173,8 +171,8 @@
      line-height: 19px;
      .value {
        font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
        margin-left: 8px;
        font-size: 26px;
        text-align: center;
      }
    }
    .status {