能效诊断
This commit is contained in:
@@ -0,0 +1,90 @@
|
||||
<template>
|
||||
<div class="fissionAir">
|
||||
<div class="fissionItem">
|
||||
<van-cell-group>
|
||||
<van-field v-model="form.refrigeNum" v-input.numNo0 label="空调数量" type="number" required :rules="[{ required: true, message: '请填写空调数量' }]" input-align="right" placeholder="请输入" />
|
||||
</van-cell-group>
|
||||
</div>
|
||||
<!-- <div class="bottom"><van-button type="primary" block>保存</van-button></div> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { pureDigital } from '../pattern'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
typeId: this.$route.query.typeId,
|
||||
form: {
|
||||
refrigeType:9,
|
||||
refrigeNum: '',
|
||||
},
|
||||
eqid: '',
|
||||
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.$store.commit('pageData/GET_FIS', this.typeId)
|
||||
this.editData()
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.setVuexData()
|
||||
},
|
||||
computed: {
|
||||
pureDigital() {
|
||||
return pureDigital
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
//第二次进入页面查询vuex页面是否存储
|
||||
getVuexData() {
|
||||
for (const key in this.$store.getters.fisData) {
|
||||
for (const keys in this.$data) {
|
||||
if (key == keys) {
|
||||
this.$data[keys] = this.$store.getters.fisData[key]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
//修改覆写数据
|
||||
editData() {
|
||||
const data = this.$store.getters.editData
|
||||
if (data.pageKey) {
|
||||
this.eqid = data.info.equipId
|
||||
|
||||
if (data.info.nxzdRefrigeSystemDTO) {
|
||||
const kt = data.info.nxzdRefrigeSystemDTO.find(
|
||||
(v) => v.refrigeType == 9
|
||||
)
|
||||
if(kt) {
|
||||
this.form.refrigeNum = kt.refrigeNum
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
setVuexData() {
|
||||
this.$store.commit('pageData/CURRENT_FIS_DATA', this.$data)
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.fissionItem {
|
||||
border-radius: 8px;
|
||||
min-height: calc(100vh - 300px);
|
||||
overflow: auto;
|
||||
padding: 0 20px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.bottom {
|
||||
margin-top: 20px;
|
||||
border-radius: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
/deep/ .van-field__error-message {
|
||||
text-align: right;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user