-
设定温度差值:
+
{{ valveTitle === '二通阀门' ? '设定温度差值:' : '设定温度值:' }}
@@ -400,11 +403,12 @@ export default {
},
openPercent() {
// 三通阀百分比数值
- // return 10;
+ // return 100;
// 获取原始值并转成数字
const originVal = Number(
- this.getHotMeterTemp(this.allValveArr, "三通阀输出百分比", 99)
+ this.getHotMeterTemp(this.valveTwoArr, "三通阀门_开度反馈", 4)
);
+ console.log("三通阀百分比", Math.max(0, Math.min(100, originVal)))
// 小于0返回0,大于100返回100,否则返回原值
return Math.max(0, Math.min(100, originVal));
},
@@ -710,10 +714,10 @@ export default {
// 水阀输出值:collectName 包含"二通阀输出百分比"的 collectValue
const outputItem = this.allValveArr.find(
- item => item.collectName.includes("二通阀输出百分比")
+ item => item.collectName.includes(this.valveModule) && item.collectName.includes("输出百分比")
);
if (outputItem) {
- this.valveFormData.valveOutput = outputItem.collectValue;
+ this.valveFormData.valveOutput = (outputItem.collectValue / 10).toFixed(1);
this.valveFormData.valveOutputId = outputItem.id;
}
@@ -756,7 +760,7 @@ export default {
handleBlur() {
},
handleEnter(name, id, value, event) {
- if(!value){
+ if (!value) {
this.$modal.msgWarning("请输入当前值!");
return
}