|
@@ -40,36 +40,21 @@ export default {
|
|
}
|
|
}
|
|
try {
|
|
try {
|
|
let ctrlModel = this.__proto__.getControlItem(['Ctrl'], newVal, { 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)[0]
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case 1:
|
|
|
|
- preview = {
|
|
|
|
- now: newVal.params['DownP'],
|
|
|
|
- tar: this.__proto__.getControlItem(['Downstream'], newVal)[0]
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case 2:
|
|
|
|
- preview = {
|
|
|
|
- now: newVal.params['NowFlow'],
|
|
|
|
- tar: this.__proto__.getControlItem(['Constantflow'], newVal)[0]
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- case 3:
|
|
|
|
- preview = {
|
|
|
|
- now: newVal.params['MostBad'],
|
|
|
|
- tar: this.__proto__.getControlItem(['unfavorable'], newVal)[0]
|
|
|
|
- }
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
this.$refs.mpattern.ctrlModel = ctrlModel;
|
|
this.$refs.mpattern.ctrlModel = ctrlModel;
|
|
- this.$refs.mpattern.preview = preview;
|
|
|
|
|
|
+ let lastvalue = ctrlModel.params.lastvalue - 0;
|
|
|
|
+ this.$refs.mpattern.list = [{
|
|
|
|
+ now: newVal.params['DownP'],
|
|
|
|
+ tar: this.__proto__.getControlItem(['Downstream'], newVal)[0],
|
|
|
|
+ current: lastvalue == 1
|
|
|
|
+ }, {
|
|
|
|
+ now: newVal.params['NowFlow'],
|
|
|
|
+ tar: this.__proto__.getControlItem(['Constantflow'], newVal)[0],
|
|
|
|
+ current: lastvalue == 2
|
|
|
|
+ }, {
|
|
|
|
+ now: newVal.params['MostBad'],
|
|
|
|
+ tar: this.__proto__.getControlItem(['unfavorable'], newVal)[0],
|
|
|
|
+ current: lastvalue == 3
|
|
|
|
+ }];
|
|
} catch (error) {
|
|
} catch (error) {
|
|
console.error("06控制模式", error)
|
|
console.error("06控制模式", error)
|
|
}
|
|
}
|