微调
This commit is contained in:
parent
34bfb15a22
commit
72bd566c6c
@ -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) => {
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user