Merge branch 'test' of https://git.code.tencent.com/lian-cbtc/jl-client into test
This commit is contained in:
commit
93e927c39f
@ -118,33 +118,33 @@ export default {
|
|||||||
time = 1500;
|
time = 1500;
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let models = {};
|
if ((model.code == 'group_2' && model['valve']) || (model.code == 'group_52' && model['valve'])) {
|
||||||
// valve true 变绿 false 红色
|
const model1 = this.$iscs.iscsDevice['group_9'].model;
|
||||||
if (model.code == 'group_2' || model.code == 'group_52') {
|
model1['valve'] = model['valve'];
|
||||||
models = this.$iscs.iscsDevice['group_23'].model;
|
const model2 = this.$iscs.iscsDevice['group_21'].model;
|
||||||
models['valve'] = false;
|
model2['valve'] = model['valve'];
|
||||||
} else if (model.code == 'group_3' || model.code == 'group_16') {
|
const model3 = this.$iscs.iscsDevice['group_19'].model;
|
||||||
models = this.$iscs.iscsDevice['group_15'].model;
|
model3['valve'] = model['valve'];
|
||||||
models['valve'] = false;
|
const model4 = this.$iscs.iscsDevice['group_8'].model;
|
||||||
}
|
model4['valve'] = model['valve'];
|
||||||
if (models && models.code) {
|
this.handleModel(model1);
|
||||||
this.handleModel(models);
|
this.handleModel(model2);
|
||||||
|
this.handleModel(model3);
|
||||||
|
this.handleModel(model4);
|
||||||
time = 1500;
|
time = 1500;
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if ((model.code == 'group_2' && model['valve']) || (model.code == 'group_52' && model['valve'])) {
|
let models = {};
|
||||||
const model1 = this.$iscs.iscsDevice['group_9'].model;
|
// valve true 变绿 false 红色
|
||||||
model1['valve'] = model['valve'];
|
if (model.code == 'group_2' || model.code == 'group_52') {
|
||||||
const model2 = this.$iscs.iscsDevice['group_21'].model;
|
models = this.$iscs.iscsDevice['group_23'].model;
|
||||||
model2['valve'] = model['valve'];
|
models['valve'] = false;
|
||||||
const model3 = this.$iscs.iscsDevice['group_19'].model;
|
} else if (model.code == 'group_3' || model.code == 'group_16') {
|
||||||
model3['valve'] = model['valve'];
|
models = this.$iscs.iscsDevice['group_15'].model;
|
||||||
const model4 = this.$iscs.iscsDevice['group_8'].model;
|
models['valve'] = false;
|
||||||
model4['valve'] = model['valve'];
|
}
|
||||||
this.handleModel(model1);
|
if (models && models.code) {
|
||||||
this.handleModel(model2);
|
this.handleModel(models);
|
||||||
this.handleModel(model3);
|
|
||||||
this.handleModel(model4);
|
|
||||||
}
|
}
|
||||||
}, time);
|
}, time);
|
||||||
}, time);
|
}, time);
|
||||||
|
@ -122,9 +122,24 @@ export default {
|
|||||||
this.showSublayer = false;
|
this.showSublayer = false;
|
||||||
this.rowData[this.rowData.key] = !this.rowData[this.rowData.key];
|
this.rowData[this.rowData.key] = !this.rowData[this.rowData.key];
|
||||||
this.elemList.splice(this.activeIndex, 1, this.rowData);
|
this.elemList.splice(this.activeIndex, 1, this.rowData);
|
||||||
this.model[this.rowData.key] = this.rowData[this.rowData.key];
|
if (this.model.code == 'group_3' || this.model.code == 'group_16') {
|
||||||
this.handleModel(this.model);
|
if (this.rowData[this.rowData.key]) {
|
||||||
this.relevance();
|
this.model[this.rowData.key] = this.rowData[this.rowData.key];
|
||||||
|
this.handleModel(this.model);
|
||||||
|
this.relevance();
|
||||||
|
} else {
|
||||||
|
if (this.$iscs.iscsDevice['group_15'].model['valve']) {
|
||||||
|
this.model[this.rowData.key] = this.rowData[this.rowData.key];
|
||||||
|
this.handleModel(this.model);
|
||||||
|
} else {
|
||||||
|
console.log('不允许点击');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.model[this.rowData.key] = this.rowData[this.rowData.key];
|
||||||
|
this.handleModel(this.model);
|
||||||
|
this.relevance();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// 固定关联关系 模块变化
|
// 固定关联关系 模块变化
|
||||||
relevance() {
|
relevance() {
|
||||||
@ -142,44 +157,47 @@ export default {
|
|||||||
time = 1500;
|
time = 1500;
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
let model = {};
|
if ((this.model.code == 'group_2' && this.model['valve']) || (this.model.code == 'group_52' && this.model['valve'])) {
|
||||||
// valve true 变绿 false 红色
|
const model1 = this.$iscs.iscsDevice['group_9'].model;
|
||||||
if (this.model.code == 'group_2' || this.model.code == 'group_52') {
|
model1['valve'] = this.model['valve'];
|
||||||
model = this.$iscs.iscsDevice['group_23'].model;
|
const model2 = this.$iscs.iscsDevice['group_21'].model;
|
||||||
model['valve'] = !(this.$iscs.iscsDevice['group_2'].model['valve'] || this.$iscs.iscsDevice['group_52'].model['valve']);
|
model2['valve'] = this.model['valve'];
|
||||||
} else if (this.model.code == 'group_3' || this.model.code == 'group_16') {
|
const model3 = this.$iscs.iscsDevice['group_19'].model;
|
||||||
model = this.$iscs.iscsDevice['group_15'].model;
|
model3['valve'] = this.model['valve'];
|
||||||
model['valve'] = !(this.$iscs.iscsDevice['group_3'].model['valve'] || this.$iscs.iscsDevice['group_16'].model['valve']);
|
const model4 = this.$iscs.iscsDevice['group_8'].model;
|
||||||
}
|
model4['valve'] = this.model['valve'];
|
||||||
if (model && model.code) {
|
this.handleModel(model1);
|
||||||
this.handleModel(model);
|
this.handleModel(model2);
|
||||||
|
this.handleModel(model3);
|
||||||
|
this.handleModel(model4);
|
||||||
time = 1500;
|
time = 1500;
|
||||||
}
|
}
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.model.code == 'group_2' && !this.model['valve']) {
|
let model = {};
|
||||||
modelRelevance = this.$iscs.iscsDevice['group_34'].model;
|
// valve true 变绿 false 红色
|
||||||
modelRelevance['valve'] = this.model['valve'];
|
if (this.model.code == 'group_2' || this.model.code == 'group_52') {
|
||||||
} else if (this.model.code == 'group_52' && !this.model['valve']) {
|
model = this.$iscs.iscsDevice['group_23'].model;
|
||||||
modelRelevance = this.$iscs.iscsDevice['group_22'].model;
|
model['valve'] = !(this.$iscs.iscsDevice['group_2'].model['valve'] || this.$iscs.iscsDevice['group_52'].model['valve']);
|
||||||
modelRelevance['valve'] = this.model['valve'];
|
} else if (this.model.code == 'group_3' || this.model.code == 'group_16') {
|
||||||
|
model = this.$iscs.iscsDevice['group_15'].model;
|
||||||
|
model['valve'] = !(this.$iscs.iscsDevice['group_3'].model['valve'] || this.$iscs.iscsDevice['group_16'].model['valve']);
|
||||||
}
|
}
|
||||||
if (modelRelevance && modelRelevance.code) {
|
if (model && model.code) {
|
||||||
this.handleModel(modelRelevance);
|
this.handleModel(model);
|
||||||
}
|
time = 1500;
|
||||||
if ((this.model.code == 'group_2' && this.model['valve']) || (this.model.code == 'group_52' && this.model['valve'])) {
|
|
||||||
const model1 = this.$iscs.iscsDevice['group_9'].model;
|
|
||||||
model1['valve'] = this.model['valve'];
|
|
||||||
const model2 = this.$iscs.iscsDevice['group_21'].model;
|
|
||||||
model2['valve'] = this.model['valve'];
|
|
||||||
const model3 = this.$iscs.iscsDevice['group_19'].model;
|
|
||||||
model3['valve'] = this.model['valve'];
|
|
||||||
const model4 = this.$iscs.iscsDevice['group_8'].model;
|
|
||||||
model4['valve'] = this.model['valve'];
|
|
||||||
this.handleModel(model1);
|
|
||||||
this.handleModel(model2);
|
|
||||||
this.handleModel(model3);
|
|
||||||
this.handleModel(model4);
|
|
||||||
}
|
}
|
||||||
|
setTimeout(() => {
|
||||||
|
if (this.model.code == 'group_2' && !this.model['valve']) {
|
||||||
|
modelRelevance = this.$iscs.iscsDevice['group_34'].model;
|
||||||
|
modelRelevance['valve'] = this.model['valve'];
|
||||||
|
} else if (this.model.code == 'group_52' && !this.model['valve']) {
|
||||||
|
modelRelevance = this.$iscs.iscsDevice['group_22'].model;
|
||||||
|
modelRelevance['valve'] = this.model['valve'];
|
||||||
|
}
|
||||||
|
if (modelRelevance && modelRelevance.code) {
|
||||||
|
this.handleModel(modelRelevance);
|
||||||
|
}
|
||||||
|
}, time);
|
||||||
}, time);
|
}, time);
|
||||||
}, time);
|
}, time);
|
||||||
|
|
||||||
@ -213,7 +231,7 @@ export default {
|
|||||||
device.instance.setState(el);
|
device.instance.setState(el);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const textList = setNum(Object.values(model.elemMap), true);
|
const textList = setNum(Object.values(model.elemMap), model.valve);
|
||||||
textList.forEach(el => {
|
textList.forEach(el => {
|
||||||
const device = this.$iscs.iscsDevice[el.code];
|
const device = this.$iscs.iscsDevice[el.code];
|
||||||
if (device && device.instance) {
|
if (device && device.instance) {
|
||||||
|
Loading…
Reference in New Issue
Block a user