From b5036c35b203bf14d1616ee1fe1720a4211e9330 Mon Sep 17 00:00:00 2001 From: liuxianghui <519646741@qq.com> Date: Fri, 12 Nov 2021 09:21:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/babylon/model/data/mark/mark-plan-data.ts | 10 ++++++++++ src/app/pages/pages.module.ts | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/app/babylon/model/data/mark/mark-plan-data.ts b/src/app/babylon/model/data/mark/mark-plan-data.ts index 68fb3f9..1e4e751 100644 --- a/src/app/babylon/model/data/mark/mark-plan-data.ts +++ b/src/app/babylon/model/data/mark/mark-plan-data.ts @@ -225,6 +225,16 @@ export class MarkNodeData { @Type(() => NatureData) natureData: NatureData; + /** + * 描述 + */ + describe: string; + + /** + * 图片(或视频?) + */ + texture: string; + constructor(id: number, name: string) { this.id = id; diff --git a/src/app/pages/pages.module.ts b/src/app/pages/pages.module.ts index 470eb6a..73c0fc2 100644 --- a/src/app/pages/pages.module.ts +++ b/src/app/pages/pages.module.ts @@ -1,4 +1,4 @@ -import { NgModule } from '@angular/core'; +import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; import { CommonModule } from '@angular/common'; import { A11yModule } from '@angular/cdk/a11y'; import { DragDropModule } from '@angular/cdk/drag-drop'; @@ -37,6 +37,8 @@ import { OilStationInfoComponent } from './oil-station-info/oil-station-info.com import { LeftDomainComponent } from './left-domain/left-domain.component'; import { AddequipmentComponent } from './equipment-info/addequipment/addequipment.component'; import { EditequipmentComponent } from './equipment-info/editequipment/editequipment.component'; + + @NgModule({ declarations: [LoginComponent, RegisterComponent, HomeComponent, PlanComponent, TodayWarningComponent, CriminalRecordsComponent, TodayWarningAdminComponent, CriminalRecordsAdminComponent, LeftDomainComponent, EquipmentInfoComponent, OilStationInfoComponent, AddequipmentComponent, EditequipmentComponent], imports: [ @@ -67,6 +69,8 @@ import { EditequipmentComponent } from './equipment-info/editequipment/editequip NzSpinModule, NzTreeModule ], - entryComponents :[AddequipmentComponent,EditequipmentComponent] + entryComponents: [AddequipmentComponent, EditequipmentComponent], + schemas: [CUSTOM_ELEMENTS_SCHEMA] + }) export class PagesModule { }