Browse Source

[新增]app-key申请

master
邵佳豪 1 year ago
parent
commit
de4f21a50e
  1. 15
      src/app/ui/app-key/add-key.html
  2. 39
      src/app/ui/app-key/app-key.component.html
  3. 18
      src/app/ui/app-key/app-key.component.scss
  4. 25
      src/app/ui/app-key/app-key.component.spec.ts
  5. 99
      src/app/ui/app-key/app-key.component.ts
  6. 86
      src/app/ui/ui-routing.module.ts
  7. 398
      src/app/ui/ui.module.ts
  8. 4
      src/index.html
  9. 2
      src/styles.scss

15
src/app/ui/app-key/add-key.html

@ -0,0 +1,15 @@
<h1 mat-dialog-title>新增App-Key</h1>
<div mat-dialog-content>
<mat-form-field style="width: 100%;">
<mat-label>app名称</mat-label>
<input matInput [(ngModel)]="nameData.applicationName">
</mat-form-field>
<mat-form-field style="width: 100%;">
<mat-label>厂商名称</mat-label>
<input matInput [(ngModel)]="nameData.companyName">
</mat-form-field>
</div>
<div mat-dialog-actions>
<button mat-button (click)="onNoClick()">取消</button>
<button mat-button (click)="onClick()" cdkFocusInitial>确定</button>
</div>

39
src/app/ui/app-key/app-key.component.html

@ -0,0 +1,39 @@
<div class="app_key_box">
<button mat-flat-button color="primary" (click)="openDialog()">新增appKey</button>
<mat-table [dataSource]="dataSource" class="mat-elevation-z8">
<ng-container matColumnDef="num">
<mat-header-cell *matHeaderCellDef> 序号 </mat-header-cell>
<mat-cell *matCellDef="let element;let i =index">
{{i+1}}
</mat-cell>
</ng-container>
<ng-container matColumnDef="id">
<mat-header-cell *matHeaderCellDef> appKey </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.id}} </mat-cell>
</ng-container>
<ng-container matColumnDef="applicationName">
<mat-header-cell *matHeaderCellDef> app名称 </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.applicationName}} </mat-cell>
</ng-container>
<ng-container matColumnDef="companyName">
<mat-header-cell *matHeaderCellDef> 厂商 </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.companyName}} </mat-cell>
</ng-container>
<ng-container matColumnDef="appSecret">
<mat-header-cell *matHeaderCellDef> appSecret </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.appSecret}} </mat-cell>
</ng-container>
<ng-container matColumnDef="creationTime">
<mat-header-cell *matHeaderCellDef> 创建时间 </mat-header-cell>
<mat-cell *matCellDef="let element"> {{element.creationTime | date:'yyyy-MM-dd HH:mm:ss' }} </mat-cell>
</ng-container>
<ng-container matColumnDef="operate">
<mat-header-cell *matHeaderCellDef> 操作 </mat-header-cell>
<mat-cell *matCellDef="let element;let i =index">
<span class="delete" (click)="delete(element,i)">删除</span>
</mat-cell>
</ng-container>
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
<mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
</mat-table>
</div>

18
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;
}

25
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<AppKeyComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ AppKeyComponent ]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(AppKeyComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

99
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<AddKeyDialog>,
@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",
});
});
}
}

86
src/app/ui/ui-routing.module.ts

