This commit is contained in:
joylink_zhaoerwei 2023-12-06 17:00:19 +08:00
parent 34bfb15a22
commit 72bd566c6c
3 changed files with 4 additions and 28 deletions

View File

@ -402,22 +402,13 @@ const signalTypeOptions = [
value: signalModel.HBU_DU,
},
];
const signalTypeMap = new Map<graphicData.Signal.Model, string>([
[signalModel.HL, '红绿'],
[signalModel.HLU_FU, '红绿黄,封黄灯,无引导'],
[signalModel.HLU_DU_YY, '红绿黄,不封灯,有单黄,带引导'],
[signalModel.HLU_YY, '红绿黄,不封灯,无单黄,带引导'],
[signalModel.HLU_FL_DU_YY, '红绿黄,封绿灯,有单黄,带引导'],
[signalModel.HLU_DU, '红绿黄,不封灯,有单黄,无引导'],
[signalModel.AB, '蓝白'],
[signalModel.HBU_DU, '红白黄,不封灯,有单黄,无引导'],
]);
function setSignalType() {
if (signalType.value) {
const showType = signalTypeOptions.find(
(item) => item.value == signalType.value
)?.label;
$q.dialog({
message: `确定批量设置选中信号机的类型为【${signalTypeMap.get(
signalType.value
)}?`,
message: `确定批量设置选中信号机的类型为【${showType}】吗?`,
cancel: true,
}).onOk(() => {
drawStore.selectedGraphics?.forEach((signal) => {

View File

@ -25,19 +25,6 @@ import { graphicData } from 'src/protos/stationLayoutGraphics';
export interface IAxleCountingDrawOptions {
newData: () => IAxleCountingData;
}
console.log(DevicePort);
// enum DevicePort {
// A = 0,
// B = 1,
// C = 2,
// }
// enum DevicePortN {
// A,
// B,
// C,
// }
export class AxleCountingDraw extends GraphicDrawAssistant<
AxleCountingTemplate,

View File

@ -922,7 +922,6 @@ function oneClickGenerateEsbCombinationData() {
const esbButtonIds = esbButtons
.filter((g) => platformIds.includes(g.datas.refStand))
.map((g) => g.id);
combinationtypes.push(
new graphicData.DeviceCombinationtype({
code: refEsbRelayCodes[0],
@ -942,7 +941,6 @@ function oneClickGenerateEsbCombinationData() {
);
});
}
const stationRelateDevice = new graphicData.StationRelateDevice({
deviceType: graphicData.RelatedRef.DeviceType.station,
code: station.datas.stationName,