|
@@ -48,7 +48,7 @@
|
|
|
</view>
|
|
|
<My_input ref="MyInput" @customMethod="customMethod">
|
|
|
<view class="change-item" v-if="changeItem.funcname">
|
|
|
- <picker mode="time" :value="changeItem.showValue.begin" :end="changeItem.showValue.end" data-name="begin"
|
|
|
+ <picker mode="time" :value="changeItem.showValue.begin" :end="endTime" data-name="begin"
|
|
|
@change="timeChange">
|
|
|
<view class="row">
|
|
|
<view class="label">
|
|
@@ -92,7 +92,8 @@ export default {
|
|
|
return {
|
|
|
list: [],
|
|
|
changeItem: {},
|
|
|
- timeControl: {}
|
|
|
+ timeControl: {},
|
|
|
+ endTime: null
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -137,10 +138,13 @@ export default {
|
|
|
}
|
|
|
this.list = list;
|
|
|
this.timeControl = this.__proto__.getControlItem(["TimeCon"], newVal)[0]
|
|
|
+ this.timeControl.changeItem = ['TimeConOFF', 'TimeConON']
|
|
|
},
|
|
|
onClick(item) {
|
|
|
- this.$refs.MyInput.openInput(item, true)
|
|
|
+ console.log("分时控制", item)
|
|
|
+ this.$refs.MyInput.openInput(item, item.inputType != "switch")
|
|
|
if (this.changeItem.funcname != item.funcname) this.changeItem = JSON.parse(JSON.stringify(item));
|
|
|
+ this.endTime = this.changeItem.showValue.end == '0:0' ? "" : this.changeItem.showValue.end;
|
|
|
let toBeUpdated = [];
|
|
|
if (item.paramValue.begin) toBeUpdated.push(`开始时间:${item.paramValue.begin}`);
|
|
|
if (item.paramValue.end) toBeUpdated.push(`结束时间:${item.paramValue.begin}`);
|
|
@@ -166,10 +170,10 @@ export default {
|
|
|
if ((showValue.value + '').length == 0) return MyInput.submitBreak("还未设定压力")
|
|
|
showValue.value = (showValue.value - 0).toFixed(params[`T${index}_P`].num_scale)
|
|
|
MyInput.submit(w_functionid, {
|
|
|
- [`T${index}H`]: showValue.begin.split(":")[1],
|
|
|
- [`T${index}M`]: showValue.begin.split(":")[0],
|
|
|
- [`T${index}H1`]: showValue.end.split(":")[1],
|
|
|
- [`T${index}M1`]: showValue.end.split(":")[0],
|
|
|
+ [`T${index}H`]: showValue.begin.split(":")[0],
|
|
|
+ [`T${index}M`]: showValue.begin.split(":")[1],
|
|
|
+ [`T${index}H1`]: showValue.end.split(":")[0],
|
|
|
+ [`T${index}M1`]: showValue.end.split(":")[1],
|
|
|
[`T${index}_P`]: showValue.value,
|
|
|
})
|
|
|
}
|