Merge branch 'dev' of https://git.code.tencent.com/lian-cbtc/jl-client into dev
This commit is contained in:
commit
2df1803ca5
@ -113,13 +113,13 @@ export default {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '开放自动进路',
|
label: '开放自动进路',
|
||||||
handler: this.atsAutoControl,
|
handler: this.singalPassModel,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
|
cmdType: CMD.Signal.CMD_SIGNAL_SET_CI_AUTO
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '关闭自动进路',
|
label: '关闭自动进路',
|
||||||
handler: this.humanControl,
|
handler: this.singalCancelPassModel,
|
||||||
cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
|
cmdType: CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '终端信号封锁',
|
label: '终端信号封锁',
|
||||||
@ -404,69 +404,37 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交人工控
|
// 设置通过模式
|
||||||
humanControl() {
|
singalPassModel() {
|
||||||
const routes = [];
|
const operate = {
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
// routes.push(elem);
|
|
||||||
if (elem.atsControl == '1') {
|
|
||||||
routes.push(elem.code);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (routes.length <= 0) {
|
|
||||||
this.$refs.noticeInfo.doShow({}, ['所选的进路没有一个是人工的']);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
const step = {
|
|
||||||
start: true,
|
start: true,
|
||||||
over:true,
|
code: this.selected.code,
|
||||||
code: `${this.selected.code}`,
|
operation: OperationEvent.Signal.setAutoInterlock.menu.operation,
|
||||||
operation: OperationEvent.Signal.humanControl.menu.operation,
|
|
||||||
param: {
|
param: {
|
||||||
signalCode: `${this.selected.code}`,
|
signalCode: `${this.selected.code}`
|
||||||
routeCodeList:routes
|
}
|
||||||
},
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING
|
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: '关闭自动进路',cmdType:CMD.Signal.CMD_SIGNAL_CLOSE_AUTO_SETTING});
|
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.setAutoInterlock.menu.operation, name: '开放自动进路', cmdType:CMD.Signal.CMD_SIGNAL_SET_CI_AUTO}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
// 进路交自动控
|
// 取消通过模式
|
||||||
atsAutoControl() {
|
singalCancelPassModel() {
|
||||||
const routes = [];
|
const operate = {
|
||||||
this.routeList.forEach(elem => {
|
|
||||||
if (elem.startSignalCode === this.selected.code) {
|
|
||||||
// routes.push(elem);
|
|
||||||
if (elem.atsControl == '0') {
|
|
||||||
routes.push(elem.code);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
});
|
|
||||||
if (routes.length <= 0) {
|
|
||||||
this.$refs.noticeInfo.doShow({}, ['所选的进路没有一个是自动的']);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
const step = {
|
|
||||||
start: true,
|
start: true,
|
||||||
// over:true,
|
code: this.selected.code,
|
||||||
code: `${this.selected.code}`,
|
operation: OperationEvent.Signal.cancelAutoInterlock.menu.operation,
|
||||||
operation: OperationEvent.Signal.atsAutoControl.menu.operation,
|
|
||||||
param: {
|
param: {
|
||||||
signalCode: `${this.selected.code}`,
|
signalCode: `${this.selected.code}`
|
||||||
routeCodeList:routes
|
}
|
||||||
},
|
|
||||||
// cmdType: CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING
|
|
||||||
};
|
};
|
||||||
this.$store.dispatch('training/nextNew', step).then(({ valid }) => {
|
this.$store.dispatch('training/nextNew', operate).then(({ valid }) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
this.$store.dispatch('menuOperation/handleBreakFlag', { break: true });
|
||||||
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.atsAutoControl.menu.operation, name: '开放自动进路',cmdType:CMD.Signal.CMD_SIGNAL_OPEN_AUTO_SETTING}});
|
this.$store.dispatch('menuOperation/pushRequestList', { device: this.selected, operation: { code: OperationEvent.Signal.cancelAutoInterlock.menu.operation, name: '关闭自动进路', cmdType:CMD.Signal.CMD_SIGNAL_CANCEL_CI_AUTO}});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -101,8 +101,8 @@ export const translate = {
|
|||||||
{ key: 'overlapSwitchCode', tHeader: '延续保护道岔ID', formatter: (val) => { return val || ''; } },
|
{ key: 'overlapSwitchCode', tHeader: '延续保护道岔ID', formatter: (val) => { return val || ''; } },
|
||||||
{ key: 'overlapSwitchLocateType', tHeader: '延续保护道岔位置类型', formatter: (val) => { return val || ''; } },
|
{ key: 'overlapSwitchLocateType', tHeader: '延续保护道岔位置类型', formatter: (val) => { return val || ''; } },
|
||||||
{ key: 'turnBackSectionCode', tHeader: '折返轨ID', formatter: (val) => { return val || ''; } },
|
{ key: 'turnBackSectionCode', tHeader: '折返轨ID', formatter: (val) => { return val || ''; } },
|
||||||
{ key: 'arc', tHeader: '是否自动追踪/联锁自动触发', formatter: (val) => { return val || false; } },
|
{ key: 'ciControl', tHeader: '是否自动追踪/联锁自动触发', formatter: (val) => { return val || false; } },
|
||||||
{ key: 'flt', tHeader: '是否车队/联锁自动进路', formatter: (val) => { return val || false; } },
|
{ key: 'setFleetMode', tHeader: '是否车队/联锁自动进路', formatter: (val) => { return val || false; } },
|
||||||
{ key: 'delayReleaseTime', tHeader: '延时解锁时间', formatter: (val) => { return val || 0; } }
|
{ key: 'delayReleaseTime', tHeader: '延时解锁时间', formatter: (val) => { return val || 0; } }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
<el-option v-for="item in stationList" :key="item.code" :label="item.name" :value="item.code" />
|
<el-option v-for="item in stationList" :key="item.code" :label="item.name" :value="item.code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.routeArc') + ':'" prop="arc">
|
<el-form-item :label="$t('map.routeArc') + ':'" prop="ciControl">
|
||||||
<el-radio-group v-model="addModel.arc">
|
<el-radio-group v-model="addModel.ciControl">
|
||||||
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
||||||
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.routeFlt') + ':'" prop="flt">
|
<el-form-item :label="$t('map.routeFlt') + ':'" prop="setFleetMode">
|
||||||
<el-radio-group v-model="addModel.flt">
|
<el-radio-group v-model="addModel.setFleetMode">
|
||||||
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
||||||
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -313,8 +313,8 @@ export default {
|
|||||||
code: '',
|
code: '',
|
||||||
name: '', // 名字
|
name: '', // 名字
|
||||||
stationCode: '', // 所属站台
|
stationCode: '', // 所属站台
|
||||||
arc: false, // 是否自动追踪/联锁自动触发
|
ciControl: false, // 是否自动追踪/联锁自动触发
|
||||||
flt: false, // 是否车队/联锁自动进路
|
setFleetMode: false, // 是否车队/联锁自动进路
|
||||||
delayReleaseTime: '', // 延时解锁时间
|
delayReleaseTime: '', // 延时解锁时间
|
||||||
turnBack: false, // 是否折返进路
|
turnBack: false, // 是否折返进路
|
||||||
startSignalCode: '', // 始端信号机
|
startSignalCode: '', // 始端信号机
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
<el-option v-for="item in interBlockStationList" :key="item.code" :label="item.name" :value="item.code" />
|
<el-option v-for="item in interBlockStationList" :key="item.code" :label="item.name" :value="item.code" />
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.routeArc') + ':'" prop="arc">
|
<el-form-item :label="$t('map.routeArc') + ':'" prop="ciControl">
|
||||||
<el-radio-group v-model="addModel.arc">
|
<el-radio-group v-model="addModel.ciControl">
|
||||||
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
||||||
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.routeFlt') + ':'" prop="flt">
|
<el-form-item :label="$t('map.routeFlt') + ':'" prop="setFleetMode">
|
||||||
<el-radio-group v-model="addModel.flt">
|
<el-radio-group v-model="addModel.setFleetMode">
|
||||||
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
<el-radio :label="true">{{ $t('map.are') }}</el-radio>
|
||||||
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
<el-radio :label="false">{{ $t('map.deny') }}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -250,8 +250,8 @@ export default {
|
|||||||
code: '',
|
code: '',
|
||||||
name: '', // 名字
|
name: '', // 名字
|
||||||
stationCode: '', // 所属站台
|
stationCode: '', // 所属站台
|
||||||
arc: false, // 是否自动追踪/联锁自动触发
|
ciControl: false, // 是否自动追踪/联锁自动触发
|
||||||
flt: false, // 是否车队/联锁自动进路
|
setFleetMode: false, // 是否车队/联锁自动进路
|
||||||
lockFirst:false, // 是否先锁闭——办理过程直接先锁闭区段
|
lockFirst:false, // 是否先锁闭——办理过程直接先锁闭区段
|
||||||
delayReleaseTime: '', // 延时解锁时间
|
delayReleaseTime: '', // 延时解锁时间
|
||||||
turnBack: false, // 是否折返进路
|
turnBack: false, // 是否折返进路
|
||||||
|
Loading…
Reference in New Issue
Block a user