修改宁波3 检测selected的方式
This commit is contained in:
parent
3acdfc95fd
commit
dbdfe26e86
@ -158,7 +158,7 @@ export default {
|
||||
this.commit();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function(val) {
|
||||
'selected': function(val) {
|
||||
if (this.selected) {
|
||||
const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
|
||||
this.currentTime = stand.parkingTime
|
||||
|
@ -68,7 +68,6 @@ export default {
|
||||
allChecked: false,
|
||||
dialogShow: false,
|
||||
loading: false,
|
||||
isBlock: true,
|
||||
initEle: null,
|
||||
commandEleCode: null
|
||||
};
|
||||
@ -88,6 +87,9 @@ export default {
|
||||
selected() {
|
||||
return this.$store.state.menuOperation.selected;
|
||||
},
|
||||
isBlock() {
|
||||
return this.operate && this.operate.operation === OperationEvent.Signal.block.button.operation;
|
||||
},
|
||||
domIdChoose() {
|
||||
return this.dialogShow ? OperationEvent.Command.common.choose.domId : ''
|
||||
},
|
||||
|
@ -105,7 +105,7 @@ export default {
|
||||
this.commit();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function(val) {
|
||||
'selected': function(val) {
|
||||
console.log(this.selected)
|
||||
if (this.selected) {
|
||||
const signal = this.$store.getters['map/getDeviceByCode'](this.selected.code);
|
||||
|
@ -98,7 +98,7 @@ export default {
|
||||
this.commit();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function(val) {
|
||||
'selected': function(val) {
|
||||
if (this.selected) {
|
||||
const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
|
||||
this.status = !!stand.allSkip
|
||||
|
@ -115,7 +115,7 @@ export default {
|
||||
this.commit();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function(val) {
|
||||
'selected': function(val) {
|
||||
if (this.selected) {
|
||||
const stand = this.$store.getters['map/getDeviceByCode'](this.selected.code);
|
||||
if (stand && !stand.stationHoldTrain && !stand.centerHoldTrain) {
|
||||
|
@ -96,7 +96,7 @@ export default {
|
||||
this.commit();
|
||||
}
|
||||
},
|
||||
'$store.state.menuOperation.selectedCount': function(val) {
|
||||
'selected': function(val) {
|
||||
if (this.selected) {
|
||||
const swch = this.$store.getters['map/getDeviceByCode'](this.selected.code);
|
||||
if (swch) {
|
||||
|
Loading…
Reference in New Issue
Block a user