修改冀北页面
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -60,7 +60,8 @@
|
||||
{{
|
||||
isNaN((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 100)
|
||||
? 0
|
||||
: ((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 100).toFixed(2)
|
||||
: Math.floor((monitoringPoints.abnormalNum / monitoringPoints.runNum) * 10000) /
|
||||
100
|
||||
}}%
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,22 +1,22 @@
|
||||
<template>
|
||||
<div style="height: 145px" class="box1">
|
||||
<div class="boxDiv hexagon">
|
||||
<div class="text-style">{{ props.params.allNum }}</div>
|
||||
<div class="text-style" @click="change('')">{{ props.params.allNum }}</div>
|
||||
<!-- <div class="hexagon"></div> -->
|
||||
<div class="mt10 divBot">总数</div>
|
||||
</div>
|
||||
<div class="boxDiv hexagon hexagon1">
|
||||
<div class="text-style">{{ props.params.runNum }}</div>
|
||||
<div class="text-style" @click="change('运行')">{{ props.params.runNum }}</div>
|
||||
<!-- <div class="hexagon"></div> -->
|
||||
<div class="mt10 divBot">在运</div>
|
||||
</div>
|
||||
<div class="boxDiv hexagon hexagon2">
|
||||
<div class="text-style">{{ props.params.checkNum }}</div>
|
||||
<div class="text-style" @click="change('调试')">{{ props.params.checkNum }}</div>
|
||||
<!-- <div class="hexagon"></div> -->
|
||||
<div class="mt10 divBot">检修</div>
|
||||
<div class="mt10 divBot">调试</div>
|
||||
</div>
|
||||
<div class="boxDiv hexagon hexagon3">
|
||||
<div class="text-style">{{ props.params.stopRunNum }}</div>
|
||||
<div class="text-style" @click="change('停运')">{{ props.params.stopRunNum }}</div>
|
||||
<!-- <div class="hexagon"></div> -->
|
||||
<div class="mt10 divBot">停运</div>
|
||||
</div>
|
||||
@@ -27,6 +27,7 @@ import { ref, reactive, onMounted } from 'vue'
|
||||
import MyEChart from '@/components/echarts/MyEchart.vue'
|
||||
import { mainHeight } from '@/utils/layout'
|
||||
import { color } from '@/components/echarts/color'
|
||||
const emit=defineEmits(['change'])
|
||||
const height = mainHeight(330, 3)
|
||||
const props = defineProps({
|
||||
params: {
|
||||
@@ -34,6 +35,9 @@ const props = defineProps({
|
||||
default: () => {}
|
||||
}
|
||||
})
|
||||
const change = (e: string) => {
|
||||
emit('change',e)
|
||||
}
|
||||
const info = () => {}
|
||||
onMounted(() => {
|
||||
info()
|
||||
|
||||
@@ -30,9 +30,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<div>
|
||||
<statistics :params="statisticsList" />
|
||||
|
||||
|
||||
<statistics :params="statisticsList" @change="change" />
|
||||
</div>
|
||||
</el-card>
|
||||
<el-card class="mt10">
|
||||
@@ -82,7 +80,7 @@
|
||||
<span
|
||||
style="width: 90px; color: #388e3c"
|
||||
class="text text-style"
|
||||
@click="renderTable(o.list, o.name+'_')"
|
||||
@click="renderTable(o.list, o.name + '_')"
|
||||
>
|
||||
{{ o.count }}
|
||||
</span>
|
||||
@@ -197,7 +195,7 @@ import statistics from './components/statistics.vue'
|
||||
import MyEchart from '@/components/echarts/MyEchart.vue'
|
||||
import { getMonitorVerifyDay } from '@/api/device-boot/dataVerify'
|
||||
defineOptions({
|
||||
name: 'harmonic-boot/harmonic/getIntegrityData'
|
||||
name: 'runManage/runEvaluate'
|
||||
})
|
||||
|
||||
const dictData = useDictData()
|
||||
@@ -267,9 +265,9 @@ const tableStore = new TableStore({
|
||||
|
||||
// tableStore.table.data
|
||||
statisticsList.value.allNum = totalData.value.length
|
||||
statisticsList.value.runNum = tableStore.table.data.allNum
|
||||
statisticsList.value.checkNum = tableStore.table.data.allNum
|
||||
statisticsList.value.stopRunNum = tableStore.table.data.allNum
|
||||
statisticsList.value.runNum = totalData.value.filter(item => item.runFlag === '运行').length
|
||||
statisticsList.value.checkNum = totalData.value.filter(item => item.runFlag === '调试').length
|
||||
statisticsList.value.stopRunNum = totalData.value.filter(item => item.runFlag === '停运').length
|
||||
|
||||
abnormal.value = tableStore.table.data
|
||||
// 合并子集数据 并去重
|
||||
@@ -423,6 +421,16 @@ const totalTable = (num: number, t: string) => {
|
||||
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
const change = (e: string) => {
|
||||
title.value = e==''?'' : e+'_'
|
||||
loading.value = true
|
||||
pageNum.value = 1
|
||||
dataList.value = []
|
||||
dataList.value = totalData.value.filter(item => item.runFlag == e)
|
||||
loading.value = false
|
||||
}
|
||||
|
||||
// 渲染表格
|
||||
const renderTable = (list: any, t: string) => {
|
||||
title.value = t
|
||||
|
||||
Reference in New Issue
Block a user