-
-
-
-
-
-
- 构建信号机偏移量
- {{ $t('map.clearHint') }}
-
-
-
-
-
-
-
-
-
-
- 设置全部信号机类型
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 设置归属联锁站
-
-
-
- 批量设置引导信号
-
+
+
+
+
+
+
+
+
+ 设置
+ {{ $t('map.clearHint') }}
+
+
+
+
+
+
+
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 设置
+
+
+
+
+ 设置
+
+
+
+
+
+
+
+
+
+ 设置
+
+
+
@@ -106,6 +123,7 @@ export default {
data() {
return {
activeName: 'first',
+ collapseActive: '',
lazy: true,
SignalDirectionList: [
{ code: false, name: '向左' },
@@ -153,7 +171,8 @@ export default {
guidePosition: { x: 0, y: 0 },
interlockStationCode: '',
callOn: true,
- turnBack: false
+ turnBack: false,
+ ctc: true // 是否灭灯显示
},
addModel: {
number: 2
@@ -164,6 +183,9 @@ export default {
ciModel: {
stationList: [],
ciStation: []
+ },
+ ctcModel: {
+ ctc: true
}
};
},
@@ -245,7 +267,8 @@ export default {
{ prop: 'guidePosition.y', firstLevel: 'guidePosition', secondLevel: 'y', label: 'y:', type: 'number', labelWidth: '25px' }
] },
{ prop: 'callOn', label: '是否引导信号:', type: 'checkbox'},
- { prop: 'turnBack', label: '是否折返进路始端:', type: 'checkbox', isHidden: this.editModel.virtual}
+ { prop: 'turnBack', label: '是否折返进路始端:', type: 'checkbox', isHidden: this.editModel.virtual},
+ { prop: 'ctc', label: '是否灭灯显示(CTC级)', type: 'checkbox'}
]
},
map: {
@@ -421,10 +444,8 @@ export default {
},
virtualChange(val) {
if (val) {
- this.editModel.callOn = false;
this.editModel.turnBack = false;
} else {
- this.editModel.callOn = true;
this.editModel.turnBack = false;
}
},
@@ -462,6 +483,16 @@ export default {
this.$emit('updateMapModel', models);
this.$message.success('数据构建成功!');
},
+ setCtcShow() {
+ const models = [];
+ this.signalList.forEach(item => {
+ const signalModel = deepAssign({}, item); // 深拷贝
+ signalModel.ctc = this.ctcModel.ctc;
+ models.push(signalModel);
+ });
+ this.$emit('updateMapModel', models);
+ this.$message.success('数据构建成功!');
+ },
// 寻找信号机关联区段
findSection(signal) {
// 01 向左 02 向右
diff --git a/src/views/publish/publishLesson/index.vue b/src/views/publish/publishLesson/index.vue
index 2fe2f9b43..c64889c4e 100644
--- a/src/views/publish/publishLesson/index.vue
+++ b/src/views/publish/publishLesson/index.vue
@@ -139,9 +139,9 @@ export default {
this.$message.success(this.$t('publish.deleteSuccess'));
this.reloadTable();
localStore.remove('mapId');
- }).catch(() => {
+ }).catch((error) => {
this.reloadTable();
- this.$messageBox(this.$t('error.deleteFailed'));
+ this.$messageBox(this.$t('error.deleteFailed') + ':' + error.message);
});
}).catch(() => { });
},