吉安感知网项目-前端
张含笑
2026-01-21 9eb8bb59b802ceef1f52d334c8e577f2bf02c90e
applications/drone-command/src/views/dataCockpit/components/templateComponents/RealTemplate.vue
@@ -2,7 +2,15 @@
   <div class="drone-card">
      <div class="header">
         <div class="title">
            <span class="name">{{ data.droneName }}</span>
            <el-tooltip
               class="title-tooltip"
               :content="data.droneName || '-'"
               placement="top"
               effect="dark"
               :show-after="200"
            >
               <span class="name">{{ data.droneName }}</span>
            </el-tooltip>
            <span class="status">
               <span :class="getStatusType(data)">
@@ -90,6 +98,21 @@
   return 'detecting'
}
const normalizeCounterWay = (value) => {
   if (value == null) return ''
   return String(value).trim()
}
const showSignalBtn = (item) => {
   const counterWay = normalizeCounterWay(item?.counterWay)
   return counterWay !== '1'
}
const showCounterBtn = (item) => {
   const counterWay = normalizeCounterWay(item?.counterWay)
   return counterWay !== '2'
}
const getDataSource = (item) => {
   return item?.deviceName || item?.areaName || '-'
}
@@ -142,8 +165,17 @@
         display: flex;
         align-items: center;
         gap: 6px;
         min-width: 0;
         .title-tooltip {
            flex: 1;
            min-width: 0;
            display: block;
         }
         .name {
            display: inline-block;
            max-width: 100%;
            font-family: Source Han Sans CN, Source Han Sans CN;
            font-weight: bold;
            font-size: 14px;
@@ -151,9 +183,13 @@
            text-align: left;
            font-style: normal;
            text-transform: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
         }
         .status {
            flex-shrink: 0;
            padding: 0 10px;
            display: flex;
            align-items: center;