增加车站拼音简写

This commit is contained in:
joylink_zhaoerwei 2024-01-16 13:09:11 +08:00
parent 9b2acf4659
commit aff04379d7
4 changed files with 41 additions and 5 deletions

View File

@ -19,6 +19,15 @@
lazy-rules
autogrow
/>
<q-input
outlined
label="车站名拼音简写"
type="textarea"
@blur="onUpdate"
v-model="stationModel.stationNameAcronym"
lazy-rules
autogrow
/>
<q-list bordered separator class="rounded-borders">
<q-item no-wrap class="q-gutter-y-sm column">
<template v-if="stationModel.kilometerSystem">

View File

@ -7,11 +7,7 @@ import {
import { graphicData } from 'src/protos/stationLayoutGraphics';
import { GraphicDataBase, GraphicStateBase } from './GraphicDataBase';
import { state } from 'src/protos/device_state';
import {
IGraphicScene,
GraphicInteractionPlugin,
JlGraphic,
} from 'jl-graphic';
import { IGraphicScene, GraphicInteractionPlugin, JlGraphic } from 'jl-graphic';
import { KilometerSystem } from 'src/graphics/signal/Signal';
import { useLineStore } from 'src/stores/line-store';
@ -43,6 +39,12 @@ export class StationData extends GraphicDataBase implements IStationData {
set stationName(v: string) {
this.data.stationName = v;
}
get stationNameAcronym(): string {
return this.data.stationNameAcronym;
}
set stationNameAcronym(v: string) {
this.data.stationNameAcronym = v;
}
get kilometerSystem(): KilometerSystem {
if (!this.data.kilometerSystem) {
this.data.kilometerSystem = new graphicData.KilometerSystem();

View File

@ -13,6 +13,8 @@ export interface IStationData extends GraphicData {
set code(v: string);
get stationName(): string; // 车站名
set stationName(v: string);
get stationNameAcronym(): string; // 车站名拼音简写
set stationNameAcronym(v: string);
get kilometerSystem(): KilometerSystem;
set kilometerSystem(v: KilometerSystem);
get concentrationStations(): boolean; //是否集中站

View File

@ -2628,6 +2628,7 @@ export namespace graphicData {
kilometerSystem?: KilometerSystem;
refIbpMapCode?: string;
stationName?: string;
stationNameAcronym?: string;
depots?: boolean;
oldmanageStations?: string[];
manageStations?: number[];
@ -2653,6 +2654,9 @@ export namespace graphicData {
if ("stationName" in data && data.stationName != undefined) {
this.stationName = data.stationName;
}
if ("stationNameAcronym" in data && data.stationNameAcronym != undefined) {
this.stationNameAcronym = data.stationNameAcronym;
}
if ("depots" in data && data.depots != undefined) {
this.depots = data.depots;
}
@ -2706,6 +2710,12 @@ export namespace graphicData {
set stationName(value: string) {
pb_1.Message.setField(this, 9, value);
}
get stationNameAcronym() {
return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
}
set stationNameAcronym(value: string) {
pb_1.Message.setField(this, 10, value);
}
get depots() {
return pb_1.Message.getFieldWithDefault(this, 11, false) as boolean;
}
@ -2731,6 +2741,7 @@ export namespace graphicData {
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
refIbpMapCode?: string;
stationName?: string;
stationNameAcronym?: string;
depots?: boolean;
oldmanageStations?: string[];
manageStations?: number[];
@ -2754,6 +2765,9 @@ export namespace graphicData {
if (data.stationName != null) {
message.stationName = data.stationName;
}
if (data.stationNameAcronym != null) {
message.stationNameAcronym = data.stationNameAcronym;
}
if (data.depots != null) {
message.depots = data.depots;
}
@ -2773,6 +2787,7 @@ export namespace graphicData {
kilometerSystem?: ReturnType<typeof KilometerSystem.prototype.toObject>;
refIbpMapCode?: string;
stationName?: string;
stationNameAcronym?: string;
depots?: boolean;
oldmanageStations?: string[];
manageStations?: number[];
@ -2795,6 +2810,9 @@ export namespace graphicData {
if (this.stationName != null) {
data.stationName = this.stationName;
}
if (this.stationNameAcronym != null) {
data.stationNameAcronym = this.stationNameAcronym;
}
if (this.depots != null) {
data.depots = this.depots;
}
@ -2822,6 +2840,8 @@ export namespace graphicData {
writer.writeString(8, this.refIbpMapCode);
if (this.stationName.length)
writer.writeString(9, this.stationName);
if (this.stationNameAcronym.length)
writer.writeString(10, this.stationNameAcronym);
if (this.depots != false)
writer.writeBool(11, this.depots);
if (this.oldmanageStations.length)
@ -2855,6 +2875,9 @@ export namespace graphicData {
case 9:
message.stationName = reader.readString();
break;
case 10:
message.stationNameAcronym = reader.readString();
break;
case 11:
message.depots = reader.readBool();
break;