|
|
|
@ -68,7 +68,7 @@ |
|
|
|
|
<el-button @click="cancel">重 置</el-button> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
|
<div class="result" v-if="show1"> |
|
|
|
|
<div class="result" v-if="show2"> |
|
|
|
|
<div class="til">方案评分</div> |
|
|
|
|
<div class="point"> |
|
|
|
|
<el-form ref="userRef" label-width="300px"> |
|
|
|
@ -91,7 +91,7 @@ |
|
|
|
|
</div> |
|
|
|
|
<div class="result" v-if="show1"> |
|
|
|
|
<div class="til"> |
|
|
|
|
最佳方案:{{result.planName}} |
|
|
|
|
方案详情 |
|
|
|
|
</div> |
|
|
|
|
<div class="info"> |
|
|
|
|
<div class="card"> |
|
|
|
@ -220,6 +220,7 @@ const arr = ref([1]) |
|
|
|
|
const point = ref(3.7) |
|
|
|
|
const point1 = ref('78') |
|
|
|
|
const show1 = ref(false) |
|
|
|
|
const show2 = ref(false) |
|
|
|
|
const test1 = ref(null) |
|
|
|
|
const test2= ref(null) |
|
|
|
|
const test3 = ref(null) |
|
|
|
@ -577,15 +578,6 @@ const submitForm = () => { |
|
|
|
|
type: 'error', |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
for(let i in res.report.matchedDeviceList) |
|
|
|
|
{ |
|
|
|
|
res.report.matchedDeviceList[i].rat = res.report.matchedDeviceList[i].rating/20 |
|
|
|
|
} |
|
|
|
|
let num = res.report.matchedDeviceList.reduce((prev, curr) => { |
|
|
|
|
return curr.rat > prev.rat ? curr : prev; |
|
|
|
|
}); |
|
|
|
|
res.report.planName = num.planName |
|
|
|
|
res.report.environment = "本次改造方案减排"+res.report.calculate+"吨" |
|
|
|
|
result.value=res.report |
|
|
|
|
textarea.value=res.report |
|
|
|
|
show1.value = true |
|
|
|
|