佛山有轨电车操作代码调整
This commit is contained in:
parent
6cc44b5528
commit
4fb17151df
@ -170,7 +170,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
loadInitData(selected, opts) {
|
loadInitData(selected) {
|
||||||
this.tempData = [];
|
this.tempData = [];
|
||||||
|
|
||||||
const index = this.stationList.findIndex(n => n.code == selected.stationCode);
|
const index = this.stationList.findIndex(n => n.code == selected.stationCode);
|
||||||
@ -188,15 +188,10 @@ export default {
|
|||||||
station = this.$store.getters['map/getDeviceByCode'](stationStand.stationCode);
|
station = this.$store.getters['map/getDeviceByCode'](stationStand.stationCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 01: 未设置扣车 02: 车站扣车 03: 中心扣车 04: 中心+车站扣车*/
|
|
||||||
// this.tempData.push({ item: '车站扣车', status: opts.holdStatus == '02' || opts.holdStatus == '04' ? '已设置' : '未设置' });
|
|
||||||
// this.tempData.push({ item: '中心扣车', status: opts.holdStatus == '03' || opts.holdStatus == '04' ? '已设置' : '未设置' });
|
|
||||||
// 中心扣车
|
// 中心扣车
|
||||||
this.treeData[1].children[0].value = selected.centerHoldTrain ? '已设置' : '未设置';
|
this.treeData[1].children[0].value = selected.centerHoldTrain ? '已设置' : '未设置';
|
||||||
// 车站扣车
|
// 车站扣车
|
||||||
this.treeData[1].children[1].value = selected.stationHoldTrain ? '已设置' : '未设置';
|
this.treeData[1].children[1].value = selected.stationHoldTrain ? '已设置' : '未设置';
|
||||||
// this.tempData.push({ item: '停站时间', status: opts.parkingTime != -1 ? opts.parkingTime : '自动' });
|
|
||||||
// 停站时间
|
// 停站时间
|
||||||
this.treeData[0].children[2].value = selected.parkingTime != -1 ? selected.parkingTime : '自动';
|
this.treeData[0].children[2].value = selected.parkingTime != -1 ? selected.parkingTime : '自动';
|
||||||
// 跳停
|
// 跳停
|
||||||
@ -213,7 +208,7 @@ export default {
|
|||||||
// 待添加
|
// 待添加
|
||||||
// this.tempData.push({ item: '下行折返策略', status: this.strategyMap[selected.reentryStrategy] ? this.strategyMap[selected.reentryStrategy] : '默认' });
|
// this.tempData.push({ item: '下行折返策略', status: this.strategyMap[selected.reentryStrategy] ? this.strategyMap[selected.reentryStrategy] : '默认' });
|
||||||
},
|
},
|
||||||
doShow(operate, selected, opts) {
|
doShow(operate, selected) {
|
||||||
this.selected = selected;
|
this.selected = selected;
|
||||||
if (!this.dialogShow) {
|
if (!this.dialogShow) {
|
||||||
// this.standName = '';
|
// this.standName = '';
|
||||||
@ -229,7 +224,7 @@ export default {
|
|||||||
// this.treeData[0].children[1].value = station.runPlanName
|
// this.treeData[0].children[1].value = station.runPlanName
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.loadInitData(selected, opts);
|
this.loadInitData(selected);
|
||||||
}
|
}
|
||||||
this.dialogShow = true;
|
this.dialogShow = true;
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
|
@ -276,7 +276,7 @@ export default {
|
|||||||
detail() {
|
detail() {
|
||||||
commitOperate(menuOperate.StationStand.detail, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
|
commitOperate(menuOperate.StationStand.detail, {standCode:this.selected.code}, 0).then(({valid, operate})=>{
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$refs.standDetail.doShow(operate, this.selected, []);
|
this.$refs.standDetail.doShow(operate, this.selected);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user