无人机管理后台前端(已迁走)
张含笑
2025-05-16 697a56ec6793675627055d61d018ff91e92f17fc
feat:修改单位
1 files modified
18 ■■■■■ changed files
src/views/wel/components/statistics.vue 18 ●●●●● patch | view | raw | blame | history
src/views/wel/components/statistics.vue
@@ -17,7 +17,7 @@
          <div class="itemcenter">
            <div>{{ test[item]?.name || '--' }}</div>
            <span class="shu">{{ newtitleData[item].total_num }}</span>
            <span>个</span>
            <span>{{unitMap[test[item]?.name]}}</span>
          </div>
        </div>
        <div class="status-list">
@@ -39,7 +39,7 @@
              <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span>
              <span class="count">
                {{ newtitleData[item].status_map[statusKey] }}
                {{ test[item]?.name === '无人机' ? '架' : '个' }}
                {{ unitMap[test[item]?.name]}}
              </span>
            </div>
          </template>
@@ -61,7 +61,7 @@
              <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span>
              <span class="count">
                {{ newtitleData[item].status_map[statusKey] }}
                {{ test[item]?.name === '无人机' ? '架' : '个' }}
                {{ unitMap[test[item]?.name]}}
              </span>
            </div>
          </template>
@@ -104,7 +104,7 @@
              ></span>
              <span class="label">{{ getStatusLabel(test[item]?.name, statusIndex) }}</span>
              <span class="count"
                >{{ status }} {{ test[item]?.name === '无人机' ? '架' : '个' }}</span
                >{{ status }} {{ unitMap[test[item]?.name]}}</span
              >
            </div>
          </template>
@@ -267,10 +267,12 @@
};
const unitMap = {
  drone: '架',
  nest: '个',
  monitor: '个',
  mobile: '个',
  '无人机流量': '架',
  '无人机': '架',
  '机巢': '个',
  '机巢保险': '个',
  '监控设备': '个',
  '移动机巢': '个',
};
watch(
  () => [