修改冀北现场问题

This commit is contained in:
GGJ
2025-12-12 09:26:56 +08:00
parent b36f765d07
commit 46c55d48ec
38 changed files with 1489 additions and 1370 deletions

View File

@@ -6,20 +6,20 @@
<div class="title">
<span>
稳态综合评估
<el-popover placement="right" :width="150" trigger="hover">
<el-popover placement="right" :width="190" trigger="hover">
<template #reference>
<WarningFilled class="WarningFilled" />
</template>
<div class="text">
<span style="color: #00b07d">优质(4.5 , 5]</span>
<span style="color: #00b07d">无污染0</span>
<br />
<span style="color: #2b7fd3">良好(4 , 4.5]</span>
<span style="color: #3399ff">轻微污染(0 , 100]</span>
<br />
<span style="color: #ffcc33">合格(3 , 4]</span>
<span style="color: #ffcc33">轻度污染(100 , 1000]</span>
<br />
<span style="color: #97017e">较差(2 , 3]</span>
<span style="color: #ff9900">中度污染(1000 , 10000]</span>
<br />
<span style="color: #A52a2a">极差[1 , 2]</span>
<span style="color: #a52a2a">重度污染(10000</span>
</div>
</el-popover>
</span>
@@ -32,7 +32,7 @@
<img src="@/assets/img/FGX.png" />
</div>
<div class="mt10 TJTop">
<img src="@/assets/img/TJ.png" />
<!-- <img src="@/assets/img/TJ.png" />
综合评估得分
<span
:style="{
@@ -53,35 +53,27 @@
}"
>
{{ assessList.score == 3.14159 ? '/' : assessList.score }}
<!-- {{ assessList.level }} -->
</span>
</span> -->
</div>
<div class="evaluate">
<div v-for="item in assessList.children" style="min-width: 50px">
<div v-for="item in assessList" style="min-width: 60px">
<div>
<span class="line"></span>
{{ item.name }}
<span
class="line"
:style="{
background: setColor(item.score)
}"
></span>
{{ item.deptName }}
</div>
<div
style="margin-top: 5px"
:style="{
color:
item.score == 3.14159
? ''
: item.score > 4.5
? '#339966'
: item.score > 4
? '#2b7fd3'
: item.score > 3
? '#ffcc33'
: item.score > 2
? '#97017e'
: item.score > 0
? '#A52a2a'
: ''
color: setColor(item.score)
}"
>
{{ item.score == 3.14159 ? '/' : item.score }}
{{ setVal(item.score) }}
</div>
</div>
</div>
@@ -259,6 +251,7 @@ import temporaryState from './details/temporaryState.vue'
import technique from './details/technique.vue'
import {
getAssessOverview,
getAreaPollution,
getEvaluationOverview,
getEventLevelEvaluation,
getSupervisionData
@@ -314,8 +307,7 @@ const options = ref([
{
label: '负序电流',
value: '9'
},
}
])
const technology: any = ref({})
const harmonicType = ref('6')
@@ -364,17 +356,17 @@ const JDlist = ref([
{
name: '试运行问题',
value: 0
},
}
])
const harmonicList: any = ref([])
const harmonicLineRatio: any = ref(0)
const WTList: any = ref([])
const PollutionList = dictData.getBasicData('Pollution_Calc').filter(item => item.name == '谐波电压')
const value = ref(options1[0].id)
const open = (e: number) => {
if (e == 0) {
evaluateRef.value.open(formRow.value)
evaluateRef.value.open(formRow.value,assessList.value)
} else if (e == 1) {
steadyStateRef.value.open(formRow.value)
} else if (e == 2) {
@@ -383,6 +375,36 @@ const open = (e: number) => {
techniqueRef.value.open(formRow.value)
}
}
const setColor = val => {
return val == 3.14159
? ''
: val > 10000
? '#A52a2a'
: val > 1000
? '#ff9900'
: val > 100
? '#ffcc33'
: val > 0
? '#3399ff'
: val == 0
? '#00B07D'
: ''
}
const setVal = val => {
return val == 3.14159
? '/'
: val > 10000
? '重度污染'
: val > 1000
? '中度污染'
: val > 100
? '轻度污染'
: val > 0
? '轻微污染'
: val == 0
? '无污染'
: ''
}
const info = (row: any) => {
let form = {
...row,
@@ -402,7 +424,7 @@ const info = (row: any) => {
transientChange()
// 综合评估
setTimeout(() => {
getAssessOverview(form).then(res => {
getAreaPollution({ ...form, ids: [PollutionList[0].id] }).then(res => {
assessList.value = res.data
})
}, 300)
@@ -413,8 +435,7 @@ const info = (row: any) => {
JDlist.value[1].value = res.data?.onLineNum || 0
JDlist.value[2].value = res.data?.userNum || 0
JDlist.value[3].value = res.data?.trialRunNum || 0
})
})
}
const harmonicChange = () => {
getEvaluationOverview({ ...formRow.value, harmonicType: harmonicType.value }).then(res => {
@@ -502,7 +523,7 @@ defineExpose({ info, show })
width: 0.5rem;
height: 0.5rem;
border-radius: 0.25rem;
background: var(--el-color-primary);
// background: var(--el-color-primary);
margin-right: 2px;
margin-bottom: 1px;
}