@ -1,53 +1,59 @@
/* /*
* @Descripttion: * @Descripttion:
* @version: * @version:
* @Author: sueRimn * @Author: sueRimn
* @Date: 2021-01-29 15:54:45 * @Date: 2021-01-29 15:54:45
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-05-20 10:14:47 * @LastEditTime: 2021-05-20 10:14:47
*/ */
import { Routes, RouterModule } from '@angular/router'; import { Routes, RouterModule } from "@angular/router";
import { NgModule } from '@angular/core'; import { NgModule } from "@angular/core";
import { UiComponent } from './ui.component'; import { UiComponent } from "./ui.component";
import { PaginatorComponent } from './paginator/paginator.component'; import { PaginatorComponent } from "./paginator/paginator.component";
import { UserdataComponent } from './userdata/userdata.component'; import { UserdataComponent } from "./userdata/userdata.component";
import { OrganizationComponent } from './organization/organization.component'; import { OrganizationComponent } from "./organization/organization.component";
import { UnittypeComponent } from './unittype/unittype.component'; import { UnittypeComponent } from "./unittype/unittype.component";
import { AuthorityComponent } from './authority/authority.component'; import { AuthorityComponent } from "./authority/authority.component";
import { RoleComponent } from './role/role.component'; import { RoleComponent } from "./role/role.component";
import { UsermanagementComponent } from './usermanagement/usermanagement.component'; import { UsermanagementComponent } from "./usermanagement/usermanagement.component";
import { NavmenusComponent } from './navmenus/navmenus.component'; import { NavmenusComponent } from "./navmenus/navmenus.component";
import { FireProtectionElementsComponent } from './fire-protection-elements/fire-protection-elements.component'; import { FireProtectionElementsComponent } from "./fire-protection-elements/fire-protection-elements.component";
import {MaterialBankComponent} from './material-bank/material-bank.component' import { MaterialBankComponent } from "./material-bank/material-bank.component";
import {UnitInformationComponent} from './unit-information/unit-information.component' import { UnitInformationComponent } from "./unit-information/unit-information.component";
import { EnterpriseuserComponent } from './enterpriseuser/enterpriseuser.component'; import { EnterpriseuserComponent } from "./enterpriseuser/enterpriseuser.component";
import { FireFightingFacilitiesFormworkComponent } from './fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component' import { FireFightingFacilitiesFormworkComponent } from "./fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component";
import { CollectionToolsComponent } from './collection-tools/collection-tools.component'; import { CollectionToolsComponent } from "./collection-tools/collection-tools.component";
import { PlanTemplateComponent } from './plan-template/plan-template.component' import { PlanTemplateComponent } from "./plan-template/plan-template.component";
import { AppKeyComponent } from "./app-key/app-key.component";
const routes: Routes = [ const routes: Routes = [
{ path: '', component: UiComponent}, { path: "", component: UiComponent },
{ path: 'paginator', component:PaginatorComponent }, { path: "paginator", component: PaginatorComponent },
{ path: 'userdata', component:UserdataComponent }, { path: "userdata", component: UserdataComponent },
{ path: 'organization', component:OrganizationComponent }, { path: "organization", component: OrganizationComponent },
{ path: 'unittype', component:UnittypeComponent }, { path: "unittype", component: UnittypeComponent },
{ path: 'authority', component:AuthorityComponent }, { path: "authority", component: AuthorityComponent },
{ path: 'role', component:RoleComponent }, { path: "role", component: RoleComponent },
{ path: 'usermanagement', component:UsermanagementComponent }, { path: "usermanagement", component: UsermanagementComponent },
{ path: 'navmenus', component:NavmenusComponent }, { path: "navmenus", component: NavmenusComponent },
{ path: 'fireProtectionElements', component:FireProtectionElementsComponent }, {
{ path: 'materialBank', component:MaterialBankComponent }, path: "fireProtectionElements",
{ path: 'unitInformation', component:UnitInformationComponent }, component: FireProtectionElementsComponent,
{ path: 'enterpriseuser', component:EnterpriseuserComponent }, },
{ path: 'fireFightingFacilitiesFormwork', component:FireFightingFacilitiesFormworkComponent }, { path: "materialBank", component: MaterialBankComponent },
{ path: 'collectionTools', component:CollectionToolsComponent }, { path: "unitInformation", component: UnitInformationComponent },
{ path: 'PlanTemplate', component:PlanTemplateComponent }, { path: "enterpriseuser", component: EnterpriseuserComponent },
{
path: "fireFightingFacilitiesFormwork",
component: FireFightingFacilitiesFormworkComponent,
},
{ path: "collectionTools", component: CollectionToolsComponent },
{ path: "PlanTemplate", component: PlanTemplateComponent },
{ path: "appkey", component: AppKeyComponent },
]; ];
@NgModule({ @NgModule({
imports: [RouterModule.forChild(routes)], imports: [RouterModule.forChild(routes)],
exports: [RouterModule] exports: [RouterModule],
}) })
export class UiRoutingModule {} export class UiRoutingModule {}

398
src/app/ui/ui.module.ts

@ -1,113 +1,282 @@
import { NgModule } from '@angular/core'; import { NgModule } from "@angular/core";
import { CommonModule } from '@angular/common'; import { CommonModule } from "@angular/common";
import { UiComponent } from './ui.component'; import { UiComponent } from "./ui.component";
import { UiRoutingModule } from './ui-routing.module'; import { UiRoutingModule } from "./ui-routing.module";
import { A11yModule } from '@angular/cdk/a11y'; import { A11yModule } from "@angular/cdk/a11y";
import { DragDropModule } from '@angular/cdk/drag-drop'; import { DragDropModule } from "@angular/cdk/drag-drop";
import { PortalModule } from '@angular/cdk/portal'; import { PortalModule } from "@angular/cdk/portal";
import { ScrollingModule } from '@angular/cdk/scrolling'; import { ScrollingModule } from "@angular/cdk/scrolling";
import { CdkStepperModule } from '@angular/cdk/stepper'; import { CdkStepperModule } from "@angular/cdk/stepper";
import { CdkTableModule } from '@angular/cdk/table'; import { CdkTableModule } from "@angular/cdk/table";
import { CdkTreeModule } from '@angular/cdk/tree'; import { CdkTreeModule } from "@angular/cdk/tree";
import { MatAutocompleteModule } from '@angular/material/autocomplete'; import { MatAutocompleteModule } from "@angular/material/autocomplete";
import { MatBadgeModule } from '@angular/material/badge'; import { MatBadgeModule } from "@angular/material/badge";
import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; import { MatBottomSheetModule } from "@angular/material/bottom-sheet";
import { MatButtonModule } from '@angular/material/button'; import { MatButtonModule } from "@angular/material/button";
import { MatButtonToggleModule } from '@angular/material/button-toggle'; import { MatButtonToggleModule } from "@angular/material/button-toggle";
import { MatCardModule } from '@angular/material/card'; import { MatCardModule } from "@angular/material/card";
import { MatCheckboxModule } from '@angular/material/checkbox'; import { MatCheckboxModule } from "@angular/material/checkbox";
import { MatChipsModule } from '@angular/material/chips'; import { MatChipsModule } from "@angular/material/chips";
import { MatStepperModule } from '@angular/material/stepper'; import { MatStepperModule } from "@angular/material/stepper";
import { MatDatepickerModule } from '@angular/material/datepicker'; import { MatDatepickerModule } from "@angular/material/datepicker";
import { MatDialogModule } from '@angular/material/dialog'; import { MatDialogModule } from "@angular/material/dialog";
import { MatDividerModule } from '@angular/material/divider'; import { MatDividerModule } from "@angular/material/divider";
import { MatExpansionModule } from '@angular/material/expansion'; import { MatExpansionModule } from "@angular/material/expansion";
import { MatGridListModule } from '@angular/material/grid-list'; import { MatGridListModule } from "@angular/material/grid-list";
import { MatIconModule } from '@angular/material/icon'; import { MatIconModule } from "@angular/material/icon";
import { MatInputModule } from '@angular/material/input'; import { MatInputModule } from "@angular/material/input";
import { MatListModule } from '@angular/material/list'; import { MatListModule } from "@angular/material/list";
import { MatMenuModule } from '@angular/material/menu'; import { MatMenuModule } from "@angular/material/menu";
import { MatNativeDateModule, MatRippleModule, MatOption } from '@angular/material/core'; import {
import { MatPaginatorModule } from '@angular/material/paginator'; MatNativeDateModule,
import { MatProgressBarModule } from '@angular/material/progress-bar'; MatRippleModule,
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; MatOption,
import { MatRadioModule } from '@angular/material/radio'; } from "@angular/material/core";
import { MatSelectModule } from '@angular/material/select'; import { MatPaginatorModule } from "@angular/material/paginator";
import { MatSidenavModule } from '@angular/material/sidenav'; import { MatProgressBarModule } from "@angular/material/progress-bar";
import { MatSliderModule } from '@angular/material/slider'; import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
import { MatSlideToggleModule } from '@angular/material/slide-toggle'; import { MatRadioModule } from "@angular/material/radio";
import { MatSnackBarModule } from '@angular/material/snack-bar'; import { MatSelectModule } from "@angular/material/select";
import { MatSortModule } from '@angular/material/sort'; import { MatSidenavModule } from "@angular/material/sidenav";
import { MatTableModule } from '@angular/material/table'; import { MatSliderModule } from "@angular/material/slider";
import { MatTabsModule } from '@angular/material/tabs'; import { MatSlideToggleModule } from "@angular/material/slide-toggle";
import { MatToolbarModule } from '@angular/material/toolbar'; import { MatSnackBarModule } from "@angular/material/snack-bar";
import { MatTooltipModule } from '@angular/material/tooltip'; import { MatSortModule } from "@angular/material/sort";
import { MatTreeModule } from '@angular/material/tree'; import { MatTableModule } from "@angular/material/table";
import { ReactiveFormsModule, FormsModule } from '@angular/forms'; import { MatTabsModule } from "@angular/material/tabs";
import { MatFormFieldModule } from '@angular/material/form-field'; import { MatToolbarModule } from "@angular/material/toolbar";
import { MatPaginatorIntl } from '@angular/material/paginator'; import { MatTooltipModule } from "@angular/material/tooltip";
import { PaginatorModule } from './paginator/paginator.module'; import { MatTreeModule } from "@angular/material/tree";
import { UserdataComponent, EditUser } from './userdata/userdata.component'; import { ReactiveFormsModule, FormsModule } from "@angular/forms";
import { ChangepasswordComponent } from './changepassword/changepassword.component'; import { MatFormFieldModule } from "@angular/material/form-field";
import { OrganizationComponent, CreateOrganization, EditOrganization, addOffices, editOffices } from './organization/organization.component'; import { MatPaginatorIntl } from "@angular/material/paginator";
import { UnittypeComponent, DialogOverviewExampleDialog, editorialUnit } from './unittype/unittype.component'; import { PaginatorModule } from "./paginator/paginator.module";
import { AuthorityComponent, CreateAuthority } from './authority/authority.component'; import { UserdataComponent, EditUser } from "./userdata/userdata.component";
import { RoleComponent, CreateRole, EditRole } from './role/role.component'; import { ChangepasswordComponent } from "./changepassword/changepassword.component";
import { UsermanagementComponent, CreateNewUser, EditNewUser, allRoles, seeInformation } from './usermanagement/usermanagement.component'; import {
import { IsnoPipe } from '../pipes/boolean.pipe'; OrganizationComponent,
import { ConfirmpswDirective } from './changepassword/equal-validator.directive' CreateOrganization,
import { TimePipe } from '../pipes/time.pipe'; EditOrganization,
import { NavmenusComponent, CreateMenus, EditMenus } from './navmenus/navmenus.component'; addOffices,
import { FireProtectionElementsComponent, Establish, EditingFireControl } from './fire-protection-elements/fire-protection-elements.component'; editOffices,
import { FireFightingTemplateComponent, NewFireFighting, EditFireClassification } from './fire-fighting-template/fire-fighting-template.component'; } from "./organization/organization.component";
import { MaterialBankComponent, attributeComponent, addAttributeComponent, editAttribute } from './material-bank/material-bank.component'; import {
import { UnitInformationComponent, addUnitAttributeComponent, editUnitAttribute } from './unit-information/unit-information.component'; UnittypeComponent,
import { AddMatLibrary } from './material-bank/addmatlibrary.component'; DialogOverviewExampleDialog,
import { EditMatLibrary } from './material-bank/editmatlibrary.component'; editorialUnit,
import { AddOriginalCopy } from './material-bank/addoriginalcopy.component'; } from "./unittype/unittype.component";
import { NzTreeModule } from 'ng-zorro-antd/tree'; import {
import { FileUploadModule } from 'ng2-file-upload' AuthorityComponent,
import { EditOriginalCopy } from './material-bank/editoriginalcopy.component'; CreateAuthority,
import { SelectOriginalCopy } from './material-bank/selectoriginalcopy.component'; } from "./authority/authority.component";
import { EditUnitInfo } from './unit-information/editunitinfo.component'; import { RoleComponent, CreateRole, EditRole } from "./role/role.component";
import { AddUnitInfo } from './unit-information/addunitinfo.component'; import {
import { AddGroups } from './unit-information/addgroups.component'; UsermanagementComponent,
import { EditGroup } from './unit-information/editgroup.component'; CreateNewUser,
import { EnterpriseuserComponent, seeenterpriseuser, editenterpriseuser } from './enterpriseuser/enterpriseuser.component'; EditNewUser,
import { AddEnterpriserUser } from './enterpriseuser/addenterpriseuser.component'; allRoles,
import { FireFightingFacilitiesFormworkComponent, addFireFightingFacilitiesFormworkComponent, editFireFightingFacilitiesFormworkComponent, addBuiltInComponent, addBuiltInAttributeComponent, addOptionalComponent, addOptionalAttributeComponent, editBuiltInAttributeComponent, editOptionalAttributeComponent } from './fire-fighting-facilities-formwork/fire-fighting-facilities-formwork.component'; seeInformation,
import { CollectionToolsComponent, Organization } from './collection-tools/collection-tools.component'; } from "./usermanagement/usermanagement.component";
import { WorkingAreaComponent } from '../working-area/working-area.component'; import { IsnoPipe } from "../pipes/boolean.pipe";
import { leftFunctionalDomainComponent, editPlaneFigureComponent, addDisposalNodeComponent, editDisposalNodeComponent, addBGCDisposalNodeComponent } from './collection-tools/leftFunctionalDomain' import { ConfirmpswDirective } from "./changepassword/equal-validator.directive";
import { saveOneDialog, saveTwoDialog } from './collection-tools/save'; import { TimePipe } from "../pipes/time.pipe";
import { CollectionToolsPlanComponent, CreateBuildingPlan, EditBuildingPlan } from './collection-tools-plan/collection-tools.component'; import {
import { editPlaneFigureComponentPlan, leftFunctionalDomainComponentPlan } from './collection-tools-plan/leftFunctionalDomain'; NavmenusComponent,
import { CollectionToolsBuildingComponent, CreateBuildingBuilding, EditBuildingBuilding } from './collection-tools-building/collection-tools.component' CreateMenus,
import { leftFunctionalDomainBuildingComponent, editPlaneFigureBuildingComponent } from './collection-tools-building/leftFunctionalDomain'; EditMenus,
import { PlanTemplateComponent } from './plan-template/plan-template.component' } from "./navmenus/navmenus.component";
import { addPlanname } from './plan-template/plan-template.component' import {
import { upPlanname } from './plan-template/plan-template.component' FireProtectionElementsComponent,
import { addGroup } from './plan-template/plan-template.component' Establish,
import { adddwsurvey } from './plan-template/plan-template.component' EditingFireControl,
import { addattinf } from './plan-template/plan-template.component' } from "./fire-protection-elements/fire-protection-elements.component";
import { disaster } from './plan-template/plan-template.component' import {
import { BrowserModule } from '@angular/platform-browser'; FireFightingTemplateComponent,
import { TreeDiagramModule } from './ng-tree-diagram/src/ng-tree-diagram'; NewFireFighting,
import { zdyaddGroup } from './plan-template/plan-template.component' EditFireClassification,
import { zdyaddattinf } from './plan-template/plan-template.component' } from "./fire-fighting-template/fire-fighting-template.component";
import { zdydisaster } from './plan-template/plan-template.component' import {
import { updataHl } from './plan-template/plan-template.component' 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({ @NgModule({
declarations: [UiComponent, UserdataComponent, ChangepasswordComponent, OrganizationComponent, UnittypeComponent, AuthorityComponent, RoleComponent, UsermanagementComponent, declarations: [
IsnoPipe, ConfirmpswDirective, DialogOverviewExampleDialog, CreateAuthority, CreateRole, TimePipe, CreateNewUser, EditNewUser, allRoles, EditRole, CreateOrganization, EditOrganization, UiComponent,
seeInformation, EditUser, editorialUnit, FireProtectionElementsComponent, Establish, EditingFireControl, FireFightingTemplateComponent, NavmenusComponent, CreateMenus, EditMenus, UserdataComponent,
NewFireFighting, EditFireClassification, MaterialBankComponent, UnitInformationComponent, AddMatLibrary, EditMatLibrary, attributeComponent, AddOriginalCopy, addAttributeComponent, ChangepasswordComponent,
editAttribute, EditOriginalCopy, SelectOriginalCopy, EditUnitInfo, AddUnitInfo, AddGroups, EditGroup, EnterpriseuserComponent, AddEnterpriserUser, addUnitAttributeComponent, editUnitAttribute, OrganizationComponent,
seeenterpriseuser, editenterpriseuser, FireFightingFacilitiesFormworkComponent, addFireFightingFacilitiesFormworkComponent, editFireFightingFacilitiesFormworkComponent, addBuiltInComponent, UnittypeComponent,
addBuiltInAttributeComponent, addOptionalComponent, addOptionalAttributeComponent, editBuiltInAttributeComponent, editOptionalAttributeComponent, CollectionToolsComponent, WorkingAreaComponent, leftFunctionalDomainComponent, editPlaneFigureComponent, saveOneDialog, saveTwoDialog, addDisposalNodeComponent, editDisposalNodeComponent, CollectionToolsPlanComponent, AuthorityComponent,
CreateBuildingPlan, EditBuildingPlan, leftFunctionalDomainComponentPlan, editPlaneFigureComponentPlan, addOffices, editOffices, addBGCDisposalNodeComponent, CollectionToolsBuildingComponent, CreateBuildingBuilding, RoleComponent,
EditBuildingBuilding, leftFunctionalDomainBuildingComponent, editPlaneFigureBuildingComponent, Organization, PlanTemplateComponent, addPlanname, upPlanname, addGroup, adddwsurvey, addattinf, disaster, zdyaddGroup, zdyaddattinf, zdydisaster, updataHl], 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: [ imports: [
CommonModule, CommonModule,
@ -159,16 +328,15 @@ import { updataHl } from './plan-template/plan-template.component'
FormsModule, FormsModule,
PaginatorModule, PaginatorModule,
FileUploadModule, FileUploadModule,
//BrowserModule, TreeDiagramModule,
TreeDiagramModule
], ],
entryComponents: [AddKeyDialog],
exports: [ exports: [
CollectionToolsComponent, CollectionToolsComponent,
CollectionToolsBuildingComponent, CollectionToolsBuildingComponent,
CollectionToolsPlanComponent, CollectionToolsPlanComponent,
ConfirmpswDirective ConfirmpswDirective,
] ],
}) })
export class UiModule { } export class UiModule {}

4
src/index.html

@ -24,9 +24,9 @@
securityJsCode: '0afa0b144398727fad2ca06f5f7156b3' securityJsCode: '0afa0b144398727fad2ca06f5f7156b3'
} }
</script> </script>
<script <!-- <script
src="http://10.81.73.39:8000/webapi/maps?v=2.0&key=17bb9b27e49451cde8f2e6655b11ff1a&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script> src="http://10.81.73.39:8000/webapi/maps?v=2.0&key=17bb9b27e49451cde8f2e6655b11ff1a&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script>
<script src="http://10.81.73.39:8000/webapi/ui/1.1/main.js"></script> <script src="http://10.81.73.39:8000/webapi/ui/1.1/main.js"></script> -->
<!-- <script <!-- <script
src="https://webapi.amap.com/maps?v=2.0&key=17bb9b27e49451cde8f2e6655b11ff1a&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script> src="https://webapi.amap.com/maps?v=2.0&key=17bb9b27e49451cde8f2e6655b11ff1a&plugin=AMap.Driving,AMap.MouseTool,AMap.RangingTool"></script>
<script src="https://webapi.amap.com/ui/1.1/main.js"></script> --> <script src="https://webapi.amap.com/ui/1.1/main.js"></script> -->

2
src/styles.scss

@ -6,7 +6,7 @@
@import "~ng-zorro-antd/date-picker/style/index.min.css"; @import "~ng-zorro-antd/date-picker/style/index.min.css";
@import "~ng-zorro-antd/input/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/button/style/index.min.css";
@import "~ng-zorro-antd/modal/style/index.min.css";
/* 引入组件样式 */ /* 引入组件样式 */
@font-face { @font-face {
font-family: Regular; font-family: Regular;

Loading…
Cancel
Save