| | |
| | | </div> |
| | | </div> |
| | | |
| | | <div class="grid-container"> |
| | | <div class="grid-container" v-if="Object.keys(newtitleData).length > 0"> |
| | | <div v-for="(item, index) in Object.keys(newtitleData)" :key="index" class="device-card"> |
| | | <div class="device-title"> |
| | | <img :src="test[item].img" :alt="newtitleData[item].name" /> |
| | | <div class="itemcenter"> |
| | | <div>{{ test[item]?.name || '--' }}</div> |
| | | <span class="shu">{{ newtitleData[item].total_num }}</span> |
| | | <span>{{unitMap[test[item]?.name]}}</span> |
| | | <span>{{ unitMap[test[item]?.name] }}</span> |
| | | </div> |
| | | </div> |
| | | <div class="status-list"> |
| | |
| | | <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span> |
| | | <span class="count"> |
| | | {{ newtitleData[item].status_map[statusKey] }} |
| | | {{ unitMap[test[item]?.name]}} |
| | | {{ unitMap[test[item]?.name] }} |
| | | </span> |
| | | </div> |
| | | </template> |
| | |
| | | <span class="label">{{ getStatusLabel(test[item]?.name, statusKey) }}</span> |
| | | <span class="count"> |
| | | {{ newtitleData[item].status_map[statusKey] }} |
| | | {{ unitMap[test[item]?.name]}} |
| | | {{ unitMap[test[item]?.name] }} |
| | | </span> |
| | | </div> |
| | | </template> |
| | |
| | | }" |
| | | ></span> |
| | | <span class="label">{{ getStatusLabel(test[item]?.name, statusIndex) }}</span> |
| | | <span class="count" |
| | | >{{ status }} {{ unitMap[test[item]?.name]}}</span |
| | | > |
| | | <span class="count">{{ status }} {{ unitMap[test[item]?.name] }}</span> |
| | | </div> |
| | | </template> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="grid-container" v-else> |
| | | <el-empty> |
| | | <template #description> |
| | | <span class="custom-text">暂无数据</span> |
| | | </template> |
| | | </el-empty> |
| | | </div> |
| | | </div> |
| | | </template> |
| | |
| | | |
| | | const getStaticsList = () => { |
| | | getStatics(userInfo.value.detail.areaCode).then(res => { |
| | | console.log('permission.value', permission.value); |
| | | // console.log('permission.value', permission.value); |
| | | // console.log('设备', res.data.data); |
| | | if (permission.value?.device_statistics_six) { |
| | | const { move_list, monitor_list, ...filteredData } = res.data.data; |
| | |
| | | }; |
| | | |
| | | const unitMap = { |
| | | '无人机流量': '架', |
| | | '无人机': '架', |
| | | '机巢': '个', |
| | | '机巢保险': '个', |
| | | '监控设备': '个', |
| | | '移动机巢': '个', |
| | | 无人机流量: '架', |
| | | 无人机: '架', |
| | | 机巢: '个', |
| | | 机巢保险: '个', |
| | | 监控设备: '个', |
| | | 移动机巢: '个', |
| | | }; |
| | | watch( |
| | | () => [ |
| | |
| | | font-weight: bold; |
| | | font-size: 16px; |
| | | color: #363636; |
| | | font-family: 'Source Han Sans CN'; |
| | | font-family: 'Source Han Sans CN'; |
| | | } |
| | | |
| | | img { |
| | |
| | | padding: 0 14px 0 21px; |
| | | // display: grid; |
| | | // grid-template-columns: repeat(4, 1fr); |
| | | height: 80px; |
| | | display: flex; |
| | | justify-content: space-around; |
| | | :deep(.el-empty ){ |
| | | width: 60px; |
| | | height: 60px; |
| | | .el-empty__image{ |
| | | width: 60px !important; |
| | | height: 60px !important;} |
| | | .custom-text { |
| | | font-size: 12px; |
| | | color: #7c8091; |
| | | } |
| | | } |
| | | .device-card { |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | font-weight: 400; |
| | | font-size: 14px; |
| | | color: #343434; |
| | | div{ |
| | | margin-top: 5px; |
| | | div { |
| | | margin-top: 5px; |
| | | } |
| | | .shu { |
| | | font-weight: bold; |
| | |
| | | color: #363636; |
| | | display: inline-block; |
| | | transform: skewX(-5deg); |
| | | font-family: 'Source Han Sans CN'; |
| | | font-family: 'Source Han Sans CN'; |
| | | // font-size: calc(12px + 0.5vw); |
| | | margin-right: 2px; |
| | | } |
| | |
| | | color: #363636; |
| | | display: inline-block; |
| | | transform: skewX(-5deg); |
| | | font-family: 'Source Han Sans CN'; |
| | | margin-right: 2px; |
| | | font-family: 'Source Han Sans CN'; |
| | | margin-right: 2px; |
| | | } |
| | | |
| | | span { |