新增模型测试3个页面

master
jiminglei 1 year ago
parent fe576be6a5
commit e8492176ae
  1. 1
      psdc-ui/package.json
  2. 14
      psdc-ui/src/views/system/building/index.vue
  3. 14
      psdc-ui/src/views/system/kitchen/index.vue

@ -23,6 +23,7 @@
"pinia": "2.0.22",
"vue": "3.2.45",
"vue-cropper": "1.0.3",
"vue-json-viewer": "3",
"vue-router": "4.1.4",
"yarn": "^1.22.19"
},

@ -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

@ -63,7 +63,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">
@ -86,7 +86,7 @@
</div>
<div class="result" v-if="show1">
<div class="til">
最佳方案{{result.planName}}
方案详情
</div>
<div class="info">
<div class="card">
@ -215,6 +215,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)
@ -567,15 +568,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

Loading…
Cancel
Save