Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
11057c2e
Commit
11057c2e
authored
Jun 27, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
知识库 update
parent
8e84b047
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
250 additions
and
9 deletions
+250
-9
app.main.module.ts
src/main/webapp/app/app.main.module.ts
+16
-9
app.route.ts
src/main/webapp/app/app.route.ts
+6
-0
common-problem.component.html
...pp/knowladge/common-problem/common-problem.component.html
+46
-0
common-problem.component.ts
.../app/knowladge/common-problem/common-problem.component.ts
+30
-0
information-tech.component.html
...nowladge/information-tech/information-tech.component.html
+46
-0
information-tech.component.ts
.../knowladge/information-tech/information-tech.component.ts
+30
-0
management-system.component.html
...wladge/management-system/management-system.component.html
+46
-0
management-system.component.ts
...nowladge/management-system/management-system.component.ts
+30
-0
No files found.
src/main/webapp/app/app.main.module.ts
View file @
11057c2e
import
{
RouterModule
}
from
"@angular/router"
;
import
{
RouterModule
}
from
'@angular/router'
;
import
{
CUSTOM_ELEMENTS_SCHEMA
,
NgModule
,
NO_ERRORS_SCHEMA
}
from
'@angular/core'
;
import
{
CUSTOM_ELEMENTS_SCHEMA
,
NgModule
,
NO_ERRORS_SCHEMA
}
from
'@angular/core'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
CommonModule
}
from
'@angular/common'
;
import
{
NgxEchartsModule
}
from
"ngx-echarts"
;
import
{
NgxEchartsModule
}
from
'ngx-echarts'
;
import
{
FormsModule
,
ReactiveFormsModule
}
from
'@angular/forms'
;
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
{
AlarmListComponent
}
from
'./alarm/alarm-list/alarm-list.component'
;
import
{
AlarmLogComponent
}
from
'./alarm/alarm-log/alarm-log.component'
;
import
{
AlarmLogComponent
}
from
'./alarm/alarm-log/alarm-log.component'
;
import
{
AlarmSetComponent
}
from
'./alarm/alarm-set/alarm-set.component'
;
import
{
AlarmSetComponent
}
from
'./alarm/alarm-set/alarm-set.component'
;
...
@@ -117,6 +117,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
...
@@ -117,6 +117,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
import
{
TopologyViewComponent
}
from
'./component/topology-view/topology-view.component'
;
import
{
TopologyViewComponent
}
from
'./component/topology-view/topology-view.component'
;
import
{
CostRecordComponent
}
from
'./work/cost-record/cost-record.component'
;
import
{
CostRecordComponent
}
from
'./work/cost-record/cost-record.component'
;
import
{
CostComponent
}
from
'./work/modal/cost/cost.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
({
@
NgModule
({
imports
:
[
imports
:
[
...
@@ -236,8 +239,11 @@ import {CostComponent} from './work/modal/cost/cost.component';
...
@@ -236,8 +239,11 @@ import {CostComponent} from './work/modal/cost/cost.component';
TopologyViewComponent
,
TopologyViewComponent
,
CostRecordComponent
,
CostRecordComponent
,
CostComponent
,
CostComponent
,
CommonProblemComponent
,
InformationTechComponent
,
ManagementSystemComponent
],
],
providers
:[
providers
:
[
OverAllService
,
OverAllService
,
SystemService
,
SystemService
,
AlarmService
,
AlarmService
,
...
@@ -245,9 +251,9 @@ import {CostComponent} from './work/modal/cost/cost.component';
...
@@ -245,9 +251,9 @@ import {CostComponent} from './work/modal/cost/cost.component';
AnalysisService
,
AnalysisService
,
WorkService
,
WorkService
,
BusinessService
,
BusinessService
,
{
provide
:
NZ_I18N
,
useValue
:
zh_CN
},
{
provide
:
NZ_I18N
,
useValue
:
zh_CN
},
],
],
exports
:[
exports
:
[
BasiCheckComponent
,
BasiCheckComponent
,
BasicEditComponent
,
BasicEditComponent
,
BasicKeyComponent
,
BasicKeyComponent
,
...
@@ -256,6 +262,7 @@ import {CostComponent} from './work/modal/cost/cost.component';
...
@@ -256,6 +262,7 @@ import {CostComponent} from './work/modal/cost/cost.component';
WarnListComponent
,
WarnListComponent
,
PauseComponent
PauseComponent
],
],
schemas
:
[
CUSTOM_ELEMENTS_SCHEMA
,
NO_ERRORS_SCHEMA
],
schemas
:
[
CUSTOM_ELEMENTS_SCHEMA
,
NO_ERRORS_SCHEMA
],
})
})
export
class
AppMainModule
{
}
export
class
AppMainModule
{
}
src/main/webapp/app/app.route.ts
View file @
11057c2e
...
@@ -46,6 +46,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
...
@@ -46,6 +46,9 @@ import {DatabaseComponent} from './overAll/modal/database/database.component';
import
{
ServerComponent
}
from
'./overAll/modal/server/server.component'
;
import
{
ServerComponent
}
from
'./overAll/modal/server/server.component'
;
import
{
SwitchComponent
}
from
'./overAll/modal/switch/switch.component'
;
import
{
SwitchComponent
}
from
'./overAll/modal/switch/switch.component'
;
import
{
CostRecordComponent
}
from
'./work/cost-record/cost-record.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
=
[
export
const
route
:
Routes
=
[
{
path
:
''
,
redirectTo
:
'app/main/home'
,
pathMatch
:
'full'
},
{
path
:
''
,
redirectTo
:
'app/main/home'
,
pathMatch
:
'full'
},
...
@@ -99,6 +102,9 @@ export const route: Routes = [
...
@@ -99,6 +102,9 @@ export const route: Routes = [
{
path
:
'database'
,
component
:
DatabaseComponent
,
data
:
{
breadcrumb
:
'数据库'
},},
{
path
:
'database'
,
component
:
DatabaseComponent
,
data
:
{
breadcrumb
:
'数据库'
},},
{
path
:
'server'
,
component
:
ServerComponent
,
data
:
{
breadcrumb
:
'服务器'
},},
{
path
:
'server'
,
component
:
ServerComponent
,
data
:
{
breadcrumb
:
'服务器'
},},
{
path
:
'switch'
,
component
:
SwitchComponent
,
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
:
'管理制度'
},},
]
]
},
},
]
]
...
...
src/main/webapp/app/knowladge/common-problem/common-problem.component.html
0 → 100644
View file @
11057c2e
<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>
src/main/webapp/app/knowladge/common-problem/common-problem.component.ts
0 → 100644
View file @
11057c2e
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
)
{
}
}
src/main/webapp/app/knowladge/information-tech/information-tech.component.html
0 → 100644
View file @
11057c2e
<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>
src/main/webapp/app/knowladge/information-tech/information-tech.component.ts
0 → 100644
View file @
11057c2e
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
)
{
}
}
src/main/webapp/app/knowladge/management-system/management-system.component.html
0 → 100644
View file @
11057c2e
<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>
src/main/webapp/app/knowladge/management-system/management-system.component.ts
0 → 100644
View file @
11057c2e
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
)
{
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment