From de4f21a50e5c8a5892c4d9cd952d1d5f22e46212 Mon Sep 17 00:00:00 2001 From: Sjh <55341701@qq.com> Date: Tue, 27 Feb 2024 10:30:39 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]app-key=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/ui/app-key/add-key.html | 15 + src/app/ui/app-key/app-key.component.html | 39 ++ src/app/ui/app-key/app-key.component.scss | 18 + src/app/ui/app-key/app-key.component.spec.ts | 25 ++ src/app/ui/app-key/app-key.component.ts | 99 +++++ src/app/ui/ui-routing.module.ts | 86 ++-- src/app/ui/ui.module.ts | 398 +++++++++++++------ src/index.html | 4 +- src/styles.scss | 2 +- 9 files changed, 528 insertions(+), 158 deletions(-) create mode 100644 src/app/ui/app-key/add-key.html create mode 100644 src/app/ui/app-key/app-key.component.html create mode 100644 src/app/ui/app-key/app-key.component.scss create mode 100644 src/app/ui/app-key/app-key.component.spec.ts create mode 100644 src/app/ui/app-key/app-key.component.ts diff --git a/src/app/ui/app-key/add-key.html b/src/app/ui/app-key/add-key.html new file mode 100644 index 0000000..ab8e130 --- /dev/null +++ b/src/app/ui/app-key/add-key.html @@ -0,0 +1,15 @@ +

新增App-Key

+
+ + app名称 + + + + 厂商名称 + + +
+
+ + +
\ No newline at end of file diff --git a/src/app/ui/app-key/app-key.component.html b/src/app/ui/app-key/app-key.component.html new file mode 100644 index 0000000..6ecb3fa --- /dev/null +++ b/src/app/ui/app-key/app-key.component.html @@ -0,0 +1,39 @@ +
+ + + + 序号 + + {{i+1}} + + + + appKey + {{element.id}} + + + app名称 + {{element.applicationName}} + + + 厂商 + {{element.companyName}} + + + appSecret + {{element.appSecret}} + + + 创建时间 + {{element.creationTime | date:'yyyy-MM-dd HH:mm:ss' }} + + + 操作 + + 删除 + + + + + +
\ No newline at end of file diff --git a/src/app/ui/app-key/app-key.component.scss b/src/app/ui/app-key/app-key.component.scss new file mode 100644 index 0000000..684fab2 --- /dev/null +++ b/src/app/ui/app-key/app-key.component.scss @@ -0,0 +1,18 @@ +.app_key_box { + box-sizing: border-box; + padding: 10px 20px; +} +button { + margin-bottom: 10px; +} + +table { + width: 100%; +} +.mat-column-num { + flex: 0.3; +} +.delete { + cursor: pointer; + color: #f44336; +} diff --git a/src/app/ui/app-key/app-key.component.spec.ts b/src/app/ui/app-key/app-key.component.spec.ts new file mode 100644 index 0000000..f7f6587 --- /dev/null +++ b/src/app/ui/app-key/app-key.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { AppKeyComponent } from './app-key.component'; + +describe('AppKeyComponent', () => { + let component: AppKeyComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ AppKeyComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(AppKeyComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/ui/app-key/app-key.component.ts b/src/app/ui/app-key/app-key.component.ts new file mode 100644 index 0000000..73730e9 --- /dev/null +++ b/src/app/ui/app-key/app-key.component.ts @@ -0,0 +1,99 @@ +import { HttpClient } from "@angular/common/http"; +import { Component, Inject, OnInit } from "@angular/core"; +import { + MatDialog, + MatDialogRef, + MAT_DIALOG_DATA, +} from "@angular/material/dialog"; +import { MatSnackBar } from "@angular/material/snack-bar"; + +@Component({ + selector: "app-app-key", + templateUrl: "./app-key.component.html", + styleUrls: ["./app-key.component.scss"], +}) +export class AppKeyComponent implements OnInit { + constructor(public dialog: MatDialog, private http: HttpClient) {} + displayedColumns: string[] = [ + "num", + "id", + "applicationName", + "companyName", + "appSecret", + "creationTime", + "operate", + ]; + dataSource: any; + ngOnInit(): void { + this.getList(); + } + + getList() { + this.http.get("/api/ExternalApplications").subscribe((res) => { + this.dataSource = res; + }); + } + openDialog(): void { + const dialogRef = this.dialog.open(AddKeyDialog, { + width: "300px", + data: {}, + }); + dialogRef.afterClosed().subscribe((result) => { + console.log("uuu", result); + if (result) { + console.log("uuu", this.dataSource); + this.dataSource.push(result); + this.dataSource = [...this.dataSource]; + } + }); + } + delete(element, index) { + const isTrue = confirm("你确定要删除这个AppKey吗?"); + if (isTrue) { + this.http + .delete(`/api/ExternalApplications/${element.id}`) + .subscribe((res) => { + console.log("删除成功"); + this.dataSource.splice(index, 1); + this.dataSource = [...this.dataSource]; + }); + } + } +} + +@Component({ + selector: "add-key", + templateUrl: "./add-key.html", +}) +export class AddKeyDialog { + constructor( + private http: HttpClient, + public dialogRef: MatDialogRef, + @Inject(MAT_DIALOG_DATA) public data: any, + private _snackBar: MatSnackBar + ) {} + + nameData = { + applicationName: "", + companyName: "", + }; + + onNoClick(): void { + this.dialogRef.close(); + } + + onClick() { + if (!this.nameData.applicationName || !this.nameData.companyName) { + return; + } + let body = this.nameData; + this.http.post("/api/ExternalApplications", body).subscribe((res) => { + this.dialogRef.close(res); + this._snackBar.open("新建成功", "确定", { + duration: 500, + horizontalPosition: "center", + verticalPosition: "top", + }); + }); + } +} diff --git a/src/app/ui/ui-routing.module.ts b/src/app/ui/ui-routing.module.ts index b8bf4c7..021d9aa 100644 --- a/src/app/ui/ui-routing.module.ts +++ b/src/app/ui/ui-routing.module.ts @@ -1,53 +1,59 @@ /* - * @Descripttion: - * @version: + * @Descripttion: + * @version: * @Author: sueRimn * @Date: 2021-01-29 15:54:45 * @LastEditors: sueRimn * @LastEditTime: 2021-05-20 10:14:47 */ -import { Routes, RouterModule } from '@angular/router'; -import { NgModule } from '@angular/core'; -import { UiComponent } from './ui.component'; -import { PaginatorComponent } from './paginator/paginator.component'; -import { UserdataComponent } from './userdata/userdata.component'; -import { OrganizationComponent } from './organization/organization.component'; -import { UnittypeComponent } from './unittype/unittype.component'; -import { AuthorityComponent } from './authority/authority.component'; -import { RoleComponent } from './role/role.component'; -import { UsermanagementComponent } from './usermanagement/usermanagement.component'; -import { NavmenusComponent } from './navmenus/navmenus.component'; -import { FireProtectionElementsComponent } from './fire-protection-elements/fire-protection-elements.component'; -import {MaterialBankComponent} from './material-bank/material-bank.component' -import {UnitInformationComponent} from './unit-information/unit-information.component' -import { EnterpriseuserComponent } from './enterpriseuser/enterpriseuser.component'; -import { FireFightingFacilitiesFormworkComponent } from './fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component' -import { CollectionToolsComponent } from './collection-tools/collection-tools.component'; -import { PlanTemplateComponent } from './plan-template/plan-template.component' - - +import { Routes, RouterModule } from "@angular/router"; +import { NgModule } from "@angular/core"; +import { UiComponent } from "./ui.component"; +import { PaginatorComponent } from "./paginator/paginator.component"; +import { UserdataComponent } from "./userdata/userdata.component"; +import { OrganizationComponent } from "./organization/organization.component"; +import { UnittypeComponent } from "./unittype/unittype.component"; +import { AuthorityComponent } from "./authority/authority.component"; +import { RoleComponent } from "./role/role.component"; +import { UsermanagementComponent } from "./usermanagement/usermanagement.component"; +import { NavmenusComponent } from "./navmenus/navmenus.component"; +import { FireProtectionElementsComponent } from "./fire-protection-elements/fire-protection-elements.component"; +import { MaterialBankComponent } from "./material-bank/material-bank.component"; +import { UnitInformationComponent } from "./unit-information/unit-information.component"; +import { EnterpriseuserComponent } from "./enterpriseuser/enterpriseuser.component"; +import { FireFightingFacilitiesFormworkComponent } from "./fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component"; +import { CollectionToolsComponent } from "./collection-tools/collection-tools.component"; +import { PlanTemplateComponent } from "./plan-template/plan-template.component"; +import { AppKeyComponent } from "./app-key/app-key.component"; const routes: Routes = [ - { path: '', component: UiComponent}, - { path: 'paginator', component:PaginatorComponent }, - { path: 'userdata', component:UserdataComponent }, - { path: 'organization', component:OrganizationComponent }, - { path: 'unittype', component:UnittypeComponent }, - { path: 'authority', component:AuthorityComponent }, - { path: 'role', component:RoleComponent }, - { path: 'usermanagement', component:UsermanagementComponent }, - { path: 'navmenus', component:NavmenusComponent }, - { path: 'fireProtectionElements', component:FireProtectionElementsComponent }, - { path: 'materialBank', component:MaterialBankComponent }, - { path: 'unitInformation', component:UnitInformationComponent }, - { path: 'enterpriseuser', component:EnterpriseuserComponent }, - { path: 'fireFightingFacilitiesFormwork', component:FireFightingFacilitiesFormworkComponent }, - { path: 'collectionTools', component:CollectionToolsComponent }, - { path: 'PlanTemplate', component:PlanTemplateComponent }, + { path: "", component: UiComponent }, + { path: "paginator", component: PaginatorComponent }, + { path: "userdata", component: UserdataComponent }, + { path: "organization", component: OrganizationComponent }, + { path: "unittype", component: UnittypeComponent }, + { path: "authority", component: AuthorityComponent }, + { path: "role", component: RoleComponent }, + { path: "usermanagement", component: UsermanagementComponent }, + { path: "navmenus", component: NavmenusComponent }, + { + path: "fireProtectionElements", + component: FireProtectionElementsComponent, + }, + { path: "materialBank", component: MaterialBankComponent }, + { path: "unitInformation", component: UnitInformationComponent }, + { path: "enterpriseuser", component: EnterpriseuserComponent }, + { + path: "fireFightingFacilitiesFormwork", + component: FireFightingFacilitiesFormworkComponent, + }, + { path: "collectionTools", component: CollectionToolsComponent }, + { path: "PlanTemplate", component: PlanTemplateComponent }, + { path: "appkey", component: AppKeyComponent }, ]; @NgModule({ - imports: [RouterModule.forChild(routes)], - exports: [RouterModule] + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], }) export class UiRoutingModule {} diff --git a/src/app/ui/ui.module.ts b/src/app/ui/ui.module.ts index 98cacde..c45c276 100644 --- a/src/app/ui/ui.module.ts +++ b/src/app/ui/ui.module.ts @@ -1,113 +1,282 @@ -import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; -import { UiComponent } from './ui.component'; -import { UiRoutingModule } from './ui-routing.module'; -import { A11yModule } from '@angular/cdk/a11y'; -import { DragDropModule } from '@angular/cdk/drag-drop'; -import { PortalModule } from '@angular/cdk/portal'; -import { ScrollingModule } from '@angular/cdk/scrolling'; -import { CdkStepperModule } from '@angular/cdk/stepper'; -import { CdkTableModule } from '@angular/cdk/table'; -import { CdkTreeModule } from '@angular/cdk/tree'; -import { MatAutocompleteModule } from '@angular/material/autocomplete'; -import { MatBadgeModule } from '@angular/material/badge'; -import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; -import { MatButtonModule } from '@angular/material/button'; -import { MatButtonToggleModule } from '@angular/material/button-toggle'; -import { MatCardModule } from '@angular/material/card'; -import { MatCheckboxModule } from '@angular/material/checkbox'; -import { MatChipsModule } from '@angular/material/chips'; -import { MatStepperModule } from '@angular/material/stepper'; -import { MatDatepickerModule } from '@angular/material/datepicker'; -import { MatDialogModule } from '@angular/material/dialog'; -import { MatDividerModule } from '@angular/material/divider'; -import { MatExpansionModule } from '@angular/material/expansion'; -import { MatGridListModule } from '@angular/material/grid-list'; -import { MatIconModule } from '@angular/material/icon'; -import { MatInputModule } from '@angular/material/input'; -import { MatListModule } from '@angular/material/list'; -import { MatMenuModule } from '@angular/material/menu'; -import { MatNativeDateModule, MatRippleModule, MatOption } from '@angular/material/core'; -import { MatPaginatorModule } from '@angular/material/paginator'; -import { MatProgressBarModule } from '@angular/material/progress-bar'; -import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; -import { MatRadioModule } from '@angular/material/radio'; -import { MatSelectModule } from '@angular/material/select'; -import { MatSidenavModule } from '@angular/material/sidenav'; -import { MatSliderModule } from '@angular/material/slider'; -import { MatSlideToggleModule } from '@angular/material/slide-toggle'; -import { MatSnackBarModule } from '@angular/material/snack-bar'; -import { MatSortModule } from '@angular/material/sort'; -import { MatTableModule } from '@angular/material/table'; -import { MatTabsModule } from '@angular/material/tabs'; -import { MatToolbarModule } from '@angular/material/toolbar'; -import { MatTooltipModule } from '@angular/material/tooltip'; -import { MatTreeModule } from '@angular/material/tree'; -import { ReactiveFormsModule, FormsModule } from '@angular/forms'; -import { MatFormFieldModule } from '@angular/material/form-field'; -import { MatPaginatorIntl } from '@angular/material/paginator'; -import { PaginatorModule } from './paginator/paginator.module'; -import { UserdataComponent, EditUser } from './userdata/userdata.component'; -import { ChangepasswordComponent } from './changepassword/changepassword.component'; -import { OrganizationComponent, CreateOrganization, EditOrganization, addOffices, editOffices } from './organization/organization.component'; -import { UnittypeComponent, DialogOverviewExampleDialog, editorialUnit } from './unittype/unittype.component'; -import { AuthorityComponent, CreateAuthority } from './authority/authority.component'; -import { RoleComponent, CreateRole, EditRole } from './role/role.component'; -import { UsermanagementComponent, CreateNewUser, EditNewUser, allRoles, seeInformation } from './usermanagement/usermanagement.component'; -import { IsnoPipe } from '../pipes/boolean.pipe'; -import { ConfirmpswDirective } from './changepassword/equal-validator.directive' -import { TimePipe } from '../pipes/time.pipe'; -import { NavmenusComponent, CreateMenus, EditMenus } from './navmenus/navmenus.component'; -import { FireProtectionElementsComponent, Establish, EditingFireControl } from './fire-protection-elements/fire-protection-elements.component'; -import { FireFightingTemplateComponent, NewFireFighting, EditFireClassification } from './fire-fighting-template/fire-fighting-template.component'; -import { MaterialBankComponent, attributeComponent, addAttributeComponent, editAttribute } from './material-bank/material-bank.component'; -import { UnitInformationComponent, addUnitAttributeComponent, editUnitAttribute } from './unit-information/unit-information.component'; -import { AddMatLibrary } from './material-bank/addmatlibrary.component'; -import { EditMatLibrary } from './material-bank/editmatlibrary.component'; -import { AddOriginalCopy } from './material-bank/addoriginalcopy.component'; -import { NzTreeModule } from 'ng-zorro-antd/tree'; -import { FileUploadModule } from 'ng2-file-upload' -import { EditOriginalCopy } from './material-bank/editoriginalcopy.component'; -import { SelectOriginalCopy } from './material-bank/selectoriginalcopy.component'; -import { EditUnitInfo } from './unit-information/editunitinfo.component'; -import { AddUnitInfo } from './unit-information/addunitinfo.component'; -import { AddGroups } from './unit-information/addgroups.component'; -import { EditGroup } from './unit-information/editgroup.component'; -import { EnterpriseuserComponent, seeenterpriseuser, editenterpriseuser } from './enterpriseuser/enterpriseuser.component'; -import { AddEnterpriserUser } from './enterpriseuser/addenterpriseuser.component'; -import { FireFightingFacilitiesFormworkComponent, addFireFightingFacilitiesFormworkComponent, editFireFightingFacilitiesFormworkComponent, addBuiltInComponent, addBuiltInAttributeComponent, addOptionalComponent, addOptionalAttributeComponent, editBuiltInAttributeComponent, editOptionalAttributeComponent } from './fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component'; -import { CollectionToolsComponent, Organization } from './collection-tools/collection-tools.component'; -import { WorkingAreaComponent } from '../working-area/working-area.component'; -import { leftFunctionalDomainComponent, editPlaneFigureComponent, addDisposalNodeComponent, editDisposalNodeComponent, addBGCDisposalNodeComponent } from './collection-tools/leftFunctionalDomain' -import { saveOneDialog, saveTwoDialog } from './collection-tools/save'; -import { CollectionToolsPlanComponent, CreateBuildingPlan, EditBuildingPlan } from './collection-tools-plan/collection-tools.component'; -import { editPlaneFigureComponentPlan, leftFunctionalDomainComponentPlan } from './collection-tools-plan/leftFunctionalDomain'; -import { CollectionToolsBuildingComponent, CreateBuildingBuilding, EditBuildingBuilding } from './collection-tools-building/collection-tools.component' -import { leftFunctionalDomainBuildingComponent, editPlaneFigureBuildingComponent } from './collection-tools-building/leftFunctionalDomain'; -import { PlanTemplateComponent } from './plan-template/plan-template.component' -import { addPlanname } from './plan-template/plan-template.component' -import { upPlanname } from './plan-template/plan-template.component' -import { addGroup } from './plan-template/plan-template.component' -import { adddwsurvey } from './plan-template/plan-template.component' -import { addattinf } from './plan-template/plan-template.component' -import { disaster } from './plan-template/plan-template.component' -import { BrowserModule } from '@angular/platform-browser'; -import { TreeDiagramModule } from './ng-tree-diagram/src/ng-tree-diagram'; -import { zdyaddGroup } from './plan-template/plan-template.component' -import { zdyaddattinf } from './plan-template/plan-template.component' -import { zdydisaster } from './plan-template/plan-template.component' -import { updataHl } from './plan-template/plan-template.component' - +import { NgModule } from "@angular/core"; +import { CommonModule } from "@angular/common"; +import { UiComponent } from "./ui.component"; +import { UiRoutingModule } from "./ui-routing.module"; +import { A11yModule } from "@angular/cdk/a11y"; +import { DragDropModule } from "@angular/cdk/drag-drop"; +import { PortalModule } from "@angular/cdk/portal"; +import { ScrollingModule } from "@angular/cdk/scrolling"; +import { CdkStepperModule } from "@angular/cdk/stepper"; +import { CdkTableModule } from "@angular/cdk/table"; +import { CdkTreeModule } from "@angular/cdk/tree"; +import { MatAutocompleteModule } from "@angular/material/autocomplete"; +import { MatBadgeModule } from "@angular/material/badge"; +import { MatBottomSheetModule } from "@angular/material/bottom-sheet"; +import { MatButtonModule } from "@angular/material/button"; +import { MatButtonToggleModule } from "@angular/material/button-toggle"; +import { MatCardModule } from "@angular/material/card"; +import { MatCheckboxModule } from "@angular/material/checkbox"; +import { MatChipsModule } from "@angular/material/chips"; +import { MatStepperModule } from "@angular/material/stepper"; +import { MatDatepickerModule } from "@angular/material/datepicker"; +import { MatDialogModule } from "@angular/material/dialog"; +import { MatDividerModule } from "@angular/material/divider"; +import { MatExpansionModule } from "@angular/material/expansion"; +import { MatGridListModule } from "@angular/material/grid-list"; +import { MatIconModule } from "@angular/material/icon"; +import { MatInputModule } from "@angular/material/input"; +import { MatListModule } from "@angular/material/list"; +import { MatMenuModule } from "@angular/material/menu"; +import { + MatNativeDateModule, + MatRippleModule, + MatOption, +} from "@angular/material/core"; +import { MatPaginatorModule } from "@angular/material/paginator"; +import { MatProgressBarModule } from "@angular/material/progress-bar"; +import { MatProgressSpinnerModule } from "@angular/material/progress-spinner"; +import { MatRadioModule } from "@angular/material/radio"; +import { MatSelectModule } from "@angular/material/select"; +import { MatSidenavModule } from "@angular/material/sidenav"; +import { MatSliderModule } from "@angular/material/slider"; +import { MatSlideToggleModule } from "@angular/material/slide-toggle"; +import { MatSnackBarModule } from "@angular/material/snack-bar"; +import { MatSortModule } from "@angular/material/sort"; +import { MatTableModule } from "@angular/material/table"; +import { MatTabsModule } from "@angular/material/tabs"; +import { MatToolbarModule } from "@angular/material/toolbar"; +import { MatTooltipModule } from "@angular/material/tooltip"; +import { MatTreeModule } from "@angular/material/tree"; +import { ReactiveFormsModule, FormsModule } from "@angular/forms"; +import { MatFormFieldModule } from "@angular/material/form-field"; +import { MatPaginatorIntl } from "@angular/material/paginator"; +import { PaginatorModule } from "./paginator/paginator.module"; +import { UserdataComponent, EditUser } from "./userdata/userdata.component"; +import { ChangepasswordComponent } from "./changepassword/changepassword.component"; +import { + OrganizationComponent, + CreateOrganization, + EditOrganization, + addOffices, + editOffices, +} from "./organization/organization.component"; +import { + UnittypeComponent, + DialogOverviewExampleDialog, + editorialUnit, +} from "./unittype/unittype.component"; +import { + AuthorityComponent, + CreateAuthority, +} from "./authority/authority.component"; +import { RoleComponent, CreateRole, EditRole } from "./role/role.component"; +import { + UsermanagementComponent, + CreateNewUser, + EditNewUser, + allRoles, + seeInformation, +} from "./usermanagement/usermanagement.component"; +import { IsnoPipe } from "../pipes/boolean.pipe"; +import { ConfirmpswDirective } from "./changepassword/equal-validator.directive"; +import { TimePipe } from "../pipes/time.pipe"; +import { + NavmenusComponent, + CreateMenus, + EditMenus, +} from "./navmenus/navmenus.component"; +import { + FireProtectionElementsComponent, + Establish, + EditingFireControl, +} from "./fire-protection-elements/fire-protection-elements.component"; +import { + FireFightingTemplateComponent, + NewFireFighting, + EditFireClassification, +} from "./fire-fighting-template/fire-fighting-template.component"; +import { + MaterialBankComponent, + attributeComponent, + addAttributeComponent, + editAttribute, +} from "./material-bank/material-bank.component"; +import { + UnitInformationComponent, + addUnitAttributeComponent, + editUnitAttribute, +} from "./unit-information/unit-information.component"; +import { AddMatLibrary } from "./material-bank/addmatlibrary.component"; +import { EditMatLibrary } from "./material-bank/editmatlibrary.component"; +import { AddOriginalCopy } from "./material-bank/addoriginalcopy.component"; +import { NzTreeModule } from "ng-zorro-antd/tree"; +import { FileUploadModule } from "ng2-file-upload"; +import { EditOriginalCopy } from "./material-bank/editoriginalcopy.component"; +import { SelectOriginalCopy } from "./material-bank/selectoriginalcopy.component"; +import { EditUnitInfo } from "./unit-information/editunitinfo.component"; +import { AddUnitInfo } from "./unit-information/addunitinfo.component"; +import { AddGroups } from "./unit-information/addgroups.component"; +import { EditGroup } from "./unit-information/editgroup.component"; +import { + EnterpriseuserComponent, + seeenterpriseuser, + editenterpriseuser, +} from "./enterpriseuser/enterpriseuser.component"; +import { AddEnterpriserUser } from "./enterpriseuser/addenterpriseuser.component"; +import { + FireFightingFacilitiesFormworkComponent, + addFireFightingFacilitiesFormworkComponent, + editFireFightingFacilitiesFormworkComponent, + addBuiltInComponent, + addBuiltInAttributeComponent, + addOptionalComponent, + addOptionalAttributeComponent, + editBuiltInAttributeComponent, + editOptionalAttributeComponent, +} from "./fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component"; +import { + CollectionToolsComponent, + Organization, +} from "./collection-tools/collection-tools.component"; +import { WorkingAreaComponent } from "../working-area/working-area.component"; +import { + leftFunctionalDomainComponent, + editPlaneFigureComponent, + addDisposalNodeComponent, + editDisposalNodeComponent, + addBGCDisposalNodeComponent, +} from "./collection-tools/leftFunctionalDomain"; +import { saveOneDialog, saveTwoDialog } from "./collection-tools/save"; +import { + CollectionToolsPlanComponent, + CreateBuildingPlan, + EditBuildingPlan, +} from "./collection-tools-plan/collection-tools.component"; +import { + editPlaneFigureComponentPlan, + leftFunctionalDomainComponentPlan, +} from "./collection-tools-plan/leftFunctionalDomain"; +import { + CollectionToolsBuildingComponent, + CreateBuildingBuilding, + EditBuildingBuilding, +} from "./collection-tools-building/collection-tools.component"; +import { + leftFunctionalDomainBuildingComponent, + editPlaneFigureBuildingComponent, +} from "./collection-tools-building/leftFunctionalDomain"; +import { PlanTemplateComponent } from "./plan-template/plan-template.component"; +import { addPlanname } from "./plan-template/plan-template.component"; +import { upPlanname } from "./plan-template/plan-template.component"; +import { addGroup } from "./plan-template/plan-template.component"; +import { adddwsurvey } from "./plan-template/plan-template.component"; +import { addattinf } from "./plan-template/plan-template.component"; +import { disaster } from "./plan-template/plan-template.component"; +import { TreeDiagramModule } from "./ng-tree-diagram/src/ng-tree-diagram"; +import { zdyaddGroup } from "./plan-template/plan-template.component"; +import { zdyaddattinf } from "./plan-template/plan-template.component"; +import { zdydisaster } from "./plan-template/plan-template.component"; +import { updataHl } from "./plan-template/plan-template.component"; +import { AddKeyDialog, AppKeyComponent } from "./app-key/app-key.component"; @NgModule({ - declarations: [UiComponent, UserdataComponent, ChangepasswordComponent, OrganizationComponent, UnittypeComponent, AuthorityComponent, RoleComponent, UsermanagementComponent, - IsnoPipe, ConfirmpswDirective, DialogOverviewExampleDialog, CreateAuthority, CreateRole, TimePipe, CreateNewUser, EditNewUser, allRoles, EditRole, CreateOrganization, EditOrganization, - seeInformation, EditUser, editorialUnit, FireProtectionElementsComponent, Establish, EditingFireControl, FireFightingTemplateComponent, NavmenusComponent, CreateMenus, EditMenus, - NewFireFighting, EditFireClassification, MaterialBankComponent, UnitInformationComponent, AddMatLibrary, EditMatLibrary, attributeComponent, AddOriginalCopy, addAttributeComponent, - editAttribute, EditOriginalCopy, SelectOriginalCopy, EditUnitInfo, AddUnitInfo, AddGroups, EditGroup, EnterpriseuserComponent, AddEnterpriserUser, addUnitAttributeComponent, editUnitAttribute, - seeenterpriseuser, editenterpriseuser, FireFightingFacilitiesFormworkComponent, addFireFightingFacilitiesFormworkComponent, editFireFightingFacilitiesFormworkComponent, addBuiltInComponent, - addBuiltInAttributeComponent, addOptionalComponent, addOptionalAttributeComponent, editBuiltInAttributeComponent, editOptionalAttributeComponent, CollectionToolsComponent, WorkingAreaComponent, leftFunctionalDomainComponent, editPlaneFigureComponent, saveOneDialog, saveTwoDialog, addDisposalNodeComponent, editDisposalNodeComponent, CollectionToolsPlanComponent, - CreateBuildingPlan, EditBuildingPlan, leftFunctionalDomainComponentPlan, editPlaneFigureComponentPlan, addOffices, editOffices, addBGCDisposalNodeComponent, CollectionToolsBuildingComponent, CreateBuildingBuilding, - EditBuildingBuilding, leftFunctionalDomainBuildingComponent, editPlaneFigureBuildingComponent, Organization, PlanTemplateComponent, addPlanname, upPlanname, addGroup, adddwsurvey, addattinf, disaster, zdyaddGroup, zdyaddattinf, zdydisaster, updataHl], + declarations: [ + UiComponent, + UserdataComponent, + ChangepasswordComponent, + OrganizationComponent, + UnittypeComponent, + AuthorityComponent, + RoleComponent, + UsermanagementComponent, + IsnoPipe, + ConfirmpswDirective, + DialogOverviewExampleDialog, + CreateAuthority, + CreateRole, + TimePipe, + CreateNewUser, + EditNewUser, + allRoles, + EditRole, + CreateOrganization, + EditOrganization, + seeInformation, + EditUser, + editorialUnit, + FireProtectionElementsComponent, + Establish, + EditingFireControl, + FireFightingTemplateComponent, + NavmenusComponent, + CreateMenus, + EditMenus, + NewFireFighting, + EditFireClassification, + MaterialBankComponent, + UnitInformationComponent, + AddMatLibrary, + EditMatLibrary, + attributeComponent, + AddOriginalCopy, + addAttributeComponent, + editAttribute, + EditOriginalCopy, + SelectOriginalCopy, + EditUnitInfo, + AddUnitInfo, + AddGroups, + EditGroup, + EnterpriseuserComponent, + AddEnterpriserUser, + addUnitAttributeComponent, + editUnitAttribute, + seeenterpriseuser, + editenterpriseuser, + FireFightingFacilitiesFormworkComponent, + addFireFightingFacilitiesFormworkComponent, + editFireFightingFacilitiesFormworkComponent, + addBuiltInComponent, + addBuiltInAttributeComponent, + addOptionalComponent, + addOptionalAttributeComponent, + editBuiltInAttributeComponent, + editOptionalAttributeComponent, + CollectionToolsComponent, + WorkingAreaComponent, + leftFunctionalDomainComponent, + editPlaneFigureComponent, + saveOneDialog, + saveTwoDialog, + addDisposalNodeComponent, + editDisposalNodeComponent, + CollectionToolsPlanComponent, + CreateBuildingPlan, + EditBuildingPlan, + leftFunctionalDomainComponentPlan, + editPlaneFigureComponentPlan, + addOffices, + editOffices, + addBGCDisposalNodeComponent, + CollectionToolsBuildingComponent, + CreateBuildingBuilding, + EditBuildingBuilding, + leftFunctionalDomainBuildingComponent, + editPlaneFigureBuildingComponent, + Organization, + PlanTemplateComponent, + addPlanname, + upPlanname, + addGroup, + adddwsurvey, + addattinf, + disaster, + zdyaddGroup, + zdyaddattinf, + zdydisaster, + updataHl, + AppKeyComponent, + AddKeyDialog, + ], imports: [ CommonModule, @@ -159,16 +328,15 @@ import { updataHl } from './plan-template/plan-template.component' FormsModule, PaginatorModule, FileUploadModule, - //BrowserModule, - TreeDiagramModule + TreeDiagramModule, ], - + entryComponents: [AddKeyDialog], exports: [ CollectionToolsComponent, CollectionToolsBuildingComponent, CollectionToolsPlanComponent, - ConfirmpswDirective - ] + ConfirmpswDirective, + ], }) -export class UiModule { } +export class UiModule {} diff --git a/src/index.html b/src/index.html index 3931af2..fac3faa 100644 --- a/src/index.html +++ b/src/index.html @@ -24,9 +24,9 @@ securityJsCode: '0afa0b144398727fad2ca06f5f7156b3' } - - + --> diff --git a/src/styles.scss b/src/styles.scss index a7998ed..2b54217 100644 --- a/src/styles.scss +++ b/src/styles.scss @@ -6,7 +6,7 @@ @import "~ng-zorro-antd/date-picker/style/index.min.css"; @import "~ng-zorro-antd/input/style/index.min.css"; @import "~ng-zorro-antd/button/style/index.min.css"; - +@import "~ng-zorro-antd/modal/style/index.min.css"; /* 引入组件样式 */ @font-face { font-family: Regular;