福州一号线&宁波一号线新增列车连挂操作

This commit is contained in:
fan 2023-06-06 17:21:01 +08:00
parent 9aab60fe9c
commit f20378c4b4
2 changed files with 32 additions and 2 deletions

View File

@ -10,6 +10,7 @@
<speed-limit ref="speedLimit" pop-class="fuzhou-01__systerm" />
<set-fault ref="setFault" pop-class="fuzhou-01__systerm" />
<train-operation ref="trainOperation" />
<set-train-operation ref="setTrainOperation" pop-class="fuzhou-01__systerm" />
</div>
</template>
@ -31,6 +32,7 @@ import { menuOperate, commitOperate, commitTrainSend } from '@/jmapNew/theme/com
import TrainOperation from '@/jmapNew/theme/components/menus/dialog/trainOperation';
import { MouseEvent } from '@/scripts/ConstDic';
import { getSessionStorage } from '@/utils/auth';
import SetTrainOperation from '@/jmapNew/theme/components/menus/dialog/setTrainOperation';
export default {
name: 'MenuTrain',
@ -44,7 +46,8 @@ export default {
TrainEditNumber,
SetFault,
SpeedLimit,
TrainOperation
TrainOperation,
SetTrainOperation
},
props: {
selected: {
@ -91,6 +94,10 @@ export default {
{
label: '取消故障',
handler: this.cancelStoppage
},
{
label: '连挂',
handler: this.setLink
}
],
menuDirective: [
@ -239,6 +246,14 @@ export default {
}
});
},
//
setLink() {
commitOperate(menuOperate.Common.setLink, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.setTrainOperation.doShow(menuOperate.Common.setLink, this.selected, true);
}
});
},
nextStation() {
commitOperate(menuOperate.Driver.driveAhead, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
}).catch((error) => {

View File

@ -11,6 +11,7 @@
<trainSetWorkATP ref="trainSetWorkATP" />
<speed-limit ref="speedLimit" pop-class="ningbo-01__systerm" />
<set-fault ref="setFault" pop-class="ningbo-01__systerm" />
<set-train-operation ref="setTrainOperation" pop-class="ningbo-01__systerm" />
<train-detail ref="trainDetail" />
</div>
</template>
@ -34,6 +35,7 @@ import { DeviceMenu, OperateMode } from '@/scripts/ConstDic';
import CMD from '@/scripts/cmdPlugin/CommandEnum';
import { menuOperate, commitOperate } from '@/jmapNew/theme/components/utils/menuOperate';
import TrainDetail from './dialog/trainDetail';
import SetTrainOperation from '@/jmapNew/theme/components/menus/dialog/setTrainOperation';
export default {
name: 'MenuTrain',
@ -49,7 +51,8 @@ export default {
trainSetWorkATP,
SetFault,
SpeedLimit,
TrainDetail
TrainDetail,
SetTrainOperation
},
props: {
selected: {
@ -153,6 +156,10 @@ export default {
{
label: '取消故障',
handler: this.cancelStoppage
},
{
label: '连挂',
handler: this.setLink
}
],
menuDirective: [
@ -296,6 +303,14 @@ export default {
}
});
},
//
setLink() {
commitOperate(menuOperate.Common.setLink, { code: this.selected.code }, 0).then(({valid, operate})=>{
if (valid) {
this.$refs.setTrainOperation.doShow(menuOperate.Common.setLink, this.selected, true);
}
});
},
nextStation() {
commitOperate(menuOperate.Driver.driveAhead, { groupNumber: this.selected.code }, 3).then(({valid, operate})=>{
}).catch((error) => {