xufenglei
2018-07-12 c292f295c9b516cbb9f7fbf587095f710378dbb0
预报预警
2 files added
3 files modified
51 ■■■■■ changed files
src/app/routes/forecasting-warning/forecasting-warning.component.html 13 ●●●●● patch | view | raw | blame | history
src/app/routes/forecasting-warning/forecasting-warning.component.ts 17 ●●●●● patch | view | raw | blame | history
src/app/routes/routes-routing.module.ts 2 ●●●●● patch | view | raw | blame | history
src/app/routes/routes.module.ts 2 ●●●●● patch | view | raw | blame | history
src/assets/app-data.json 17 ●●●●● patch | view | raw | blame | history
src/app/routes/forecasting-warning/forecasting-warning.component.html
New file
@@ -0,0 +1,13 @@
<div class="content__title">
    <h1>空气质量预警预报</h1>
</div>
<nz-card [nzBordered]="false">
<div class="sales-type-radio">
    <nz-radio-group >
        <label nz-radio-button [nzValue]="'warning'"><span>预警</span></label>
        <label nz-radio-button [nzValue]="'forecasting'"><span>预报</span></label>
    </nz-radio-group>
</div>
</nz-card>
<nz-card [nzBordered]="false"></nz-card>
src/app/routes/forecasting-warning/forecasting-warning.component.ts
New file
@@ -0,0 +1,17 @@
import { Component, OnInit } from '@angular/core';
import { _HttpClient } from '@delon/theme';
@Component({
  selector: 'app-forecasting-warning',
  templateUrl: './forecasting-warning.component.html',
})
export class ForecastingWarningComponent implements OnInit {
    constructor(
        private http: _HttpClient
    ) { }
    ngOnInit() {
    }
}
src/app/routes/routes-routing.module.ts
@@ -13,6 +13,7 @@
import { ReportComponent } from './report/report.component';
import { UserLoginComponent } from 'app/routes/passport/login/login.component';
import { ForecastingWarningComponent } from './forecasting-warning/forecasting-warning.component';
import { PollutionManagementComponent } from 'app/routes/pollution/management/management.component';
const routes: Routes = [
@@ -32,6 +33,7 @@
            { path: 'systems', loadChildren: './systems/systems.module#SystemsModule' },
            { path: 'reports', loadChildren: './reports/reports.module#ReportsModule' },
            { path: 'forecasting-warning', component: ForecastingWarningComponent },
            { path: 'pollution/management', component: PollutionManagementComponent }
        ]
    },    // passport
src/app/routes/routes.module.ts
@@ -12,6 +12,7 @@
import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component';
import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component';
import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component';
import { ForecastingWarningComponent } from './forecasting-warning/forecasting-warning.component';
import { ReportComponent } from './report/report.component';
import { PollutionManagementComponent } from './pollution/management/management.component';
@@ -38,6 +39,7 @@
        DashboardWorkplaceComponent,
        UserLoginComponent,
        ReportComponent,
        ForecastingWarningComponent,
        PollutionManagementComponent
    ],
    providers: [
src/assets/app-data.json
@@ -22,22 +22,7 @@
            {
              "text": "预报预警",
              "icon": "icon-pie-chart",
              "children": [
                  {
                    "text": "预警",
                    "link": "/"
                  }
                  ,
                  {
                    "text": "预报",
                    "link": "/"
                  }
                  ,
                  {
                    "text": "因子数据",
                    "link": "/"
                  }
              ]
              "link": "/forecasting-warning"
            },
            {
              "text": "环境管理",