<template>
|
<div class="leftEqp">
|
<div class="leftTop">
|
<dv-border-box-7 >
|
<div style="display:flex;justify-content: center;flex-wrap: wrap;align-content: flex-start;">
|
<div style="display: flex;">
|
<div class="leftTop0">
|
|
<div>
|
<div class="mainInfo" style="padding-top: 20px;padding-left:80px;font-size: 26px">{{ eqp?.name }}</div>
|
<dv-decoration-8 style="width:300px;height:50px;padding-top: 0px" />
|
|
</div>
|
<div style="display: flex; width: 500px; justify-content: space-between">
|
<div style="padding-top: 20px; width: 150px; height: 160px">
|
<dv-border-box-7 style="padding: 10px">
|
<div style="display: flex; flex-direction: column;justify-content: space-between; height: 100%">
|
<div style="font-size: 20px">含水率</div>
|
|
<div style="font-size: 35px; text-align: center"> {{ realData?.trendVo?.moisture || 0 }} <span style="font-size: 20px">%</span></div>
|
<div style="font-size: 16px; display: flex;justify-content: space-between"> <div>{{ realData?.initial || 0 }} %</div> <div> -> </div> <div>{{ realData?.target || 0 }} %</div></div>
|
</div>
|
</dv-border-box-7>
|
</div>
|
<div style="padding-top: 20px; width: 150px; height: 160px">
|
<dv-border-box-7 style="padding: 10px; ">
|
<div style="display: flex; flex-direction: column;justify-content: space-between; height: 100%">
|
<div style="font-size: 20px">重量</div>
|
<div style="font-size: 35px; text-align: center"> {{ realData?.trendVo?.weight || 0 }} <span style="font-size: 20px">kg</span></div>
|
<div style="font-size: 16px"> 初始 {{ realData?.originWeight }} kg</div>
|
</div>
|
</dv-border-box-7>
|
</div>
|
<div style="padding-top: 20px; width: 150px; height: 160px">
|
<dv-border-box-7 style="padding: 10px">
|
<div style="display: flex; flex-direction: column;justify-content: space-between; height: 100%">
|
<div style="font-size: 20px">热风</div>
|
<div style="font-size: 35px; text-align: center"> {{ realData?.trendVo?.bellowsTemp || 0 }} <span style="font-size: 20px">°C</span></div>
|
<div style="font-size: 16px"> 设置 {{ realData?.windTemp || 0 }} °C</div>
|
</div>
|
</dv-border-box-7>
|
</div>
|
</div>
|
|
<div class="eqp-title" style="width:500px; font-size: 24px;padding-top: 20px">
|
<div style="position: absolute; z-index: 999;font-size: 22px; padding-left: 26px; padding-top: 7px" > 干燥 {{ realData?.dryTime }} Min</div>
|
|
<Progress
|
:stroke-color="{
|
from: '#108ee9',
|
to: '#87d068',
|
}"
|
:percent="parseFloat((realData?.dryTime/realData?.totalTime)*100 || '0')"
|
status="active"
|
trailColor="#2b2b2b2b"
|
:show-info="false"
|
/>
|
<div class="eqp-timer" style="display: flex; justify-content: space-between">
|
<div>
|
预计 {{ realData?.totalTime }} Min
|
</div>
|
<div>
|
剩余 {{ realData?.totalRemain | 0 }} Min
|
</div>
|
</div>
|
</div>
|
<div class="outDiv eqpStatus">
|
<div
|
style="
|
font-size: 26px;
|
color: white;
|
background-color: #1595ea;
|
width: 180px;
|
line-height: 60px;
|
text-align: center;
|
border-radius: 10px;
|
font-weight: bold;
|
"
|
>
|
</div>
|
</div>
|
</div>
|
<div style="width:420px; height: 400px; padding-top: 20px;padding-left: 20px">
|
<div :id="'moisChart'+props.num" style="width: 420px; height: 380px"></div>
|
</div>
|
</div>
|
<dv-decoration-11 style="width:360px;height:70px;font-size: 26px;">{{ realData?.herbName || '暂无' }}</dv-decoration-11>
|
<div style="width: 100%; height: 440px">
|
<div class="ganzaoji" @click="showFault" :style="{ 'background-image': 'url(' + getStatusImageUrl(statusGif) + ')' }">
|
<div v-show="zuoqianjiting" class="error-div" style=" top:309px; left:418px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style="width: 70px;">
|
左前急停
|
</div>
|
</div>
|
<div v-show="shebeijiting" class="error-div" style=" top:111px; left:484px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 106px;">
|
设备急停(总)
|
</div>
|
</div>
|
<div v-show="chuliaojiting" class="error-div" style=" top:300px; left:129px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 70px;">
|
出料急停
|
</div>
|
</div>
|
<div v-show="mianbanjiting" class="error-div" style=" top:258px; left:659px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 70px;">
|
面板急停
|
</div>
|
</div>
|
<div v-show="fengxiangsheng" class="error-div" style=" top:294px; left:517px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 86px;">
|
风箱升异常
|
</div>
|
</div>
|
<div v-show="fengxiangjiang" class="error-div" style=" top:319px; left:517px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 86px;">
|
风箱降异常
|
</div>
|
</div>
|
<div v-show="fengjiguoliu" class="error-div" style=" top:335px; left:655px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 70px;">
|
风机过流
|
</div>
|
</div>
|
<div v-show="guntongsheng" class="error-div" style=" top:198px; left:517px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 86px;">
|
滚筒升异常
|
</div>
|
</div>
|
<div v-show="guntongjiang" class="error-div" style=" top:223px; left:517px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 86px;">
|
滚筒降异常
|
</div>
|
</div>
|
<div v-show="guntongguoliu" class="error-div" style=" top:209px; left:642px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 70px;">
|
滚筒过流
|
</div>
|
</div>
|
<div v-show="wendubaojing" class="error-div" style=" top:234px; left:659px">
|
<div class="blingbling error-marker" ></div>
|
<div class="error-msg" style=" width: 70px;">
|
温度报警
|
</div>
|
</div>
|
|
<div v-show="zuoqianmen" class="error-div" style=" top:388px; left:415px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 80px;">
|
左前门报警
|
</div>
|
</div>
|
<div v-show="zuohoumen" class="error-div" style=" top:367px; left:587px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 80px;">
|
左后门报警
|
</div>
|
</div>
|
<div v-show="youqianmen" class="error-div" style=" top:388px; left:284px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 80px;">
|
右前门报警
|
</div>
|
</div>
|
<div v-show="youhoumen" class="error-div" style=" top:367px; left:478px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 80px;">
|
右后门报警
|
</div>
|
</div>
|
|
<div v-show="guntongbuzaigaowei" class="error-div" style=" top:173px; left:517px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 100px;">
|
滚筒不在高位
|
</div>
|
</div>
|
<div v-show="fengxiangbuzaigaowei" class="error-div" style=" top:269px; left:517px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 100px;">
|
风箱不在高位
|
</div>
|
</div>
|
<div v-show="fengxiangbuzaidiwei" class="error-div" style=" top:343px; left:517px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 100px;">
|
风箱不在低位
|
</div>
|
</div>
|
<div v-show="jiareweichuanganqi" class="error-div" style=" top:283px; left:642px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
加热位传感器报警
|
</div>
|
</div>
|
<div v-show="zuoqianfengxianggaowei" class="error-div" style=" top:334px; left:362px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左前风箱不在高位
|
</div>
|
</div>
|
<div v-show="zuoqianfengxiangdiwei" class="error-div" style=" top:334px; left:362px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左前风箱不在低位
|
</div>
|
</div>
|
<div v-show="zuohoufengxianggaowei" class="error-div" style=" top:309px; left:642px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左后风箱不在高位
|
</div>
|
</div>
|
<div v-show="zuohoufengxiangdiwei" class="error-div" style=" top:309px; left:642px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左后风箱不在低位
|
</div>
|
</div>
|
<div v-show="youqianfengxianggaowei" class="error-div" style=" top:272px; left:300px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右前风箱不在高位
|
</div>
|
</div>
|
<div v-show="youqianfengxiangdiwei" class="error-div" style=" top:272px; left:300px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右前风箱不在低位
|
</div>
|
</div>
|
<div v-show="youhoufengxianggaowei" class="error-div" style=" top:246px; left:506px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右后风箱不在高位
|
</div>
|
</div>
|
<div v-show="youhoufengxiangdiwei" class="error-div" style=" top:246px; left:506px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右后风箱不在低位
|
</div>
|
</div>
|
<div v-show="zuoqianguntongdiwei" class="error-div" style=" top:175px; left:358px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左前滚筒不在低位
|
</div>
|
</div>
|
<div v-show="zuohouguntongdiwei" class="error-div" style=" top:158px; left:643px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
左后滚筒不在低位
|
</div>
|
</div>
|
<div v-show="youqianguntongdiwei" class="error-div" style=" top:150px; left:268px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右前滚筒不在低位
|
</div>
|
</div>
|
<div v-show="youhouguntongdiwei" class="error-div" style=" top:135px; left:506px">
|
<div class="blingbling warn-marker" ></div>
|
<div class="warn-msg" style=" width: 126px;">
|
右后滚筒不在低位
|
</div>
|
</div>
|
|
</div>
|
</div>
|
<div style="display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 0 20px; font-size: 20px;">
|
<div>电能消耗: {{realData?.watt | 0}} Kwh</div>
|
<dv-decoration-7 style="width:300px;height:80px;font-size: 26px;">{{ statusTxt }}</dv-decoration-7>
|
<div>蒸汽消耗: {{realData?.steam | 0}} m³</div>
|
</div>
|
</div>
|
</dv-border-box-7>
|
</div>
|
|
</div>
|
</template>
|
|
<script setup lang="ts">
|
|
|
import { useFullscreen } from '@vueuse/core'
|
import { BorderBox7 as DvBorderBox7 } from '@kjgl77/datav-vue3'
|
import { router } from '/@/router'
|
import { onMounted, ref, onUnmounted } from 'vue'
|
import { Progress } from 'ant-design-vue'
|
import * as echarts from 'echarts'
|
import 'echarts-liquidfill'
|
import { Icon, IconPicker, SvgIcon } from '/@/components/Icon/index'
|
import { defHttp } from '/@/utils/http/axios'
|
import { queryById, listAll } from '../api/DryEquipment.api'
|
import { dryEquipment } from '../dataDefine/DryEquipment.data'
|
import { useUserStore } from '/@/store/modules/user'
|
import { getTenantId, getToken } from '/@/utils/auth'
|
|
// 声名从上级传递的参数
|
const props = defineProps({
|
num: {
|
type: Number,
|
default: 0,
|
},
|
})
|
|
const domRef = ref<Nullable<HTMLElement>>(null)
|
const { enter, toggle, exit, isFullscreen } = useFullscreen()
|
|
const { toggle: toggleDom } = useFullscreen(domRef)
|
const Timer = ref()
|
|
const isError = ref(false)
|
const isWarning = ref(false)
|
const eqps = ref([] as dryEquipment[])
|
|
const eqp = ref({} as dryEquipment)
|
console.log('props.num', props.num)
|
const eqpNum = ref(props.num || 0)
|
|
const userStore = useUserStore()
|
const realData = ref({})
|
const standard = ref({
|
xiaolv: 220,
|
xlMin: 200,
|
zhengqi: 50,
|
zqMin: 45,
|
dian: 8,
|
dMin: 7.5,
|
})
|
|
const position = ref(1)
|
//realData.value.tempValue = [0, 100]
|
realData.value.mois = [0.5, 0.35, 0.2]
|
statusGif = 'tmrefeng2'
|
realData.value.herbImage = 'yaocai1.png'
|
var moisChart: echarts.ECharts
|
|
//----------------error----------------
|
const shebeijiting = ref(false)
|
const chuliaojiting = ref(false)
|
const zuoqianjiting = ref(false)
|
const mianbanjiting = ref(false)
|
const fengxiangsheng = ref(false)
|
const fengxiangjiang = ref(false)
|
const fengjiguoliu = ref(false)
|
const guntongsheng = ref(false)
|
const guntongjiang = ref(false)
|
const guntongguoliu = ref(false)
|
const wendubaojing = ref(false)
|
//--------------warning------------
|
const zuoqianmen = ref(false)
|
const zuohoumen = ref(false)
|
const youqianmen = ref(false)
|
const youhoumen = ref(false)
|
const guntongbuzaigaowei = ref(false)
|
const fengxiangbuzaigaowei = ref(false)
|
const fengxiangbuzaidiwei = ref(false)
|
const jiareweichuanganqi = ref(false)
|
const zuoqianfengxianggaowei = ref(false)
|
const zuohoufengxianggaowei = ref(false)
|
const youqianfengxianggaowei = ref(false)
|
const youhoufengxianggaowei = ref(false)
|
const zuoqianfengxiangdiwei = ref(false)
|
const zuohoufengxiangdiwei = ref(false)
|
const youqianfengxiangdiwei = ref(false)
|
const youhoufengxiangdiwei = ref(false)
|
const zuoqianguntongdiwei = ref(false)
|
const zuohouguntongdiwei = ref(false)
|
const youqianguntongdiwei = ref(false)
|
const youhouguntongdiwei = ref(false)
|
|
function initCharts() {
|
let domId = 'moisChart'+props.num
|
|
let chartDom: HTMLElement = document.getElementById(domId) as HTMLElement
|
|
moisChart = echarts.init(chartDom)
|
|
|
const option = {
|
color: ['green', 'red'],
|
title: {
|
text: '含水率/温度趋势',
|
textStyle: {
|
color: '#fff',
|
fontSize: 20,
|
},
|
},
|
tooltip: {
|
trigger: 'axis',
|
},
|
grid: {
|
left: 50,
|
right: 70,
|
top: 50,
|
bottom: 60,
|
},
|
legend: {
|
right: 60,
|
textStyle: {
|
color: '#fff',
|
fontSize: 20,
|
},
|
},
|
// toolbox: {
|
// show: true,
|
// feature: {
|
// dataZoom: {
|
// yAxisIndex: 'none',
|
// },
|
// dataView: { readOnly: false },
|
// magicType: { type: ['line', 'bar'] },
|
// restore: {},
|
// saveAsImage: {},
|
// },
|
// },
|
xAxis: {
|
type: 'value',
|
axisLabel: {
|
color: '#fff',
|
fontSize: 17,
|
},
|
//boundaryGap: false,
|
// data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
|
min: 0,
|
max: function (value) {
|
if (value.max < 100) {
|
return 100
|
} else {
|
return value.max
|
}
|
},
|
splitLine: {
|
lineStyle: {
|
type: 'dashed',
|
color: ['#8d8d8d'],
|
},
|
},
|
},
|
yAxis: {
|
type: 'value',
|
boundaryGap: ['10%', '10%'],
|
axisLabel: {
|
color: '#fff',
|
fontSize: 17,
|
},
|
splitLine: {
|
lineStyle: {
|
type: 'dashed',
|
color: ['#8d8d8d'],
|
},
|
},
|
// min: 0,
|
// max: function (value) {
|
// if (value.max < 100) {
|
// return 100
|
// } else {
|
// return value.max
|
// }
|
// },
|
},
|
// yAxis: {
|
// type: 'value',
|
// axisLabel: {
|
// formatter: '{value} °C',
|
// },
|
// },
|
series: [
|
{
|
name: '含水率',
|
type: 'line',
|
smooth: true,
|
symbol: 'none',
|
data: [
|
|
],
|
lineStyle: {
|
width: 1,
|
},
|
markLine: {
|
data: [{ type: 'average', name: 'Avg' }],
|
},
|
areaStyle: {
|
opacity: 0.2,
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
{
|
offset: 0,
|
color: 'rgb(128, 255, 165)',
|
},
|
{
|
offset: 1,
|
color: 'rgb(1, 191, 236)',
|
},
|
]),
|
},
|
},
|
{
|
name: '温度',
|
type: 'line',
|
smooth: true,
|
symbol: 'none',
|
data: [
|
|
],
|
lineStyle: {
|
width: 1,
|
},
|
areaStyle: {
|
opacity: 0.2,
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
{
|
offset: 0,
|
color: 'rgb(255, 0, 135)',
|
},
|
{
|
offset: 1,
|
color: 'rgb(135, 0, 157)',
|
},
|
]),
|
},
|
// markLine: {
|
// data: [
|
// { type: 'average', name: 'Avg' },
|
// [
|
// {
|
// symbol: 'none',
|
// x: '90%',
|
// yAxis: 'max',
|
// },
|
// {
|
// symbol: 'circle',
|
// label: {
|
// position: 'start',
|
// formatter: 'Max',
|
// },
|
// type: 'max',
|
// name: '最高点',
|
// },
|
// ],
|
// ],
|
// },
|
},
|
],
|
}
|
|
option && moisChart.setOption(option)
|
|
}
|
|
// 动态读取图片
|
function getStatusImageUrl(name: string) {
|
//
|
if (isWarning.value || isError.value) {
|
return new URL(`/src/assets/images/dry/ganzaoji-x.png`, import.meta.url).href
|
} else if (name =='zanting') {
|
return new URL(`/src/assets/images/dry/${name}.png`, import.meta.url).href
|
} else {
|
return new URL(`/src/assets/images/dry/${name}.gif`, import.meta.url).href
|
}
|
|
}
|
|
function listAllEqp() {
|
let tenantId = getTenantId()
|
defHttp.get({ url: '/dry/real/queryAllEqps', params: { tenantId: tenantId,enable: 'Y' } })
|
.then((result) => {
|
//console.log(`output->result`, result)
|
eqps.value = result
|
// result.forEach((item) => {
|
// eqpCodes.push(item.code)
|
// })
|
queryRealTime()
|
setTimeout(initCharts, 500)
|
})
|
.catch((err) => {
|
//console.log(`output->err`, err)
|
})
|
}
|
|
var num = eqpNum.value
|
|
function changeEqp() {
|
//console.log("changeEqp::",eqps.value.length);
|
num++
|
if (eqps.value.length > 0) {
|
var i = num % eqps.value.length
|
//eqp.value = eqps.value[i]
|
// console.log("777",i);
|
eqpNum.value = i
|
//console.log("888",eqp.value);
|
queryRealTime()
|
//setTimeout(initCharts, 500)
|
}
|
}
|
|
// function queryEqpsReal() {
|
|
// if (eqps.value.length > 0) {
|
// var i = num%eqps.value.length
|
// eqp.value = eqps[i]
|
// console.log("777",i);
|
// console.log("888",eqp.value);
|
// queryRealTime()
|
// //setTimeout(initCharts, 500)
|
// }
|
// num ++;
|
// }
|
|
var shangliaoFlag = false
|
var statusGif = 'tmrefeng2'
|
var statusTxt = '正在干燥'
|
|
function chaiwangban() {
|
statusGif = 'chaiwangban-1'
|
setTimeout(shangliao, 7000)
|
}
|
function showFault () {
|
console.log('showFault')
|
router.push({ path: '/bigFault', query: { num: num } })
|
|
}
|
function shangliao() {
|
statusGif = 'shangliao-N'
|
setTimeout(() => {
|
statusGif = 'zhuangwangban'
|
setTimeout(() => {
|
statusGif = 'guanmen1'
|
setTimeout(() => {
|
shangliaoFlag = false
|
}, 4000)
|
}, 7000)
|
}, 15000)
|
}
|
|
function queryRealTime() {
|
if (eqp.value) {
|
eqp.value = eqps.value[eqpNum.value]
|
// console.log("888",eqp.value);
|
let tenantId = getTenantId()
|
let eqpCode = eqp.value.code
|
let queryRealTimeUrl = '/dry/real/getRealTimeData'
|
defHttp.get({ url: queryRealTimeUrl, params: { tenantid: tenantId, machineid: eqpCode } }).then((res) => {
|
if (res && res.trendVo) {
|
//console.log(`output->re11s`, res)
|
// res.tempValue = [res.windTemp, 100]
|
//res.percent = ((res.dryTime / res.et) * 100).toFixed(2)
|
/**水滴图含水量 */
|
res.mois = [
|
(res.trendVo.moisture / 100).toFixed(2),
|
(res.trendVo.moisture / 100 / 1.5).toFixed(2),
|
(res.trendVo.moisture / 100 / 3).toFixed(2),
|
]
|
|
/**温度环形图 */
|
|
/**风机频率环形图 */
|
// if (fanFreqChart) {
|
// fanFreqChart.setOption({
|
// series: [
|
// {
|
// data: [
|
// {
|
// value: res.trendVo.fanFrequency,
|
// },
|
// ],
|
// },
|
// ],
|
// })
|
// }
|
/**干燥进度、走势与阶段效率和阶段消耗 */
|
if (res && res.detailList) {
|
var progressSeries = []
|
|
var zhengQiXiaoHao = []
|
var dianNengXiaoHao = []
|
var ganZaoXiaoLv = []
|
var totalTime = 0
|
var beforeWeight = 0
|
res.moisList = []
|
beforeWeight = res.originWeight
|
//console.log(`output->res`, res)
|
res.detailList.forEach((item) => {
|
//console.log(`output->bef`, beforeWeight)
|
//console.log(`output->cur`, item.weight)
|
res.moisList.push([item.totalTime, item.moisture])
|
// console.log(`output->totalTime,item.totalTime`, totalTime, item.totalTime)
|
var curDryTime = item.totalTime - totalTime
|
|
if (curDryTime > 0) {
|
progressSeries.push({
|
name: item.moisture,
|
type: 'bar',
|
stack: 'total',
|
label: {
|
show: true,
|
},
|
emphasis: {
|
focus: 'series',
|
},
|
data: [item.totalTime - totalTime],
|
})
|
ganZaoXiaoLv.push([curDryTime / 2 + totalTime, (((beforeWeight - item.weight) / curDryTime) * 60).toFixed(1)])
|
|
totalTime = item.totalTime
|
}
|
beforeWeight = item.weight
|
})
|
|
if (res.remain) {
|
if (res.dryTime - totalTime > 0) {
|
progressSeries.push({
|
name: '当前',
|
type: 'bar',
|
stack: 'total',
|
label: {
|
show: true,
|
},
|
emphasis: {
|
focus: 'series',
|
},
|
data: [
|
{
|
value: res.dryTime - totalTime,
|
},
|
],
|
})
|
}
|
|
// ganZaoXiaoLv.push([totalTime + res.remain,eqp.value.dryEfficiency])
|
// console.log(`output->res.remain`, res.remain)
|
// console.log(`output->res.dryTime`, res.dryTime)
|
// console.log(`output->totalTime`, totalTime)
|
// 干燥剩余时间=工单预计剩余-(当前干燥时间-最后一次记录干燥时间)
|
res.totalRemain = res.remain - (res.dryTime - totalTime) > 0 ? res.remain - (res.dryTime - totalTime) : 0
|
progressSeries.push({
|
name: '剩余',
|
type: 'bar',
|
stack: 'total',
|
label: {
|
show: true,
|
},
|
emphasis: {
|
focus: 'series',
|
},
|
data: [
|
{
|
value: res.remain - (res.dryTime - totalTime),
|
itemStyle: {
|
color: '#c0c0c0',
|
},
|
},
|
],
|
})
|
}
|
|
/**干燥进度 */
|
|
|
res.totalTime = totalTime + res.remain
|
console.log("efficAvg::",res.efficAvg);
|
/**干燥效率、消耗 */
|
|
|
res.moisList.push([res.dryTime, res.trendVo.moisture])
|
}
|
|
/**温度趋势 */
|
if (res && res.bellowsTemp) {
|
Array.from(Object.entries(res.bellowsTemp))
|
var arr = Object.keys(res.bellowsTemp)
|
var temArr = []
|
arr.forEach((item) => {
|
temArr.push([item * 1, res.bellowsTemp[item]])
|
})
|
|
//console.log(`output->arr` + JSON.stringify(temArr))
|
res.tempArr = temArr
|
}
|
|
/**干燥过程趋势 */
|
if (moisChart) {
|
//console.log(`output->更新chart`)
|
moisChart.setOption({
|
series: [
|
{
|
data: res.moisList,
|
markLine: {
|
symbol: 'none',
|
data: [
|
{
|
name: '目标',
|
yAxis: res.target,
|
},
|
],
|
label: {
|
formatter: '{b}\n{c}%',
|
color: '#fff',
|
fontSize: 20,
|
},
|
},
|
},
|
{
|
data: res.tempArr,
|
},
|
],
|
})
|
}
|
|
let lastTrend = res.detailList[res.detailList.length-1]
|
/**效率对比图 */
|
if (res.originWeight - lastTrend.weight <= 0) {
|
res.xiaolv = 0
|
} else {
|
res.xiaolv = ((res.originWeight - lastTrend.weight) / lastTrend.totalTime) * 60
|
}
|
res.xiaolv = Number(res.xiaolv)
|
//eqp.value.dryEfficiency = Number(eqp.value.dryEfficiency)
|
if (res.xiaolv > res.efficAvg) {
|
console.log("xiaolv:",res , eqp);
|
res.xlgood = true
|
res.xlsHeight = (res.efficAvg / res.xiaolv) * 100 + '%'
|
res.xlrHeight = '100%'
|
} else if (res.xiaolv < res.efficAvg * 0.9) {
|
res.xlbad = true
|
res.xlsHeight = '100%'
|
res.xlrHeight = (res.xiaolv / res.efficAvg) * 100 + '%'
|
} else {
|
res.xlsHeight = '100%'
|
res.xlrHeight = (res.xiaolv / res.efficAvg) * 100 + '%'
|
}
|
|
/** 蒸汽消耗 */
|
if (res.originWeight - lastTrend.weight <= 0) {
|
res.zhengqi = 0
|
} else {
|
res.zhengqi = lastTrend.steam / (res.originWeight - lastTrend.weight)
|
}
|
res.zhengqi = Number(res.zhengqi)
|
//eqp.value.steamConsumption = Number(eqp.value.steamConsumption)
|
// res.zhengqi = eqp.value.steamConsumption - 3
|
// console.log(res);
|
// console.log('zhengqi:', res.zhengqi);
|
if (res.zhengqi > res.steamAvg) {
|
res.zqbad = true
|
res.zqsHeight = (res.steamAvg / res.zhengqi) * 100 + '%'
|
res.zqrHeight = '100%'
|
} else if (res.zhengqi < res.steamAvg * 0.9) {
|
res.zqgood = true
|
res.zqsHeight = '100%'
|
res.zqrHeight = (res.zhengqi / res.steamAvg) * 100 + '%'
|
} else {
|
res.zqsHeight = '100%'
|
res.zqrHeight = (res.zhengqi / res.steamAvg) * 100 + '%'
|
}
|
|
/** 电能消耗 */
|
if (res.originWeight - lastTrend.weight <= 0) {
|
res.dian = 0
|
} else {
|
res.dian = lastTrend.watt / (res.originWeight - lastTrend.weight)
|
}
|
// res.dian = eqp.value.powerConsumption - 1.5
|
res.dian = Number(res.dian)
|
//eqp.value.powerConsumption = Number(eqp.value.powerConsumption)
|
if (res.dian > res.wattAvg) {
|
console.log("dian::", res.dian,res.wattAvg )
|
res.dnbad = true
|
res.dnsHeight = (res.wattAvg / res.dian) * 100 + '%'
|
res.dnrHeight = '100%'
|
} else if (res.dian < res.wattAvg * 0.9) {
|
res.dngood = true
|
res.dnsHeight = '100%'
|
res.dnrHeight = (res.dian / res.wattAvg) * 100 + '%'
|
} else {
|
res.dnsHeight = '100%'
|
res.dnrHeight = (res.dian / res.wattAvg) * 100 + '%'
|
}
|
|
//console.log('state:::fan::', res.state_fan, 'roller::', res.state_roller, 'windbox::', res.state_windbox)
|
//console.log('===========================')
|
//console.log("state:::state_windbox::", res.state_windbox);
|
|
/**状态/gif动图 */
|
if (!shangliaoFlag) {
|
if (res.orderStatus == 0) {
|
statusGif = 'zanting'
|
statusTxt = '准备'
|
} else if (res.orderStatus == 1) {
|
//todo 实际生产点击一键干燥后才会有工单状态发上来,那时已经上完料,需要确认工单状态
|
shangliaoFlag = true
|
statusGif = 'kaimen1'
|
statusTxt = '上料'
|
setTimeout(chaiwangban, 4000)
|
} else if (res.orderStatus == 2) {
|
statusTxt = res.level
|
statusGif = 'zanting'
|
if (res.level === '准备阶段') {
|
console.log("准备阶段" + statusGif);
|
statusGif = 'zanting'
|
} else if (res.level === '干燥阶段' || res.level === '正在干燥') {
|
statusGif = 'tmrefeng2'
|
} else if (res.level === '翻料阶段') {
|
statusGif = 'fanliao-N'
|
} else if (res.level === '出料阶段') {
|
statusGif = 'chuliao-N'
|
}
|
// if (res.state_fan == 1) {
|
// statusGif = 'tmrefeng2'
|
// statusTxt = '正在干燥'
|
// }
|
|
// if (res.state_roller == 4) {
|
// statusGif = 'fanliao-N'
|
// statusTxt = '正在翻料'
|
// }
|
|
// if (res.state_roller == 5) {
|
// statusGif = 'chuliao-N'
|
// statusTxt = '正在出料'
|
// }
|
|
// if (res.state_windbox == 2 || res.state_windbox == 3) {
|
// statusGif = 'fengxiangsheng-1'
|
// statusTxt = '正在干燥'
|
// }
|
} else if (res.orderStatus == 3) {
|
statusGif = 'zanting'
|
statusTxt = '暂停'
|
} else if (res.orderStatus == 4) {
|
statusGif = 'zanting'
|
statusTxt = '干燥完成'
|
}
|
}
|
|
|
|
res.herbImage = 'yaocai1.png'
|
|
if (res.herbName == '白花蛇舌草') {
|
res.herbImage = 'baihuasheshecao.png'
|
} else if (res.herbName == '糥稻根') {
|
res.herbImage = 'nuodaogen.png'
|
} else if (res.herbName == '淫羊藿') {
|
res.herbImage = 'yinyanghuo.png'
|
} else if (res.herbName == '马齿苋') {
|
res.herbImage = 'machixian.png'
|
} else if (res.herbName == '墨旱莲') {
|
res.herbImage = 'mohanlian.png'
|
} else if (res.herbName == '桑白皮') {
|
res.herbImage = 'sangbaipi.png'
|
}
|
|
|
if (res.fault) {
|
res.isError = true
|
res.errorMsg = res.fault;
|
const faults = res.fault;
|
console.log('errorMsg:', res.fault)
|
if (faults.includes('急停报警')) {
|
shebeijiting.value = true;
|
} else {
|
shebeijiting.value = false;
|
}
|
if (faults.includes('左前急停')) {
|
zuoqianjiting.value = true;
|
} else {
|
zuoqianjiting.value = false;
|
}
|
if (faults.includes('面板急停')) {
|
mianbanjiting.value = true;
|
} else {
|
mianbanjiting.value = false;
|
}
|
if (faults.includes('出料急停')) {
|
chuliaojiting.value = true;
|
} else {
|
chuliaojiting.value = false;
|
}
|
if (faults.includes('温度失控')) {
|
wendubaojing.value = true;
|
} else {
|
wendubaojing.value = false;
|
}
|
if (faults.includes('滚筒升')) {
|
guntongsheng.value = true;
|
} else {
|
guntongjiang.value = false;
|
}
|
if (faults.includes('滚筒降')) {
|
guntongjiang.value = true;
|
} else {
|
guntongjiang.value = false;
|
}
|
if (faults.includes('滚筒电机过流')) {
|
guntongguoliu.value = true;
|
} else {
|
guntongguoliu.value = false;
|
}
|
if (faults.includes('风箱升')) {
|
fengxiangsheng.value = true;
|
} else {
|
fengxiangsheng.value = false;
|
}
|
if (faults.includes('风箱降')) {
|
fengxiangjiang.value = true;
|
} else {
|
fengxiangjiang.value = false;
|
}
|
if (faults.includes('风箱风机过流')) {
|
fengjiguoliu.value = true;
|
} else {
|
fengjiguoliu.value = false;
|
}
|
}
|
else {
|
res.isError = false
|
shebeijiting.value = false
|
chuliaojiting.value = false
|
zuoqianjiting.value = false
|
mianbanjiting.value = false
|
fengxiangsheng.value = false
|
fengxiangjiang.value = false
|
fengjiguoliu.value = false
|
guntongsheng.value = false
|
guntongjiang.value = false
|
guntongguoliu.value = false
|
wendubaojing.value = false
|
}
|
|
if (res.warning) {
|
res.isWarning = true
|
res.warnMsg = res.warning
|
const warnings = res.warning;
|
console.log('warnMsg:', res.warning)
|
if (warnings.includes('左前门')) {
|
zuoqianmen.value = true;
|
} else {
|
zuoqianmen.value = false;
|
}
|
if (warnings.includes('右前门')) {
|
youqianmen.value = true;
|
} else {
|
youqianmen.value = false;
|
}
|
if (warnings.includes('左后门')) {
|
zuohoumen.value = true;
|
} else {
|
zuohoumen.value = false;
|
}
|
if (warnings.includes('右后门')) {
|
youhoumen.value = true;
|
} else {
|
youhoumen.value = false;
|
}
|
if (warnings.includes('滚筒不在高位')) {
|
guntongbuzaigaowei.value = true;
|
} else {
|
guntongbuzaigaowei.value = false;
|
}
|
if (warnings.includes('风箱不在低位')) {
|
fengxiangbuzaidiwei.value = true;
|
} else {
|
fengxiangbuzaidiwei.value = false;
|
}
|
if (warnings.includes('风箱不在高位')) {
|
fengxiangbuzaigaowei.value = true;
|
} else {
|
fengxiangbuzaigaowei.value = false;
|
}
|
if (warnings.includes('加热位传感器')) {
|
jiareweichuanganqi.value = true;
|
} else {
|
jiareweichuanganqi.value = false;
|
}
|
if (warnings.includes('左前风箱高位传感器')) {
|
zuoqianfengxianggaowei.value = true;
|
} else {
|
zuoqianfengxianggaowei.value = false;
|
}
|
if (warnings.includes('右前风箱高位传感器')) {
|
youqianfengxianggaowei.value = true;
|
} else {
|
youqianfengxianggaowei.value = false;
|
}
|
if (warnings.includes('左后风箱高位传感器')) {
|
zuohoufengxianggaowei.value = true;
|
} else {
|
zuohoufengxianggaowei.value = false;
|
}
|
if (warnings.includes('右后风箱高位传感器')) {
|
youhoufengxianggaowei.value = true;
|
} else {
|
youhoufengxianggaowei.value = false;
|
}
|
if (warnings.includes('左前风箱低位传感器')) {
|
zuoqianfengxiangdiwei.value = true;
|
} else {
|
zuoqianfengxiangdiwei.value = false;
|
}
|
if (warnings.includes('右前风箱低位传感器')) {
|
youqianfengxiangdiwei.value = true;
|
} else {
|
youqianfengxiangdiwei.value = false;
|
}
|
if (warnings.includes('左后风箱低位传感器')) {
|
zuohoufengxiangdiwei.value = true;
|
} else {
|
zuohoufengxiangdiwei.value = false;
|
}
|
if (warnings.includes('右后风箱低位传感器')) {
|
youhoufengxiangdiwei.value = true;
|
} else {
|
youhoufengxiangdiwei.value = false;
|
}
|
if (warnings.includes('左前滚筒低位传感器')) {
|
zuoqianguntongdiwei.value = true;
|
} else {
|
zuoqianguntongdiwei.value = false;
|
}
|
if (warnings.includes('右前滚筒低位传感器')) {
|
youqianguntongdiwei.value = true;
|
} else {
|
youqianguntongdiwei.value = false;
|
}
|
if (warnings.includes('左后滚筒低位传感器')) {
|
zuohouguntongdiwei.value = true;
|
} else {
|
zuohouguntongdiwei.value = false;
|
}
|
if (warnings.includes('右后滚筒低位传感器')) {
|
youhouguntongdiwei.value = true;
|
} else {
|
youhouguntongdiwei.value = false;
|
}
|
}
|
else {
|
res.isWarning = false
|
zuoqianmen.value = false;
|
zuohoumen.value = false;
|
youqianmen.value = false;
|
youhoumen.value = false;
|
guntongbuzaigaowei.value = false;
|
fengxiangbuzaigaowei.value = false;
|
fengxiangbuzaidiwei.value = false;
|
jiareweichuanganqi.value = false;
|
zuoqianfengxianggaowei.value = false;
|
zuohoufengxianggaowei.value = false;
|
youqianfengxianggaowei.value = false;
|
youhoufengxianggaowei.value = false;
|
zuoqianfengxiangdiwei.value = false;
|
zuohoufengxiangdiwei.value = false;
|
youqianfengxiangdiwei.value = false;
|
youhoufengxiangdiwei.value = false;
|
zuoqianguntongdiwei.value = false;
|
zuohouguntongdiwei.value = false;
|
youqianguntongdiwei.value = false;
|
youhouguntongdiwei.value = false;
|
}
|
isError.value = res.isError
|
isWarning.value = res.isWarning
|
} else {
|
res = {
|
mois: [],
|
gif: 'tmrefeng2',
|
herbImage: 'yaocai1.png',
|
}
|
}
|
|
// console.log(`output->res`, res.detailList[res.detailList.length-1])
|
realData.value = res
|
})
|
}
|
}
|
|
|
|
function back() {
|
router.back()
|
}
|
|
listAllEqp()
|
//queryEqp()
|
// DOM挂载完成后渲染图表
|
onMounted(() => {
|
Timer.value = setInterval(queryRealTime, 3000)
|
|
})
|
|
onUnmounted(() => {
|
clearInterval(Timer.value)
|
|
Timer.value = null
|
|
})
|
</script>
|
|
<style scoped>
|
.eqpBox {
|
height: 100%;
|
}
|
.eqpRow {
|
}
|
.eqpImage {
|
height: 1080px;
|
width: 1920px;
|
background-image: url(/src/assets/images/dry/bg.png);
|
background-repeat: no-repeat;
|
color: white;
|
/*background-position: 160px 280px; */
|
/* background-color: red; */
|
background-size: 120%;
|
padding: 10px;
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-start;
|
}
|
|
.leftEqp {
|
height: 1080px;
|
width: 945px;
|
border: 1px solid black;
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-start;
|
|
/* background-color: white;
|
background-image: url(/src/assets/images/dry/shebei1.png);
|
background-repeat: no-repeat;
|
background-size: 125%;
|
border-radius: 10px;
|
background-position: -119px 293px; */
|
}
|
|
.leftTop {
|
height: 990px;
|
width: 945px;
|
display: flex;
|
justify-content: center;
|
align-content: flex-start;
|
//background-image: url(/src/assets/images/dry/ganzaoji-x.png);
|
background-repeat: no-repeat;
|
background-size: 79%;
|
border-radius: 10px;
|
flex-wrap: wrap;
|
background-position: 85px 279px;
|
}
|
.leftMid {
|
width: 850px;
|
height: 300px;
|
/* border: 1px solid; */
|
margin-top: 10px;
|
border-radius: 10px;
|
/* background: white; */
|
}
|
.mainInfo {
|
line-height: 33px;
|
padding-left: 10px;
|
font-size: 30px;
|
color: white;
|
}
|
.subhead {
|
color: #a19f9c;
|
font-size: 16px;
|
padding-left: 10px;
|
}
|
|
.mainInfo2 {
|
line-height: 20px;
|
padding-left: 0px;
|
font-size: 16px;
|
}
|
.subhead2 {
|
color: #a19f9c;
|
font-size: 10px;
|
padding-left: 0px;
|
}
|
.zhengqi {
|
height: 180px;
|
width: 200px;
|
background-image: url(/src/assets/images/dry/liuliangji.png);
|
background-repeat: no-repeat;
|
background-size: 160px;
|
/* border-radius: 10px; */
|
background-position: 17px -6px;
|
}
|
|
.liuliangji {
|
}
|
.leftData {
|
height: 250px;
|
width: 120px;
|
}
|
.rightChart {
|
height: 270px;
|
width: 170px;
|
margin-top: -30px;
|
}
|
.leftTop0 {
|
height: 400px;
|
width: 500px;
|
padding-left: 10px;
|
display: flex;
|
justify-content: space-between;
|
align-content: flex-start;
|
flex-wrap: wrap;
|
}
|
.leftTop1 {
|
width: 250px;
|
height: 200px;
|
text-align: center;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
font-size: 30px;
|
color: #727272;
|
}
|
.leftTop2 {
|
width: 250px;
|
height: 200px;
|
text-align: center;
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
font-size: 30px;
|
color: #727272;
|
}
|
.leftTop3 {
|
width: 340px;
|
height: 200px;
|
/* background-image: url(/src/assets/images/dry/fanliao.gif); */
|
background-repeat: no-repeat;
|
background-position: 0px 20px;
|
background-size: 300px;
|
border-radius: 50px;
|
}
|
|
.ganzaoji {
|
background-repeat: no-repeat;
|
background-position: 110px 15px;
|
background-size: 685px;
|
width: 960px;
|
height: 440px;
|
position: absolute;
|
}
|
|
.eqpStatus {
|
width: 960px;
|
|
}
|
.rightInfo {
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-start;
|
height: 1060px;
|
width: 700px;
|
}
|
|
.rightTop {
|
display: flex;
|
height: 300px;
|
padding-left: 10px;
|
}
|
.rightTwo {
|
display: flex;
|
flex-wrap: wrap;
|
}
|
|
.infoChart {
|
width: 340px;
|
height: 300px;
|
/* background: white; */
|
margin-left: 10px;
|
margin-top: 10px;
|
border-radius: 10px;
|
}
|
.chartTittle {
|
width: 340px;
|
height: 30px;
|
font-size: 16px;
|
display: flex;
|
justify-content: space-between;
|
padding: 15px 15px;
|
}
|
.chartInfo {
|
width: 60px;
|
height: 180px;
|
}
|
|
.compareBar {
|
width: 55px;
|
height: 140px;
|
}
|
.margintop-30 {
|
margin-top: -30px;
|
}
|
|
.barTop {
|
width: 55px;
|
height: 30px;
|
}
|
.barBack {
|
width: 30px;
|
height: 100px;
|
/* border: 1px solid black; */
|
display: flex;
|
flex-wrap: wrap;
|
align-content: flex-end;
|
}
|
.barDiv {
|
width: 100%;
|
|
background-color: #1595ea;
|
}
|
.bad {
|
background-color: #973535;
|
}
|
.rightLabel {
|
width: 110px;
|
display: flex;
|
justify-content: space-between;
|
}
|
.label {
|
color: white;
|
text-align: center;
|
width: 50px;
|
border-radius: 4px;
|
height: 20px;
|
font-size: 10px;
|
line-height: 21px;
|
}
|
.good {
|
background-color: #0d6e24;
|
}
|
|
.mainInfo3 {
|
font-size: 24px;
|
}
|
.herbInfo {
|
width: 340px;
|
height: 440px;
|
color: #727272;
|
}
|
|
.curEqp {
|
width: 340px;
|
height: 170px;
|
|
/* background: white;
|
border-radius: 10px; */
|
}
|
.curHerb {
|
margin-top: 10px;
|
width: 340px;
|
height: 260px;
|
/* background: white;
|
border-radius: 10px; */
|
|
background-repeat: no-repeat;
|
background-size: 200px;
|
background-position: 0px 10px;
|
}
|
.tempMoisChart {
|
width: 500px;
|
height: 300px;
|
/* background: white; */
|
|
padding: 20px;
|
border-radius: 10px;
|
}
|
.topLeft {
|
margin: 20px 40px 60px 20px;
|
padding: 15px;
|
/* background: white; */
|
border-radius: 10px;
|
height: 325px;
|
width: 440px;
|
/* background-image: url(/src/assets/images/dry/yaocai.jpg); */
|
background-repeat: no-repeat;
|
background-size: 164px 132px;
|
background-position: 239px 65px;
|
display: flex;
|
}
|
.topMid {
|
margin: 20px 20px 60px 40px;
|
/* background: white; */
|
border-radius: 10px;
|
background-image: url(/src/assets/images/dry/fanliao.gif);
|
background-repeat: no-repeat;
|
background-position: 0px 20px;
|
background-size: 400px;
|
width: 400px;
|
|
padding: 20px;
|
}
|
.topRight {
|
margin: 20px 20px 60px 20px;
|
/* background: white; */
|
border-radius: 10px;
|
width: 700px;
|
padding: 20px;
|
}
|
.midLeft {
|
height: 450px;
|
width: 600px;
|
display: flex;
|
padding: 0 20px 20px 20px;
|
}
|
.midMid {
|
width: 500px;
|
padding-top: 50px;
|
}
|
|
.midRight {
|
background-image: url(/src/assets/images/dry/fengjixz.gif);
|
background-repeat: no-repeat;
|
background-position: 150px 260px;
|
background-size: 120px 120px;
|
width: 600px;
|
}
|
|
.shangJianTou {
|
margin-left: 140px;
|
width: 70px;
|
height: 100px;
|
background-image: url(/src/assets/images/dry/shangjiantoutou.gif);
|
background-repeat: no-repeat;
|
background-position: 0px 0px;
|
background-size: 70px 100px;
|
}
|
|
.zoujiantou {
|
margin-left: 225px;
|
margin-top: 30px;
|
width: 100px;
|
height: 70px;
|
background-image: url(/src/assets/images/dry/zuojiantou.gif);
|
background-repeat: no-repeat;
|
background-position: 0px 0px;
|
background-size: 100px 70px;
|
}
|
.fault {
|
padding: 10px;
|
height: 60px;
|
font-size: 26px;
|
width: 100%;
|
text-align: right;
|
color: red;
|
}
|
.eqpName {
|
padding: 20px;
|
|
height: 160px;
|
}
|
|
.formula {
|
display: flex;
|
width: 340px;
|
height: 40px;
|
padding: 0 20px;
|
justify-content: space-around;
|
justify-items: center;
|
}
|
|
.formulaItem {
|
display: flex;
|
justify-content: center;
|
width: 85px;
|
height: 40px;
|
}
|
|
.eqpInfoText {
|
font-size: 18px;
|
font-weight: bold;
|
}
|
|
:deep() .ant-slider-mark-text {
|
padding-left: 15px;
|
font-size: 10px;
|
}
|
:deep() .ant-slider-mark-text::before {
|
content: '';
|
display: block;
|
width: 6px;
|
height: 1px;
|
background-color: #1890ff;
|
|
position: absolute;
|
top: 10px;
|
left: 0px;
|
}
|
:deep() .ant-slider-rail {
|
width: 10px !important;
|
border-radius: 6px 6px 0 0;
|
background: linear-gradient(to top, #ce0000 0%, #ce0000 40%, #ce0000 75%, rgb(160, 160, 160) 100%);
|
}
|
:deep() .ant-slider-track {
|
background: rgb(216, 216, 216);
|
|
height: 20px;
|
width: 10px !important;
|
border-radius: 6px 6px 0 0;
|
}
|
:deep() .ant-slider-track:hover {
|
}
|
:deep() .ant-slider-handle {
|
display: none;
|
}
|
:deep() .ant-slider-dot {
|
display: none;
|
}
|
:deep() .ant-slider-step {
|
width: 10px !important;
|
}
|
:deep() .ant-slider-step > :first-child {
|
display: block !important;
|
width: 30px !important;
|
height: 30px !important;
|
bottom: -26px !important;
|
left: -6px;
|
border: none;
|
background: #ce0000;
|
}
|
:deep() .progress {
|
padding: 25px 25px;
|
|
width: 360px;
|
display: flex;
|
}
|
:deep() .ant-progress-bg {
|
height: 25px !important;
|
}
|
.outDiv {
|
display: flex;
|
justify-content: center;
|
justify-items: center;
|
}
|
.blingbling {
|
-webkit-animation: scaleout 1.5s infinite ease-in-out;
|
animation: scaleout 1.5s infinite ease-in-out;
|
}
|
.center {
|
display: flex;
|
justify-content: center;
|
justify-items: center;
|
align-items: center;
|
flex-wrap: wrap;
|
text-align: center;
|
}
|
|
.centerText {
|
width: 100%;
|
text-align: center;
|
}
|
|
@-webkit-keyframes scaleout {
|
0% {
|
-webkit-transform: scale(1);
|
}
|
|
100% {
|
-webkit-transform: scale(1.1);
|
opacity: 0;
|
}
|
}
|
|
@keyframes scaleout {
|
0% {
|
transform: scale(1);
|
-webkit-transform: scale(1);
|
}
|
|
100% {
|
transform: scale(1.1);
|
-webkit-transform: scale(1.1);
|
opacity: 0;
|
}
|
}
|
|
.error-div {
|
position: absolute; display: flex; align-items: center;
|
}
|
.error-marker {
|
width: 18px; height: 18px; background: red; border-radius: 50%;
|
}
|
.error-msg {
|
margin-left: 6px;
|
height: 24px;
|
background: gray; border-radius: 5px; font-weight: bold; color: red
|
}
|
.warn-marker {
|
width: 18px; height: 18px; background: orange; border-radius: 50%;
|
}
|
.warn-msg {
|
margin-left: 6px;
|
height: 24px;
|
background: gray; border-radius: 5px; font-weight: bold; color: orange;
|
}
|
|
:deep() .progress {
|
padding: 25px 25px;
|
|
width: 360px;
|
display: flex;
|
}
|
:deep() .ant-progress-bg {
|
height: 36px !important;
|
}
|
:deep() .ant-progress-inner {
|
background-color: rgb(197 197 197 / 84%) !important;
|
}
|
</style>
|