Service instance lifecycle management 70/86970/1
authorguochuyicmri <guochuyi@chinamobile.com>
Sun, 5 May 2019 09:58:02 +0000 (17:58 +0800)
committerguochuyicmri <guochuyi@chinamobile.com>
Sun, 5 May 2019 09:58:08 +0000 (17:58 +0800)
Change-Id: If957774ba3cfaa65493efc7c376d4382d46a16dc
Issue-ID: USECASEUI-218
Signed-off-by: guochuyicmri <guochuyi@chinamobile.com>
usecaseui-portal/src/app/services/services-list/services-list.component.html
usecaseui-portal/src/app/services/services-list/services-list.component.less
usecaseui-portal/src/app/services/services-list/services-list.component.ts

index f3378d0..9fa6b5c 100644 (file)
         <li *ngFor="let item of serviceMunber" class="top-list">
             <span class="round">{{item.serviceDomain}}</span>
             <div class="top-list-text">
-                <span>{{item.number}}</span><br>
-                <span>{{item.detailName}}</span>
+                    <p>
+                        <span>{{item.failed}}</span>
+                        <span>failed</span>
+                    </p>
+                    <p>
+                        <span>{{item.Success}}</span>
+                        <span>Success</span>
+                    </p>
+                    <p>
+                        <span>{{item.InProgress}}</span>
+                        <span>In Progress</span>
+                    </p>
+                <p class="service-description">{{item.detailName}}</p>
             </div>
         </li>
     </ul>
index ca0ac41..c1cf759 100644 (file)
@@ -108,9 +108,9 @@ hr {
 }
 .top-list{
     position: relative;
-    width:31%;
-    height:224px;
-    margin: 15px 1%;
+    width:29%;
+    height:170px;
+    margin: 10px 1%;
     float: left;
     background:url("../../../assets/images/servicelist-e2e.png") no-repeat;
     background-size: 100% 100%;
@@ -151,15 +151,35 @@ hr {
     text-align: right;
     height: 40px;
     line-height: 20px;
-    top:45%;
-    margin-top: -20px;
     right: 50px;
     color: #fff;
-    span:nth-child(1){
-        display: inline-block;
-        font-size: 22px;
-        font-weight: 500;
-        margin-bottom: 20px;
+    p{
+        font-size: 14px;
+        width: 250px;
+        margin: 15px 0 0 0;
+        height: 13px;
+        clear: both;
+        span{
+            display: inline-block;
+            font-weight: 500;
+            text-align: right;
+            float: right;
+        }
+        span:nth-child(1){
+            font-size: 18px;
+            width: 40px;
+            min-width: 40px;
+        }
+        span:nth-child(2){
+            width: 85px;
+            font-size: 16px;
+        }
+    }
+    p:nth-child(1){
+        margin-top: 25px;
+    }
+    .service-description{
+        color: rgba(255,255,255,0.7);
     }
 }
 .list {
index 0c5c26a..38fa7e2 100644 (file)
@@ -54,17 +54,23 @@ export class ServicesListComponent implements OnInit {
     serviceMunber = [
         {
             "serviceDomain": "E2E",
-            "number": 10,
+            "Success": 16,
+            "failed": 4,
+            "InProgress": 11,
             "detailName":"End To End service"
         },
         {
             "serviceDomain": "NS",
-            "number": 20,
+            "Success": 21,
+            "failed": 2,
+            "InProgress": 17,
             "detailName":"Network Service"
         },
         {
             "serviceDomain": "CCVPN",
-            "number": 40,
+            "Success": 36,
+            "failed": 15,
+            "InProgress": 6,
             "detailName":"Cross Domain and Cross Layer VPN"
         }
     ];
@@ -92,21 +98,17 @@ export class ServicesListComponent implements OnInit {
           console.log("customerList.length == 0",this.customerList);
           return false;
         }
-        this.customerList2 = data.map((item) => {
-            return {name: item["subscriber-name"], id: item["global-customer-id"]}
-        });
-        if (this.customerList2.length == 0) {
-            console.log("customerList2.length == 0", this.customerList2);
-            return false;
-        }
-        this.customerSelected = this.customerList[0];
-                this.customerSelected2 = this.customerList2[0];
-        this.choseCustomer(this.customerSelected);
-        this.getServiceType(this.customerSelected2);
-
-        // console.log(this.customers)
-      })
-  }
+                this.customerList2 = data.map((item) => {
+                    return {name: item["subscriber-name"], id: item["global-customer-id"]}
+                });
+                if (this.customerList2.length == 0) {
+                    console.log("customerList2.length == 0", this.customerList2);
+                    return false;
+                }
+                this.customerSelected = this.customerList[0];
+                this.choseCustomer(this.customerSelected);
+            })
+    }
 
   getallOrchestrators(){
     this.myhttp.getAllOrchestrators()
@@ -160,16 +162,18 @@ export class ServicesListComponent implements OnInit {
                     console.log("serviceTypeList.length == 0", this.serviceTypeList2);
                     return false;
                 }
-                this.serviceTypeSelected2 = this.serviceTypeList2[0];
+                this.serviceTypeSelected2 = this.serviceTypeSelected;
                 this.serviceTypeSelectedName = this.serviceTypeSelected2.name;
-                console.log(this.serviceTypeList2);
+                console.log(this.customerSelected2);
+                console.log(this.serviceTypeSelected2);
                 this.getAlltemplates();
             })
     }
   createModal(): void {
     this.isVisible = true;
-    this.getallOrchestrators();
-
+     this.getallOrchestrators();
+        this.customerSelected2 = this.customerSelected;
+        this.getServiceType(this.customerSelected2);
   }
   //