修改高级数据字段显示
This commit is contained in:
parent
c295f97819
commit
1e1f9a598d
@ -29,25 +29,19 @@
|
|||||||
@click="hover('sectionList')"
|
@click="hover('sectionList')"
|
||||||
>{{ $t('map.activate') }}</el-button>
|
>{{ $t('map.activate') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.psdList') + ':'" prop="psdList">
|
<el-form-item label="关联站台列表:" prop="stationStandList">
|
||||||
<el-select v-model="addModel.psdList" multiple clearable :filterable="true">
|
<el-select v-model="addModel.stationStandList" multiple clearable :filterable="true" style="width: 220px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in psdList"
|
v-for="item in stationStandList"
|
||||||
:key="item.code"
|
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item :label="$t('map.espList') + ':'" prop="espList">
|
|
||||||
<el-select v-model="addModel.espList" multiple clearable :filterable="true">
|
|
||||||
<el-option
|
|
||||||
v-for="item in espList"
|
|
||||||
:key="item.code"
|
:key="item.code"
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
:label="item.name + ' (' + item.code+ ')'"
|
||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
<el-button
|
||||||
|
:type=" field === 'routeStationStandList' ? 'danger' : 'primary'"
|
||||||
|
@click="hover('routeStationStandList')"
|
||||||
|
>{{ $t('map.activate') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.alwaysRed') + ':'" prop="alwaysRed">
|
<el-form-item :label="$t('map.alwaysRed') + ':'" prop="alwaysRed">
|
||||||
<el-radio-group v-model="addModel.alwaysRed">
|
<el-radio-group v-model="addModel.alwaysRed">
|
||||||
@ -111,8 +105,7 @@ export default {
|
|||||||
signalCode: '',
|
signalCode: '',
|
||||||
alwaysRed: true,
|
alwaysRed: true,
|
||||||
sectionList: [],
|
sectionList: [],
|
||||||
psdList: [],
|
stationStandList: []
|
||||||
espList: []
|
|
||||||
},
|
},
|
||||||
editShow: false,
|
editShow: false,
|
||||||
rules: {
|
rules: {
|
||||||
@ -128,7 +121,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters('map', [
|
...mapGetters('map', [
|
||||||
'signalList',
|
'signalList',
|
||||||
'sectionList'
|
'sectionList',
|
||||||
|
'stationStandList'
|
||||||
])
|
])
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -162,6 +156,10 @@ export default {
|
|||||||
if (this.addModel.sectionList.indexOf(selected.code) === -1) {
|
if (this.addModel.sectionList.indexOf(selected.code) === -1) {
|
||||||
this.addModel.sectionList.push(selected.code);
|
this.addModel.sectionList.push(selected.code);
|
||||||
}
|
}
|
||||||
|
} else if (selected._type.toUpperCase() === 'StationStand'.toUpperCase() && this.field.toUpperCase() === 'routeStationStandList'.toUpperCase()) {
|
||||||
|
if (this.addModel.stationStandList.indexOf(selected.code) === -1) {
|
||||||
|
this.addModel.stationStandList.push(selected.code);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -168,30 +168,20 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.psdList') + ':'" prop="psdList">
|
<el-form-item label="关联站台列表:" prop="stationStandList">
|
||||||
<el-select v-model="addModel.psdList" multiple clearable :filterable="true">
|
<el-select v-model="addModel.stationStandList" multiple clearable :filterable="true" style="width: 220px;">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in psdList"
|
v-for="item in stationStandList"
|
||||||
:key="item.code"
|
:key="item.code"
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
:label="item.name + ' (' + item.code+ ')'"
|
||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<el-button
|
<el-button
|
||||||
:type=" field === 'routePsdList' ? 'danger' : 'primary'"
|
:type=" field === 'routeStationStandList' ? 'danger' : 'primary'"
|
||||||
@click="hover('routePsdList')"
|
@click="hover('routeStationStandList')"
|
||||||
>{{ $t('map.activate') }}</el-button>
|
>{{ $t('map.activate') }}</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item :label="$t('map.espList') + ':'" prop="espList">
|
|
||||||
<el-select v-model="addModel.espList" multiple clearable :filterable="true">
|
|
||||||
<el-option
|
|
||||||
v-for="item in espList"
|
|
||||||
:key="item.code"
|
|
||||||
:label="item.name + ' (' + item.code+ ')'"
|
|
||||||
:value="item.code"
|
|
||||||
/>
|
|
||||||
</el-select>
|
|
||||||
</el-form-item>
|
|
||||||
<el-form-item label="关联延续保护区段:" prop="overlapCode">
|
<el-form-item label="关联延续保护区段:" prop="overlapCode">
|
||||||
<el-input v-model="overlapName" style="width: 178px" readonly="true" />
|
<el-input v-model="overlapName" style="width: 178px" readonly="true" />
|
||||||
<el-button type="primary" @click="selectedOverlapCode">选择</el-button>
|
<el-button type="primary" @click="selectedOverlapCode">选择</el-button>
|
||||||
@ -205,11 +195,6 @@
|
|||||||
:value="item.code"
|
:value="item.code"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<!-- <el-button type="primary" @click="selectedConflictingRouteList">选择</el-button> -->
|
|
||||||
<!-- <el-button
|
|
||||||
:type=" field === 'conflictingRouteList' ? 'danger' : 'primary'"
|
|
||||||
@click="hover('conflictingRouteList')"
|
|
||||||
>{{ $t('map.activate') }}</el-button> -->
|
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item>
|
<el-form-item>
|
||||||
<el-button-group>
|
<el-button-group>
|
||||||
@ -287,8 +272,7 @@ export default {
|
|||||||
routeSectionList: [], // 进路物理区段
|
routeSectionList: [], // 进路物理区段
|
||||||
routeSwitchList: [], // 进路道岔列表
|
routeSwitchList: [], // 进路道岔列表
|
||||||
routeFlankProtectionList: [], // 进路侧防道岔列表
|
routeFlankProtectionList: [], // 进路侧防道岔列表
|
||||||
psdList: [], // 站台屏蔽门数据列表
|
stationStandList: [], // 站台数据列表
|
||||||
espList: [], // 站台紧急停车按钮数据
|
|
||||||
overlapCode:'',
|
overlapCode:'',
|
||||||
conflictingRouteList: [] // 敌对进路
|
conflictingRouteList: [] // 敌对进路
|
||||||
},
|
},
|
||||||
@ -302,8 +286,6 @@ export default {
|
|||||||
'switchList',
|
'switchList',
|
||||||
'sectionList',
|
'sectionList',
|
||||||
'stationList',
|
'stationList',
|
||||||
'espList',
|
|
||||||
'psdList',
|
|
||||||
'stationStandList'
|
'stationStandList'
|
||||||
]),
|
]),
|
||||||
routeName: {
|
routeName: {
|
||||||
@ -373,9 +355,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.$Dictionary.normal().then(list => {
|
|
||||||
// this.SwitchLocateTypeList = list;
|
|
||||||
// });
|
|
||||||
this.getRouteList();
|
this.getRouteList();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -464,9 +443,6 @@ export default {
|
|||||||
this.addModel.routeFlankProtectionList = [];
|
this.addModel.routeFlankProtectionList = [];
|
||||||
this.overlapName = '';
|
this.overlapName = '';
|
||||||
this.addModel.overlapCode = '';
|
this.addModel.overlapCode = '';
|
||||||
// if (this.selected && this.selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
|
||||||
// this.addModel.stationCode = this.selected.code;
|
|
||||||
// }
|
|
||||||
this.isSave = true;
|
this.isSave = true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -481,14 +457,6 @@ export default {
|
|||||||
},
|
},
|
||||||
setSelected(selected) {
|
setSelected(selected) {
|
||||||
if (selected) {
|
if (selected) {
|
||||||
// if (selected._type.toUpperCase() === 'Station'.toUpperCase()) {
|
|
||||||
// this.addModel.stationCode = selected.code;
|
|
||||||
// } else
|
|
||||||
// else if (selected._type.toUpperCase() === 'Section'.toUpperCase() && this.field.toUpperCase() === 'conflictingRouteList'.toUpperCase()) {
|
|
||||||
// if (this.addModel.conflictingRouteList.indexOf(selected.code) === -1) {
|
|
||||||
// this.addModel.conflictingRouteList.push(selected.code);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'startSignalCode'.toUpperCase()) {
|
if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'startSignalCode'.toUpperCase()) {
|
||||||
this.addModel.startSignalCode = selected.code;
|
this.addModel.startSignalCode = selected.code;
|
||||||
} else if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'endSignalCode'.toUpperCase()) {
|
} else if (selected._type.toUpperCase() === 'Signal'.toUpperCase() && this.field.toUpperCase() === 'endSignalCode'.toUpperCase()) {
|
||||||
@ -501,8 +469,10 @@ export default {
|
|||||||
this.routeCode = selected.code;
|
this.routeCode = selected.code;
|
||||||
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeFlankProtectionList'.toUpperCase()) {
|
} else if (selected._type.toUpperCase() === 'Switch'.toUpperCase() && this.field.toUpperCase() === 'routeFlankProtectionList'.toUpperCase()) {
|
||||||
this.flankCode = selected.code;
|
this.flankCode = selected.code;
|
||||||
} else if (selected._type.toUpperCase() === 'Psd'.toUpperCase() && this.field.toUpperCase() === 'routePsdList'.toUpperCase()) {
|
} else if (selected._type.toUpperCase() === 'StationStand'.toUpperCase() && this.field.toUpperCase() === 'routeStationStandList'.toUpperCase()) {
|
||||||
this.addModel.psdList.push(selected.code);
|
if (this.addModel.stationStandList.indexOf(selected.code) === -1) {
|
||||||
|
this.addModel.stationStandList.push(selected.code);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -330,6 +330,7 @@ export default {
|
|||||||
models.push(signalModel);
|
models.push(signalModel);
|
||||||
});
|
});
|
||||||
this.$emit('updateMapModel', models);
|
this.$emit('updateMapModel', models);
|
||||||
|
this.$message.success('数据构建成功!');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user