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

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