能力云图:适配西海岸和市局

This commit is contained in:
guoyue 2022-10-02 11:08:42 +08:00
parent c183ee883d
commit d549a7f73d
1 changed files with 10 additions and 17 deletions

View File

@ -34,6 +34,8 @@
<script setup>
import { ref } from 'vue'
import { infrastructureInfo } from '@/api/capabilityCloud'
const itShowXiHaiAn = whoShow.itShowXiHaiAn
let myDataList = ref([
{
title: '视频资源数量',
@ -42,17 +44,15 @@ let myDataList = ref([
img: require('../../../assets/capabilityCloud/infrastructure_sz.png'),
},
{
// title: '',
title: '单兵设备',
snum: '2',
percentage: '100',
title: itShowXiHaiAn ? '单兵设备' : '云资源',
snum: itShowXiHaiAn ? '2' : 0,
percentage: itShowXiHaiAn ? '100' : '0',
img: require('../../../assets/capabilityCloud/infrastructure_yz.png'),
},
{
// title: '',
title: '无人机',
snum: '2',
percentage: '100',
title: itShowXiHaiAn ? '无人机' : '感知资源',
snum: itShowXiHaiAn ? '2' : 0,
percentage: itShowXiHaiAn ? '100' : '0',
img: require('../../../assets/capabilityCloud/infrastructure_gz.png'),
},
])
@ -61,17 +61,10 @@ function fontFormat(name) {
case '视频资源数量':
return 'color: #32ff91;'
break
// case '':
// return 'color: #f4fd25;'
// break
// case '':
// return 'color: #ff1d18;'
// break
case '单兵设备':
case itShowXiHaiAn ? '单兵设备' : '云资源':
return 'color: #f4fd25;'
break
case '无人机':
case itShowXiHaiAn ? '无人机' : '感知资源':
return 'color: #ff1d18;'
break
}