洗车机添加属性

This commit is contained in:
joylink_fanyuhong 2024-04-02 11:29:55 +08:00
parent b75bc9b9f0
commit 5910740c65
5 changed files with 10794 additions and 8564 deletions

View File

@ -14,6 +14,13 @@
@blur="onUpdate"
label="名称"
/>
<q-input
outlined
class="q-mt-sm"
v-model.number="carWashingModel.duanNum"
@blur="onUpdate"
label="段数"
/>
<q-select
outlined
style="margin-top: 10px"

View File

@ -43,6 +43,12 @@ export class CarWashingData extends GraphicDataBase implements ICarWashingData {
set centralizedStations(v: number[]) {
this.data.centralizedStations = v;
}
get duanNum(): number {
return this.data.duanNum;
}
set duanNum(v: number) {
this.data.duanNum = v;
}
clone(): CarWashingData {
return new CarWashingData(this.data.cloneMessage());
}

View File

@ -15,6 +15,8 @@ export interface ICarWashingData extends GraphicData {
set linkSection(v: number);
get centralizedStations(): number[];
set centralizedStations(v: number[]);
get duanNum(): number;
set duanNum(v: number);
clone(): ICarWashingData;
copyFrom(data: ICarWashingData): void;
eq(other: ICarWashingData): boolean;

View File

@ -49,6 +49,7 @@ export class CarWashingDraw extends GraphicDrawAssistant<
prepareData(data: ICarWashingData): boolean {
data.transform = this.container.saveTransform();
data.code = 'CarWash';
data.duanNum = 3;
return true;
}
}

File diff suppressed because it is too large Load Diff