aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/customer/customer.component.ts
diff options
context:
space:
mode:
authorguochuyicmri <guochuyi@chinamobile.com>2019-05-17 18:07:45 +0800
committerguochuyicmri <guochuyi@chinamobile.com>2019-05-17 18:07:54 +0800
commite88155c2a4046974387fcb64406a28ed672a63d4 (patch)
tree5a5e3566319f4033bbe29cb49cf6392600a5084e /usecaseui-portal/src/app/components/customer/customer.component.ts
parentd59427f407a75cdf97890ff67485dde07edcee52 (diff)
Dashboard interface front-end development
Change-Id: Ife8dbb89e9a5d465e1c3b6b6a290059f376b673b Issue-ID: USECASEUI-214 Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/customer/customer.component.ts')
-rw-r--r--usecaseui-portal/src/app/components/customer/customer.component.ts18
1 files changed, 17 insertions, 1 deletions
diff --git a/usecaseui-portal/src/app/components/customer/customer.component.ts b/usecaseui-portal/src/app/components/customer/customer.component.ts
index 51486dbf..b609de57 100644
--- a/usecaseui-portal/src/app/components/customer/customer.component.ts
+++ b/usecaseui-portal/src/app/components/customer/customer.component.ts
@@ -94,7 +94,7 @@ export class CustomerComponent implements OnInit {
normal: {
position: 'center',
show: false,
- formatter: ' {b|{b}:{c}%} ',
+ formatter: ' {b|{b}:{c}} ',
backgroundColor: 'rgba(51,51,51,0.9)',
borderColor: 'rgba(51,51,51,0.9)',
borderWidth: 1,
@@ -112,6 +112,11 @@ export class CustomerComponent implements OnInit {
}
},
+ labelLine: {
+ normal: {
+ show: false
+ }
+ },
itemStyle: {
normal: {
borderWidth: 3,
@@ -131,6 +136,7 @@ export class CustomerComponent implements OnInit {
}],
global: false
},
+ borderWidth: 0,
shadowBlur: 10,
shadowOffsetX: 0,
shadowColor: 'rgba(0, 10, 5, 0)'
@@ -141,8 +147,18 @@ export class CustomerComponent implements OnInit {
};
// get customers chart pie
+ Pie_name = [];
+ Pie_value = [];
+ serviceChart=true;
+ serviceNumber;
getCustomersPie() {
this.managemencs.getCustomersPie().subscribe((data) => {
+ this.serviceNumber = data.serviceTotalNum;
+ if (this.serviceNumber>0) {
+ this.serviceChart = true;
+ } else {
+ this.serviceChart = false;
+ }
this.CUChartData = {
series: [{
data:data.customerServiceList