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
bf05fdca
Commit
bf05fdca
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
ebb020ed
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
153 additions
and
85 deletions
+153
-85
analysis-deal.component.html
...operation-work/analysis-deal/analysis-deal.component.html
+60
-47
analysis-deal.component.ts
...s/operation-work/analysis-deal/analysis-deal.component.ts
+13
-2
analysis-event.component.html
...eration-work/analysis-event/analysis-event.component.html
+11
-1
analysis-event.component.ts
...operation-work/analysis-event/analysis-event.component.ts
+26
-15
analysis-status.component.html
...ation-work/analysis-status/analysis-status.component.html
+10
-1
analysis-status.component.ts
...eration-work/analysis-status/analysis-status.component.ts
+26
-16
resource-usabil.component.html
...p/analysis/resource-usabil/resource-usabil.component.html
+2
-2
asset-part.component.html
...main/webapp/app/work/asset-part/asset-part.component.html
+1
-1
asset-part.component.ts
src/main/webapp/app/work/asset-part/asset-part.component.ts
+4
-0
assets-detail.component.html
...ork/asset-part/assets-detail/assets-detail.component.html
+0
-0
No files found.
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.html
View file @
bf05fdca
<!--处理人统计-->
<!--处理人统计-->
<div
class=
"releative"
>
<div
class=
"releative"
>
<div
class=
"time-div"
>
<div
class=
"time-div"
>
<div
nz-col
nzSpan=
"6"
>
<div
nz-col
nzSpan=
"6"
>
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
[
nzButtonStyle
]="'
solid
'"
>
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
</nz-radio-group>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '4'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
startTime
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '4'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
startTime
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
</div>
</div>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
<div
style=
"height: 500px"
>
<ng-container
*
ngIf=
"noData"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"!noData"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</div>
</nz-spin>
</nz-spin>
<nz-table
#
nzTable
[
nzData
]="
dealList
"
>
<nz-table
#
nzTable
[
nzData
]="
dealList
"
>
<thead>
<thead>
<tr>
<th
nzWidth=
"20%"
>
处理人
</th>
<th>
事件数量
</th>
<th>
解决状态
</th>
<th>
事件分类
</th>
</tr>
</thead>
<tbody>
<ng-container
*
ngFor=
"let data of dealList"
>
<tr>
<tr>
<td>
{{data.username}}
</td>
<th
nzWidth=
"20%"
>
处理人
</th>
<td>
{{data.num}}
</td>
<th>
事件数量
</th>
<td>
未解决 {{data.unsolved}} 部分解决 {{data.solveLittle}} 解决 {{data.solved}}
</td>
<th>
解决状态
</th>
<td>
<th>
事件分类
</th>
<ng-container
*
ngFor=
"let item of data.eventTypes"
>
<span>
{{item.typeName}} {{item.num}}
</span>
</ng-container>
</td>
</tr>
</tr>
</ng-container>
</thead>
</tbody>
<tbody>
<ng-container
*
ngFor=
"let data of dealList"
>
<tr>
<td>
{{data.username}}
</td>
<td>
{{data.num}}
</td>
<td>
未解决 {{data.unsolved}} 部分解决 {{data.solveLittle}} 解决 {{data.solved}}
</td>
<td>
<ng-container
*
ngFor=
"let item of data.eventTypes"
>
<span>
{{item.typeName}} {{item.num}}
</span>
</ng-container>
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-table>
\ No newline at end of file
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.ts
View file @
bf05fdca
...
@@ -23,6 +23,8 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -23,6 +23,8 @@ export class AnalysisDealComponent implements OnInit {
endTime
:
''
endTime
:
''
};
};
noData
=
false
;
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
private
overAllSer
:
OverAllService
,)
{
private
overAllSer
:
OverAllService
,)
{
}
}
...
@@ -36,12 +38,21 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -36,12 +38,21 @@ export class AnalysisDealComponent implements OnInit {
//获取图表
//获取图表
getEcharts
()
{
getEcharts
()
{
this
.
isLoading
=
true
;
this
.
analysisSer
.
operateUser
(
this
.
obj
).
subscribe
(
this
.
analysisSer
.
operateUser
(
this
.
obj
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
this
.
dealList
=
res
.
data
;
if
(
res
.
data
.
length
>
0
){
this
.
setEcharts
();
this
.
dealList
=
res
.
data
;
this
.
setEcharts
();
this
.
noData
=
false
;
}
else
{
this
.
noData
=
true
;
}
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isLoading
=
false
;
}
}
);
);
}
}
...
...
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.html
View file @
bf05fdca
...
@@ -30,8 +30,18 @@
...
@@ -30,8 +30,18 @@
</div>
</div>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
<div
style=
"height: 500px"
>
<ng-container
*
ngIf=
"noData"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"!noData"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</div>
</nz-spin>
</nz-spin>
<nz-table
#
nzTable
[
nzData
]="
eventList
"
>
<nz-table
#
nzTable
[
nzData
]="
eventList
"
>
<thead>
<thead>
<tr>
<tr>
...
...
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.ts
View file @
bf05fdca
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
DatePipe
}
from
'@angular/common'
;
import
{
DatePipe
}
from
'@angular/common'
;
import
{
AnalysisService
}
from
'../../analysis.service'
;
import
{
AnalysisService
}
from
'../../analysis.service'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
@
Component
({
@
Component
({
selector
:
'smart-analysis-event'
,
selector
:
'smart-analysis-event'
,
templateUrl
:
'./analysis-event.component.html'
,
templateUrl
:
'./analysis-event.component.html'
,
styles
:
[]
styles
:
[]
})
})
export
class
AnalysisEventComponent
implements
OnInit
{
export
class
AnalysisEventComponent
implements
OnInit
{
isLoading
=
false
;
isLoading
=
false
;
startTime
;
startTime
;
endTime
;
endTime
;
timeType
=
"1"
;
timeType
=
'1'
;
chartOption
;
chartOption
;
eventList
;
eventList
;
...
@@ -23,6 +23,8 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -23,6 +23,8 @@ export class AnalysisEventComponent implements OnInit {
endTime
:
''
endTime
:
''
};
};
noData
=
false
;
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
private
overAllSer
:
OverAllService
,)
{
private
overAllSer
:
OverAllService
,)
{
}
}
...
@@ -36,17 +38,26 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -36,17 +38,26 @@ export class AnalysisEventComponent implements OnInit {
//获取图表
//获取图表
getEcharts
()
{
getEcharts
()
{
this
.
isLoading
=
true
;
this
.
analysisSer
.
eventByType
(
this
.
obj
).
subscribe
(
this
.
analysisSer
.
eventByType
(
this
.
obj
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
)
{
this
.
eventList
=
res
.
data
;
if
(
res
.
data
.
length
>
0
)
{
this
.
setEcharts
();
this
.
eventList
=
res
.
data
;
this
.
setEcharts
();
this
.
noData
=
false
;
}
else
{
this
.
noData
=
true
;
}
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isLoading
=
false
;
}
}
);
);
}
}
setEcharts
(){
setEcharts
()
{
this
.
chartOption
=
{
this
.
chartOption
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
...
@@ -56,22 +67,22 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -56,22 +67,22 @@ export class AnalysisEventComponent implements OnInit {
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
data
:
this
.
eventList
.
map
(
e
=>
{
data
:
this
.
eventList
.
map
(
e
=>
{
return
e
.
typeName
;
return
e
.
typeName
;
})
})
},
},
yAxis
:
{
yAxis
:
{
type
:
'value'
,
type
:
'value'
,
minInterval
:
1
,
minInterval
:
1
,
axisLabel
:
{
axisLabel
:
{
show
:
true
,
show
:
true
,
interval
:
'auto'
,
interval
:
'auto'
,
formatter
:
'{value} 个'
formatter
:
'{value} 个'
},
},
boundaryGap
:
[
0
,
0.1
],
boundaryGap
:
[
0
,
0.1
],
},
},
series
:
[{
series
:
[{
data
:
this
.
eventList
.
map
(
e
=>
{
data
:
this
.
eventList
.
map
(
e
=>
{
return
e
.
num
;
return
e
.
num
;
}),
}),
type
:
'bar'
type
:
'bar'
...
@@ -90,13 +101,13 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -90,13 +101,13 @@ export class AnalysisEventComponent implements OnInit {
break
;
break
;
}
}
case
'2'
:
{
//周报
case
'2'
:
{
//周报
day1
=
new
Date
(
nowDate
.
getTime
()
-
(
nowDate
.
getDay
()
-
1
)
*
86400000
);
day1
=
new
Date
(
nowDate
.
getTime
()
-
(
nowDate
.
getDay
()
-
1
)
*
86400000
);
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
break
;
break
;
}
}
case
'3'
:
{
//月报
case
'3'
:
{
//月报
day1
=
new
Date
(
nowDate
.
getFullYear
(),
nowDate
.
getMonth
(),
1
);
day1
=
new
Date
(
nowDate
.
getFullYear
(),
nowDate
.
getMonth
(),
1
);
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
break
;
break
;
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.html
View file @
bf05fdca
...
@@ -31,7 +31,16 @@
...
@@ -31,7 +31,16 @@
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
<div
style=
"height: 500px"
>
<ng-container
*
ngIf=
"noData"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"!noData"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</div>
</nz-spin>
</nz-spin>
<nz-table
#
nzTable
[
nzData
]="
statusList
"
>
<nz-table
#
nzTable
[
nzData
]="
statusList
"
>
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.ts
View file @
bf05fdca
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
DatePipe
}
from
'@angular/common'
;
import
{
DatePipe
}
from
'@angular/common'
;
import
{
AnalysisService
}
from
'../../analysis.service'
;
import
{
AnalysisService
}
from
'../../analysis.service'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
import
{
OverAllService
}
from
'../../../overAll/overAll.service'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
@
Component
({
@
Component
({
selector
:
'smart-analysis-status'
,
selector
:
'smart-analysis-status'
,
templateUrl
:
'./analysis-status.component.html'
,
templateUrl
:
'./analysis-status.component.html'
,
styles
:
[]
styles
:
[]
})
})
export
class
AnalysisStatusComponent
implements
OnInit
{
export
class
AnalysisStatusComponent
implements
OnInit
{
isLoading
=
false
;
isLoading
=
false
;
startTime
;
startTime
;
endTime
;
endTime
;
timeType
=
"1"
;
timeType
=
'1'
;
chartOption
;
chartOption
;
statusList
;
statusList
;
...
@@ -23,6 +23,8 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -23,6 +23,8 @@ export class AnalysisStatusComponent implements OnInit {
endTime
:
''
endTime
:
''
};
};
noData
=
false
;
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
constructor
(
private
analysisSer
:
AnalysisService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
,
private
overAllSer
:
OverAllService
,)
{
private
overAllSer
:
OverAllService
,)
{
}
}
...
@@ -38,15 +40,23 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -38,15 +40,23 @@ export class AnalysisStatusComponent implements OnInit {
getEcharts
()
{
getEcharts
()
{
this
.
analysisSer
.
operateStatus
(
this
.
obj
).
subscribe
(
this
.
analysisSer
.
operateStatus
(
this
.
obj
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
)
{
this
.
statusList
=
res
.
data
;
if
(
res
.
data
.
length
>
0
)
{
this
.
setEcharts
();
this
.
statusList
=
res
.
data
;
}
this
.
setEcharts
();
this
.
noData
=
false
;
}
else
{
this
.
noData
=
true
;
}
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
}
this
.
isLoading
=
false
;
}
}
);
);
}
}
setEcharts
(){
setEcharts
()
{
this
.
chartOption
=
{
this
.
chartOption
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
...
@@ -56,22 +66,22 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -56,22 +66,22 @@ export class AnalysisStatusComponent implements OnInit {
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
data
:
this
.
statusList
.
map
(
e
=>
{
data
:
this
.
statusList
.
map
(
e
=>
{
return
e
.
operateStatusName
;
return
e
.
operateStatusName
;
})
})
},
},
yAxis
:
{
yAxis
:
{
type
:
'value'
,
type
:
'value'
,
minInterval
:
1
,
minInterval
:
1
,
axisLabel
:
{
axisLabel
:
{
show
:
true
,
show
:
true
,
interval
:
'auto'
,
interval
:
'auto'
,
formatter
:
'{value} 个'
formatter
:
'{value} 个'
},
},
boundaryGap
:
[
0
,
0.1
],
boundaryGap
:
[
0
,
0.1
],
},
},
series
:
[{
series
:
[{
data
:
this
.
statusList
.
map
(
e
=>
{
data
:
this
.
statusList
.
map
(
e
=>
{
return
e
.
num
;
return
e
.
num
;
}),
}),
type
:
'bar'
type
:
'bar'
...
@@ -90,13 +100,13 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -90,13 +100,13 @@ export class AnalysisStatusComponent implements OnInit {
break
;
break
;
}
}
case
'2'
:
{
//周报
case
'2'
:
{
//周报
day1
=
new
Date
(
nowDate
.
getTime
()
-
(
nowDate
.
getDay
()
-
1
)
*
86400000
);
day1
=
new
Date
(
nowDate
.
getTime
()
-
(
nowDate
.
getDay
()
-
1
)
*
86400000
);
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
break
;
break
;
}
}
case
'3'
:
{
//月报
case
'3'
:
{
//月报
day1
=
new
Date
(
nowDate
.
getFullYear
(),
nowDate
.
getMonth
(),
1
);
day1
=
new
Date
(
nowDate
.
getFullYear
(),
nowDate
.
getMonth
(),
1
);
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
startTime
=
this
.
datePipe
.
transform
(
day1
,
'yyyy-MM-dd'
)
+
' 00:00:00'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
this
.
obj
.
endTime
=
this
.
datePipe
.
transform
(
nowDate
,
'yyyy-MM-dd'
)
+
' 23:59:59'
;
break
;
break
;
...
...
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.html
View file @
bf05fdca
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
</div>
</div>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
style=
"margin-top: 30px"
nz-row
nzGutter=
"4"
>
<div
style=
"margin-top: 30px"
nz-row
nzGutter=
"4"
>
<div
nz-col
nzSpan=
"12"
>
<div
nz-col
nzSpan=
"12"
style=
"height: 500px"
>
<ng-container
*
ngIf=
"data.left"
>
<ng-container
*
ngIf=
"data.left"
>
<div
class=
"img-noData"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
<div
class=
"noData"
title=
"暂无数据"
></div>
...
@@ -67,7 +67,7 @@
...
@@ -67,7 +67,7 @@
<div
echarts
[
options
]="
chartTopOption
"
style=
"height: 400px;width: 100%"
></div>
<div
echarts
[
options
]="
chartTopOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"12"
>
<div
nz-col
nzSpan=
"12"
style=
"height: 500px"
>
<ng-container
*
ngIf=
"data.right"
>
<ng-container
*
ngIf=
"data.right"
>
<div
class=
"img-noData"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
<div
class=
"noData"
title=
"暂无数据"
></div>
...
...
src/main/webapp/app/work/asset-part/asset-part.component.html
View file @
bf05fdca
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
</div>
</div>
</div>
</div>
<nz-table
#
nzTable
[
nzData
]="
childrenList
"
[
nz
ShowPagination
]="
true
"
>
<nz-table
#
nzTable
[
nzData
]="
childrenList
"
[
nz
FrontPagination
]="
false
"
[
nzTotal
]="
totalNum
"
[
nzPageIndex
]="
pageNum
"
[
nzPageSize
]="
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
[
nzLoading
]="
isLoading
"
>
<thead>
<thead>
<tr>
<tr>
<th>
子分类
</th>
<th>
子分类
</th>
...
...
src/main/webapp/app/work/asset-part/asset-part.component.ts
View file @
bf05fdca
...
@@ -22,6 +22,8 @@ export class AssetPartComponent implements OnInit {
...
@@ -22,6 +22,8 @@ export class AssetPartComponent implements OnInit {
childrenList
;
childrenList
;
timeBegin
;
timeBegin
;
timeEnd
;
timeEnd
;
isLoading
=
true
;
pageCount
=
pageSize
;
pageCount
=
pageSize
;
pageNum
=
1
;
pageNum
=
1
;
totalNum
;
totalNum
;
...
@@ -64,9 +66,11 @@ export class AssetPartComponent implements OnInit {
...
@@ -64,9 +66,11 @@ export class AssetPartComponent implements OnInit {
//子级分类
//子级分类
changeType
(){
changeType
(){
this
.
isLoading
=
true
;
this
.
workSer
.
findByParentidCount
(
this
.
obj
.
type
).
subscribe
(
this
.
workSer
.
findByParentidCount
(
this
.
obj
.
type
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
childrenList
=
res
.
data
;
this
.
childrenList
=
res
.
data
;
this
.
isLoading
=
false
;
}
}
)
)
}
}
...
...
src/main/webapp/app/work/asset-part/assets-detail/assets-detail.component.html
View file @
bf05fdca
This diff is collapsed.
Click to expand it.
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