|
@@ -24,7 +24,7 @@ export default {
|
|
|
if (newVal) {
|
|
|
try {
|
|
|
let nameList = ['Flow control', 'pressure control', 'Config', 'Sleep time', 'Pilot valve', 'Minimum', 'MOP']
|
|
|
- this.$refs.basics.itemList = this.__proto__.getControlItem(nameList, newVal.function, newVal.paramcmdvalues, newVal.params)
|
|
|
+ this.$refs.basics.itemList = this.__proto__.getControlItem(nameList, newVal)
|
|
|
this.$refs.basics.preview = ['Batt4', 'Batt12', 'BatFlow'].map(v => {
|
|
|
return newVal.params[v]
|
|
|
})
|
|
@@ -33,39 +33,41 @@ export default {
|
|
|
}
|
|
|
try {
|
|
|
let division = this.$refs.division;
|
|
|
- division && division.loadData(newVal.function, newVal.paramcmdvalues, newVal.params)
|
|
|
+ division && division.loadData(newVal.function, newVal.paramcmdvalues, newVal.params, newVal.isfeedback)
|
|
|
+ division.timeControl = this.__proto__.getControlItem(["TimeControl"], newVal)[0]
|
|
|
} catch (error) {
|
|
|
console.error("06分时控制", error)
|
|
|
}
|
|
|
try {
|
|
|
- let ctrlModel = this.__proto__.getControlItem(['Ctrl'], newVal.function, newVal.paramcmdvalues, newVal.params, { Ctrl: "radio" })[0]
|
|
|
+ let ctrlModel = this.__proto__.getControlItem(['Ctrl'], newVal, { Ctrl: "radio" })[0]
|
|
|
let preview = [];
|
|
|
switch (ctrlModel.params.lastvalue - 0) {
|
|
|
case 0:
|
|
|
preview = {
|
|
|
now: newVal.params['UpP'],
|
|
|
- tar: this.__proto__.getControlItem(['Upstream'], newVal.function, newVal.paramcmdvalues, newVal.params)[0]
|
|
|
+ tar: this.__proto__.getControlItem(['Upstream'], newVal)[0]
|
|
|
}
|
|
|
break;
|
|
|
case 1:
|
|
|
preview = {
|
|
|
now: newVal.params['DownP'],
|
|
|
- tar: this.__proto__.getControlItem(['Downstream'], newVal.function, newVal.paramcmdvalues, newVal.params)[0]
|
|
|
+ tar: this.__proto__.getControlItem(['Downstream'], newVal)[0]
|
|
|
}
|
|
|
break;
|
|
|
case 2:
|
|
|
preview = {
|
|
|
now: newVal.params['NowFlow'],
|
|
|
- tar: this.__proto__.getControlItem(['Constantflow'], newVal.function, newVal.paramcmdvalues, newVal.params)[0]
|
|
|
+ tar: this.__proto__.getControlItem(['Constantflow'], newVal)[0]
|
|
|
}
|
|
|
break;
|
|
|
case 3:
|
|
|
preview = {
|
|
|
now: newVal.params['MostBad'],
|
|
|
- tar: this.__proto__.getControlItem(['unfavorable'], newVal.function, newVal.paramcmdvalues, newVal.params)[0]
|
|
|
+ tar: this.__proto__.getControlItem(['unfavorable'], newVal)[0]
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
|
+
|
|
|
this.$refs.mpattern.ctrlModel = ctrlModel;
|
|
|
this.$refs.mpattern.preview = preview;
|
|
|
} catch (error) {
|