修改稼动率计算 修改场外在线数量显示
This commit is contained in:
parent
7d4dab8429
commit
fcd2b922e1
@ -129,7 +129,7 @@ let data={
|
||||
stoptime:val.stoptime,//急停时长
|
||||
data:'2020-05-06',//采购日期
|
||||
src:imgurlAddXhr(val.data),//设备图片
|
||||
timeguagu:+Math.abs((val.ontime)/(val.ontime+val.offtime+val.stoptime)*100).toFixed(1)||0,//时间稼动率
|
||||
timeguagu: Math.round(Math.abs((val.ontime)/(val.ontime+val.offtime+val.stoptime)*100)) ||0,//时间稼动率
|
||||
MTBF:2724,//MTBF
|
||||
MTTR:169,//MTTR
|
||||
MTTF:2555,//MTTF
|
||||
|
@ -35,7 +35,7 @@ import mapEcharts from "./chart/mapEchart.vue";
|
||||
import topTitle from "./chart/topTitle.vue";
|
||||
import { Offsite } from "@/store/module/offsite";
|
||||
import { useI18n } from 'vue-i18n'
|
||||
let {t} = useI18n();
|
||||
let { t } = useI18n();
|
||||
const store = Offsite();
|
||||
let props = defineProps<{
|
||||
width: number;
|
||||
@ -81,20 +81,19 @@ const box = (width: any, height: any) => {
|
||||
watch(
|
||||
() => store.devlist,
|
||||
(newVal, oldVal) => {
|
||||
|
||||
store.devlist.forEach(res => {
|
||||
newVal.forEach(res => {
|
||||
if (res.city == '广东省') {
|
||||
if (res.deviceStatus == "true") {
|
||||
city1['on'] += res.counts
|
||||
city1['on'] += 1
|
||||
} else {
|
||||
city1['off'] += res.counts
|
||||
city1['off'] += 1
|
||||
}
|
||||
}
|
||||
if (res.city == '浙江省') {
|
||||
if (res.deviceStatus == "true") {
|
||||
city2['on'] += res.counts
|
||||
city2['on'] += 1
|
||||
} else {
|
||||
city2['off'] += res.counts
|
||||
city2['off'] += 1
|
||||
}
|
||||
}
|
||||
})
|
||||
@ -138,4 +137,5 @@ onMounted(() => { });
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}</style>
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user