大铁线路 出入口增加 属性ioDirection(出入口类型)
This commit is contained in:
parent
ac620e5607
commit
b3244ce77e
@ -257,6 +257,13 @@ export default {
|
||||
trainingType: [ // 实训类型
|
||||
{ enlabel: 'single operation', label: '单操', value: 'single'},
|
||||
{ enlabel: 'scene operation', label: '场景', value: 'scene'}
|
||||
],
|
||||
ioDirectionList:[ // 出入口类型
|
||||
{value:'DOWN_IN_STATION', label:'下行进站'},
|
||||
{value:'UP_IN_STATION', label :'上行进站'},
|
||||
{value:'DOWN_OUT_STATION', label:'下行出站'},
|
||||
{value:'UP_OUT_STATION', label:'上行出站'},
|
||||
{value:'BOTH_WAY_STATION', label:'双向'}
|
||||
]
|
||||
}
|
||||
};
|
||||
|
@ -58,7 +58,7 @@ export default {
|
||||
TurnedOperate,
|
||||
DwellTimeOperate,
|
||||
ContinueProtectOperate,
|
||||
IndicatorAssociatedInfo
|
||||
IndicatorAssociatedInfo
|
||||
// DestinationOperate
|
||||
},
|
||||
props: {
|
||||
@ -99,7 +99,7 @@ export default {
|
||||
if (this.$route.query.lineCode == '15' || this.$route.query.lineCode == '16') {
|
||||
this.tabList = [
|
||||
{label: '大铁进路', name:'bigRoutingOperate', menus:BigRoutingOperate},
|
||||
{label: '指示灯关联', name: 'indicatorAssociatedInfo', menus: IndicatorAssociatedInfo}
|
||||
{label: '出入口', name: 'indicatorAssociatedInfo', menus: IndicatorAssociatedInfo}
|
||||
// {label: this.$t('map.routing'), name:'routing', menus:RoutingOperate}
|
||||
];
|
||||
this.enabledTab = 'bigRoutingOperate';
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-dialog v-dialogDrag title="指示灯关联关系预览" :visible.sync="show" width="95%" :before-do-close="doClose" append-to-body>
|
||||
<el-dialog v-dialogDrag title="出入口预览" :visible.sync="show" width="95%" :before-do-close="doClose" append-to-body>
|
||||
<div>
|
||||
<QueryListPage
|
||||
ref="queryListPage"
|
||||
@ -39,6 +39,13 @@
|
||||
queryForm: {
|
||||
show:false
|
||||
},
|
||||
ioDirectionMap:{
|
||||
'DOWN_IN_STATION':'下行进站',
|
||||
'UP_IN_STATION':'上行进站',
|
||||
'DOWN_OUT_STATION':'下行出站',
|
||||
'UP_OUT_STATION':'上行出站',
|
||||
'BOTH_WAY_STATION':'双向',
|
||||
},
|
||||
queryList: {
|
||||
query: this.queryFunction,
|
||||
height:'500px',
|
||||
@ -64,6 +71,13 @@
|
||||
title: '运行方向',
|
||||
prop: 'labelEnum'
|
||||
},
|
||||
{
|
||||
title: '出入口类型',
|
||||
prop: 'ioDirection',
|
||||
type: 'tag',
|
||||
columnValue: (row) => { return this.getIoDirectionName(row.ioDirection); },
|
||||
tagType: (row) => { return ''; }
|
||||
},
|
||||
{
|
||||
title: '关联区段列表',
|
||||
prop: 'sectionList',
|
||||
@ -139,6 +153,9 @@
|
||||
const device = this.$store.getters['map/getDeviceByCode'](code);
|
||||
return device ? device.name : '';
|
||||
},
|
||||
getIoDirectionName(ioDirection){
|
||||
return this.ioDirectionMap[ioDirection]||'';
|
||||
},
|
||||
getSectionName(sectionList) {
|
||||
const sectionName = [];
|
||||
sectionList.forEach(item => {
|
||||
@ -150,11 +167,11 @@
|
||||
deleteRoute(index, row) {
|
||||
// this.mapInfo.id,
|
||||
deleteAssist( row.id).then(res=>{
|
||||
this.$message.success('删除指示灯关联信息成功');
|
||||
this.$message.success('删除出入口信息成功');
|
||||
this.reloadTable();
|
||||
this.$emit('refresh');
|
||||
}).catch(error=>{
|
||||
this.$messageBox('删除指示灯关联信息失败:' + error.meessage);
|
||||
this.$messageBox('删除出入口信息失败:' + error.meessage);
|
||||
});
|
||||
},
|
||||
handleUpdate(index, row) {
|
||||
|
@ -31,6 +31,16 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="出入口类型" prop="ioDirection">
|
||||
<el-select v-model="addModel.ioDirection">
|
||||
<el-option
|
||||
v-for="item in ioDirectionList"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="关联区段:" prop="sectionList">
|
||||
<el-select v-model="addModel.sectionList" multiple :placeholder="$t('map.pleaseSelect')">
|
||||
<el-option
|
||||
@ -146,11 +156,13 @@ export default {
|
||||
isModify:false,
|
||||
mainDeviceList: [],
|
||||
directionLabelList: ConstConfig.ConstSelect.directionLabelList,
|
||||
ioDirectionList: ConstConfig.ConstSelect.ioDirectionList,
|
||||
addModel:{
|
||||
id: '',
|
||||
name:'',
|
||||
stationCode: '',
|
||||
labelEnum:'',
|
||||
ioDirection:'',
|
||||
sectionList: [],
|
||||
signalCode: '',
|
||||
runModel: '',
|
||||
@ -169,6 +181,9 @@ export default {
|
||||
'labelEnum': [
|
||||
{ required: true, message: '请选择运行方向', trigger: 'change' }
|
||||
],
|
||||
'ioDirection': [
|
||||
{ required: true, message: '请选择出入口类型', trigger: 'change' }
|
||||
],
|
||||
'signalCode': [
|
||||
{ required: true, message: '请选择关联信号机', trigger: 'change' }
|
||||
],
|
||||
@ -263,6 +278,7 @@ export default {
|
||||
name:'',
|
||||
stationCode: '',
|
||||
labelEnum:'',
|
||||
ioDirection:'',
|
||||
sectionList: [],
|
||||
signalCode: '',
|
||||
runModel: '',
|
||||
|
Loading…
Reference in New Issue
Block a user