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
92edcc8c
Commit
92edcc8c
authored
Jan 18, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
a1bb99eb
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
115 additions
and
29 deletions
+115
-29
analysis.service.ts
src/main/webapp/app/analysis/analysis.service.ts
+3
-3
analysis-deal.component.html
...operation-work/analysis-deal/analysis-deal.component.html
+11
-1
analysis-deal.component.ts
...s/operation-work/analysis-deal/analysis-deal.component.ts
+32
-15
analysis-event.component.html
...eration-work/analysis-event/analysis-event.component.html
+16
-3
analysis-event.component.ts
...operation-work/analysis-event/analysis-event.component.ts
+19
-1
analysis-status.component.html
...ation-work/analysis-status/analysis-status.component.html
+15
-3
analysis-status.component.ts
...eration-work/analysis-status/analysis-status.component.ts
+17
-1
resource-usabil.component.html
...p/analysis/resource-usabil/resource-usabil.component.html
+1
-1
global.css
src/main/webapp/content/css/global.css
+1
-1
No files found.
src/main/webapp/app/analysis/analysis.service.ts
View file @
92edcc8c
...
@@ -12,17 +12,17 @@ export class AnalysisService {
...
@@ -12,17 +12,17 @@ export class AnalysisService {
//按事件分类导出报表
//按事件分类导出报表
exportByType
(
data
):
Observable
<
any
>
{
exportByType
(
data
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/syseventCount/export/type?'
+
this
.
commonSer
.
toQuery
(
data
)
);
return
this
.
http
.
get
(
SERVER_API_URL
+
"/syseventCount/export/type?"
+
this
.
commonSer
.
toQuery
(
data
),{
responseType
:
'blob'
}
);
}
}
//按事件处理人导出报表
//按事件处理人导出报表
exportByuser
(
data
):
Observable
<
any
>
{
exportByuser
(
data
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/syseventCount/export/user?'
+
this
.
commonSer
.
toQuery
(
data
)
);
return
this
.
http
.
get
(
SERVER_API_URL
+
"/syseventCount/export/user?"
+
this
.
commonSer
.
toQuery
(
data
),{
responseType
:
'blob'
}
);
}
}
//按事件解决状态导出报表
//按事件解决状态导出报表
exportByStatus
(
data
):
Observable
<
any
>
{
exportByStatus
(
data
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/syseventCount/export/status?'
+
this
.
commonSer
.
toQuery
(
data
)
);
return
this
.
http
.
get
(
SERVER_API_URL
+
"/syseventCount/export/status?"
+
this
.
commonSer
.
toQuery
(
data
),{
responseType
:
'blob'
}
);
}
}
//按事件分类统计
//按事件分类统计
...
...
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.html
View file @
92edcc8c
...
@@ -10,7 +10,8 @@
...
@@ -10,7 +10,8 @@
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '4'"
>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '4'"
>
<nz-date-picker
<nz-date-picker
nzShowTime
nzShowTime
[(
ngModel
)]="
startTime
"
[(
ngModel
)]="
startTime
"
...
@@ -22,12 +23,19 @@
...
@@ -22,12 +23,19 @@
[(
ngModel
)]="
endTime
"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
></nz-date-picker>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"6"
></div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
style=
"color: #6097b7"
></i>
搜索
</button>
</button>
</div>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-center"
>
<nz-spin
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'下载中...'
[
nzSpinning
]="
isDownload
"
>
<button
(
click
)="
downLoad
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</nz-spin>
</div>
</div>
</div>
</div>
</div>
...
@@ -69,3 +77,5 @@
...
@@ -69,3 +77,5 @@
</ng-container>
</ng-container>
</tbody>
</tbody>
</nz-table>
</nz-table>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i></ng-template>
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.ts
View file @
92edcc8c
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'
;
import
{
CommonService
}
from
'../../../shared/common/common.service'
;
@
Component
({
@
Component
({
selector
:
'smart-analysis-deal'
,
selector
:
'smart-analysis-deal'
,
...
@@ -14,7 +15,7 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -14,7 +15,7 @@ export class AnalysisDealComponent implements OnInit {
isLoading
=
false
;
isLoading
=
false
;
startTime
;
startTime
;
endTime
;
endTime
;
timeType
=
"1"
;
timeType
=
'1'
;
dealList
;
dealList
;
chartOption
;
chartOption
;
...
@@ -24,9 +25,10 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -24,9 +25,10 @@ export class AnalysisDealComponent implements OnInit {
};
};
noData
=
false
;
noData
=
false
;
isDownload
=
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
,
private
commonSer
:
CommonService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -41,15 +43,15 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -41,15 +43,15 @@ export class AnalysisDealComponent implements OnInit {
this
.
isLoading
=
true
;
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
)
{
if
(
res
.
data
.
length
>
0
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
dealList
=
res
.
data
;
this
.
dealList
=
res
.
data
;
this
.
setEcharts
();
this
.
setEcharts
();
this
.
noData
=
false
;
this
.
noData
=
false
;
}
else
{
}
else
{
this
.
noData
=
true
;
this
.
noData
=
true
;
}
}
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
...
@@ -57,33 +59,33 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -57,33 +59,33 @@ export class AnalysisDealComponent implements OnInit {
);
);
}
}
setEcharts
(){
setEcharts
()
{
this
.
chartOption
=
{
this
.
chartOption
=
{
tooltip
:
{
tooltip
:
{
trigger
:
'axis'
,
trigger
:
'axis'
,
axisPointer
:
{
// 坐标轴指示器,坐标轴触发有效
axisPointer
:
{
// 坐标轴指示器,坐标轴触发有效
type
:
'shadow'
// 默认为直线,可选为:'line' | 'shadow'
type
:
'shadow'
// 默认为直线,可选为:'line' | 'shadow'
},
},
formatter
:
"{b} : {c}个"
formatter
:
'{b} : {c}个'
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
data
:
this
.
dealList
.
map
(
e
=>
{
data
:
this
.
dealList
.
map
(
e
=>
{
return
e
.
username
;
return
e
.
username
;
})
})
},
},
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
.
dealList
.
map
(
e
=>
{
data
:
this
.
dealList
.
map
(
e
=>
{
return
e
.
num
;
return
e
.
num
;
}),
}),
type
:
'bar'
type
:
'bar'
...
@@ -102,13 +104,13 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -102,13 +104,13 @@ export class AnalysisDealComponent 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
;
...
@@ -128,4 +130,19 @@ export class AnalysisDealComponent implements OnInit {
...
@@ -128,4 +130,19 @@ export class AnalysisDealComponent implements OnInit {
this
.
getEcharts
();
this
.
getEcharts
();
}
}
//下载
downLoad
()
{
this
.
isDownload
=
true
;
const
data
=
{
startTime
:
this
.
obj
.
startTime
,
endTime
:
this
.
obj
.
endTime
,
};
this
.
analysisSer
.
exportByuser
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'处理人统计'
,
data
);
}
);
}
}
}
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.html
View file @
92edcc8c
...
@@ -2,14 +2,16 @@
...
@@ -2,14 +2,16 @@
<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
()"
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '4'"
>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '4'"
>
<nz-date-picker
<nz-date-picker
nzShowTime
nzShowTime
[(
ngModel
)]="
startTime
"
[(
ngModel
)]="
startTime
"
...
@@ -21,10 +23,18 @@
...
@@ -21,10 +23,18 @@
[(
ngModel
)]="
endTime
"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
></nz-date-picker>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"6"
></div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-center"
>
<nz-spin
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'下载中...'
[
nzSpinning
]="
isDownload
"
>
<button
(
click
)="
downLoad
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</nz-spin>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -66,3 +76,6 @@
...
@@ -66,3 +76,6 @@
</ng-container>
</ng-container>
</tbody>
</tbody>
</nz-table>
</nz-table>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i></ng-template>
src/main/webapp/app/analysis/operation-work/analysis-event/analysis-event.component.ts
View file @
92edcc8c
...
@@ -3,6 +3,7 @@ import {DatePipe} from '@angular/common';
...
@@ -3,6 +3,7 @@ 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'
;
import
{
CommonService
}
from
'../../../shared/common/common.service'
;
@
Component
({
@
Component
({
selector
:
'smart-analysis-event'
,
selector
:
'smart-analysis-event'
,
...
@@ -24,9 +25,11 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -24,9 +25,11 @@ export class AnalysisEventComponent implements OnInit {
};
};
noData
=
false
;
noData
=
false
;
isDownload
=
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
,
private
commonSer
:
CommonService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -127,4 +130,19 @@ export class AnalysisEventComponent implements OnInit {
...
@@ -127,4 +130,19 @@ export class AnalysisEventComponent implements OnInit {
}
}
this
.
getEcharts
();
this
.
getEcharts
();
}
}
//下载
downLoad
()
{
this
.
isDownload
=
true
;
const
data
=
{
startTime
:
this
.
obj
.
startTime
,
endTime
:
this
.
obj
.
endTime
,
};
this
.
analysisSer
.
exportByType
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'事件分类统计'
,
data
);
}
);
}
}
}
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.html
View file @
92edcc8c
...
@@ -2,14 +2,16 @@
...
@@ -2,14 +2,16 @@
<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
()"
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
<label
nz-radio-button
nzValue=
"1"
>
日报
</label>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"2"
>
周报
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
<label
nz-radio-button
nzValue=
"3"
>
月报
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"4"
>
自定义
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '4'"
>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '4'"
>
<nz-date-picker
<nz-date-picker
nzShowTime
nzShowTime
[(
ngModel
)]="
startTime
"
[(
ngModel
)]="
startTime
"
...
@@ -21,10 +23,18 @@
...
@@ -21,10 +23,18 @@
[(
ngModel
)]="
endTime
"
[(
ngModel
)]="
endTime
"
nzPlaceHolder=
"结束时间"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
></nz-date-picker>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"6"
></div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-center"
>
<nz-spin
[
nzIndicator
]="
indicatorTemplate
"
nzTip=
'下载中...'
[
nzSpinning
]="
isDownload
"
>
<button
(
click
)="
downLoad
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-download"
></i>
下载
</button>
</nz-spin>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -71,3 +81,5 @@
...
@@ -71,3 +81,5 @@
</ng-container>
</ng-container>
</tbody>
</tbody>
</nz-table>
</nz-table>
<ng-template
#
indicatorTemplate
><i
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 24px;"
></i></ng-template>
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.ts
View file @
92edcc8c
...
@@ -3,6 +3,7 @@ import {DatePipe} from '@angular/common';
...
@@ -3,6 +3,7 @@ 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'
;
import
{
CommonService
}
from
'../../../shared/common/common.service'
;
@
Component
({
@
Component
({
selector
:
'smart-analysis-status'
,
selector
:
'smart-analysis-status'
,
...
@@ -24,9 +25,10 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -24,9 +25,10 @@ export class AnalysisStatusComponent implements OnInit {
};
};
noData
=
false
;
noData
=
false
;
isDownload
=
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
,
private
commonSer
:
CommonService
)
{
}
}
ngOnInit
()
{
ngOnInit
()
{
...
@@ -127,4 +129,18 @@ export class AnalysisStatusComponent implements OnInit {
...
@@ -127,4 +129,18 @@ export class AnalysisStatusComponent implements OnInit {
this
.
getEcharts
();
this
.
getEcharts
();
}
}
//下载
downLoad
()
{
this
.
isDownload
=
true
;
const
data
=
{
startTime
:
this
.
obj
.
startTime
,
endTime
:
this
.
obj
.
endTime
,
};
this
.
analysisSer
.
exportByStatus
(
data
).
subscribe
(
(
data
)
=>
{
this
.
isDownload
=
false
;
this
.
commonSer
.
downloadFile
(
'解决状态'
,
data
);
}
);
}
}
}
src/main/webapp/app/analysis/resource-usabil/resource-usabil.component.html
View file @
92edcc8c
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,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"
style=
"height: 500px"
>
<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/content/css/global.css
View file @
92edcc8c
...
@@ -330,7 +330,7 @@ ui bootstrap tweaks
...
@@ -330,7 +330,7 @@ ui bootstrap tweaks
.time-div
{
.time-div
{
position
:
absolute
;
position
:
absolute
;
z-index
:
9
;
z-index
:
9
;
left
:
35
%
;
left
:
0
%
;
top
:
0
;
top
:
0
;
width
:
100%
;
width
:
100%
;
}
}
...
...
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