Commit 11057c2e authored by wangqinghua's avatar wangqinghua

知识库 update

parent 8e84b047
import {RouterModule} from "@angular/router";
import {RouterModule} from '@angular/router';
import {CUSTOM_ELEMENTS_SCHEMA, NgModule, NO_ERRORS_SCHEMA} from '@angular/core';
import { CommonModule } from '@angular/common';
import { NgxEchartsModule } from "ngx-echarts";
import {CommonModule} from '@angular/common';
import {NgxEchartsModule} from 'ngx-echarts';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {NgZorroAntdModule,NZ_I18N,zh_CN} from 'ng-zorro-antd';
import {NgZorroAntdModule, NZ_I18N, zh_CN} from 'ng-zorro-antd';
import {AlarmListComponent} from './alarm/alarm-list/alarm-list.component';
import {AlarmLogComponent} from './alarm/alarm-log/alarm-log.component';
import {AlarmSetComponent} from './alarm/alarm-set/alarm-set.component';
......@@ -117,6 +117,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
import {TopologyViewComponent} from './component/topology-view/topology-view.component';
import {CostRecordComponent} from './work/cost-record/cost-record.component';
import {CostComponent} from './work/modal/cost/cost.component';
import {CommonProblemComponent} from './knowladge/common-problem/common-problem.component';
import {InformationTechComponent} from './knowladge/information-tech/information-tech.component';
import {ManagementSystemComponent} from './knowladge/management-system/management-system.component';
@NgModule({
imports: [
......@@ -236,8 +239,11 @@ import {CostComponent} from './work/modal/cost/cost.component';
TopologyViewComponent,
CostRecordComponent,
CostComponent,
CommonProblemComponent,
InformationTechComponent,
ManagementSystemComponent
],
providers:[
providers: [
OverAllService,
SystemService,
AlarmService,
......@@ -245,9 +251,9 @@ import {CostComponent} from './work/modal/cost/cost.component';
AnalysisService,
WorkService,
BusinessService,
{ provide: NZ_I18N, useValue: zh_CN },
{provide: NZ_I18N, useValue: zh_CN},
],
exports:[
exports: [
BasiCheckComponent,
BasicEditComponent,
BasicKeyComponent,
......@@ -256,6 +262,7 @@ import {CostComponent} from './work/modal/cost/cost.component';
WarnListComponent,
PauseComponent
],
schemas: [ CUSTOM_ELEMENTS_SCHEMA,NO_ERRORS_SCHEMA ],
schemas: [CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA],
})
export class AppMainModule { }
export class AppMainModule {
}
......@@ -46,6 +46,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
import {ServerComponent} from './overAll/modal/server/server.component';
import {SwitchComponent} from './overAll/modal/switch/switch.component';
import {CostRecordComponent} from './work/cost-record/cost-record.component';
import {CommonProblemComponent} from './knowladge/common-problem/common-problem.component';
import {InformationTechComponent} from './knowladge/information-tech/information-tech.component';
import {ManagementSystemComponent} from './knowladge/management-system/management-system.component';
export const route: Routes = [
{path: '', redirectTo: 'app/main/home', pathMatch: 'full'},
......@@ -99,6 +102,9 @@ export const route: Routes = [
{path: 'database', component: DatabaseComponent, data: {breadcrumb: '数据库'},},
{path: 'server', component: ServerComponent, data: {breadcrumb: '服务器'},},
{path: 'switch', component: SwitchComponent, data: {breadcrumb: '交换机'},},
{path: 'commonProblem', component: CommonProblemComponent, data: {breadcrumb: '常见问题'},},
{path: 'informationTech', component: InformationTechComponent, data: {breadcrumb: '信息技术'},},
{path: 'managementSystem', component: ManagementSystemComponent, data: {breadcrumb: '管理制度'},},
]
},
]
......
<div nz-row class="breadcrumbs">
<div nz-col nzSpan="16">
<nz-breadcrumb class="padding-8-0">
<nz-breadcrumb-item>
首页
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<a>知识库</a>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
常见问题
</nz-breadcrumb-item>
</nz-breadcrumb>
</div>
<div nz-col nzSpan="8" class="text-right">
<button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<smart-full-screen></smart-full-screen>
</div>
</div>
<div nz-row class="search-form">
<div nz-col nzSpan="16">
<button (click)="importFile()" nz-button nzType="default">导入文件</button>
</div>
<div nz-col nzSpan="8" class="text-right">
</div>
</div>
<nz-table #basicTable [nzData]="dataSet">
<thead>
<tr>
<th>文件名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of basicTable.data">
<td>{{data.name}}</td>
<td>{{data.comment}}</td>
<td class="handle main-color">
<span (click)="download(data)">下载</span>
</td>
</tr>
</tbody>
</nz-table>
<!--导入文件-->
<smart-upload #smartUpload></smart-upload>
import {Component, OnInit, ViewChild} from '@angular/core';
import {UploadComponent} from '../../work/modal/upload/upload.component';
@Component({
selector: 'smart-common-problem',
templateUrl: './common-problem.component.html',
styles: []
})
export class CommonProblemComponent implements OnInit {
@ViewChild('smartUpload') smartUpload: UploadComponent;
dataSet = [];
constructor() {
}
ngOnInit() {
}
//导入
importFile() {
this.smartUpload.showModal('上传常见问题文件');
}
//下载
download(data) {
}
}
<div nz-row class="breadcrumbs">
<div nz-col nzSpan="16">
<nz-breadcrumb class="padding-8-0">
<nz-breadcrumb-item>
首页
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<a>知识库</a>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
信息技术
</nz-breadcrumb-item>
</nz-breadcrumb>
</div>
<div nz-col nzSpan="8" class="text-right">
<button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<smart-full-screen></smart-full-screen>
</div>
</div>
<div nz-row class="search-form">
<div nz-col nzSpan="16">
<button (click)="importFile()" nz-button nzType="default">导入文件</button>
</div>
<div nz-col nzSpan="8" class="text-right">
</div>
</div>
<nz-table #basicTable [nzData]="dataSet">
<thead>
<tr>
<th>文件名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of basicTable.data">
<td>{{data.name}}</td>
<td>{{data.comment}}</td>
<td class="handle main-color">
<span (click)="download(data)">下载</span>
</td>
</tr>
</tbody>
</nz-table>
<!--导入文件-->
<smart-upload #smartUpload></smart-upload>
import {Component, OnInit, ViewChild} from '@angular/core';
import {UploadComponent} from '../../work/modal/upload/upload.component';
@Component({
selector: 'smart-information-tech',
templateUrl: './information-tech.component.html',
styles: []
})
export class InformationTechComponent implements OnInit {
@ViewChild('smartUpload') smartUpload: UploadComponent;
dataSet = [];
constructor() {
}
ngOnInit() {
}
//导入
importFile() {
this.smartUpload.showModal('上传信息技术文件');
}
//下载
download(data) {
}
}
<div nz-row class="breadcrumbs">
<div nz-col nzSpan="16">
<nz-breadcrumb class="padding-8-0">
<nz-breadcrumb-item>
首页
</nz-breadcrumb-item>
<nz-breadcrumb-item>
<a>知识库</a>
</nz-breadcrumb-item>
<nz-breadcrumb-item>
管理制度
</nz-breadcrumb-item>
</nz-breadcrumb>
</div>
<div nz-col nzSpan="8" class="text-right">
<button (click)="ngOnInit()" nz-button nzType="primary"><i class="anticon anticon-sync"></i></button>
<smart-full-screen></smart-full-screen>
</div>
</div>
<div nz-row class="search-form">
<div nz-col nzSpan="16">
<button (click)="importFile()" nz-button nzType="default">导入文件</button>
</div>
<div nz-col nzSpan="8" class="text-right">
</div>
</div>
<nz-table #basicTable [nzData]="dataSet">
<thead>
<tr>
<th>文件名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of basicTable.data">
<td>{{data.name}}</td>
<td>{{data.comment}}</td>
<td class="handle main-color">
<span (click)="download(data)">下载</span>
</td>
</tr>
</tbody>
</nz-table>
<!--导入文件-->
<smart-upload #smartUpload></smart-upload>
import {Component, OnInit, ViewChild} from '@angular/core';
import {UploadComponent} from '../../work/modal/upload/upload.component';
@Component({
selector: 'smart-management-system',
templateUrl: './management-system.component.html',
styles: []
})
export class ManagementSystemComponent implements OnInit {
@ViewChild('smartUpload') smartUpload: UploadComponent;
dataSet = [];
constructor() {
}
ngOnInit() {
}
//导入
importFile() {
this.smartUpload.showModal('上传管理制度文件');
}
//下载
download(data) {
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment