feat: home page code optimization 71/94171/1
authorcyuamber <xuranyjy@chinamobile.com>
Fri, 23 Aug 2019 03:33:22 +0000 (11:33 +0800)
committercyuamber <xuranyjy@chinamobile.com>
Fri, 23 Aug 2019 03:33:40 +0000 (11:33 +0800)
Change-Id: I9b8d91cad2ce1a558a561fe48aeec6da52e7563c
Issue-ID: USECASEUI-307
Signed-off-by: cyuamber <xuranyjy@chinamobile.com>
usecaseui-portal/src/app/views/home/home.component.html
usecaseui-portal/src/app/views/home/home.component.less

index 4126f24..5f95682 100644 (file)
     limitations under the License.
 -->
 
-<!--<h3 class="title"> {{"Overall trend" | translate}}</h3>
-<hr> -->
 <div class="content">
   <div class="left-content">
     <div class="services">
       <h4>{{"i18nTextDefine_SERVICES" | translate}}</h4>
-      <!-- <h3>{{serviceNumber}} <span>{{"services" | translate}}</span> </h3>
-      <p>{{serviceNumber}} {{"services has been created" | translate}}</p> -->
-      <app-pie [initData]="serviceChartInit" [chartData]="serviceChartData" *ngIf="serviceChart"></app-pie>
-      <div *ngIf="!serviceChart"
-        style="color: #ddd; font-weight: 700;font-size: 19px;height: 200px;text-align: center;line-height: 8;">No Service Instances </div>
-
+      <app-pie [initData]="serviceChartInit" [chartData]="serviceChartData"></app-pie>
       <div>
         <h5><span>{{"i18nTextDefine_Total" | translate}}:</span> {{serviceNumber}}
           <span>{{"i18nTextDefine_cutomers_and" | translate}}</span> {{serviceNumber}}
index 9e768cf..affe476 100644 (file)
     See the License for the specific language governing permissions and
     limitations under the License.
 */
-// .title {
-//     font: 700 18px/18px "思源黑体";
-//     color: #4c5e70;
-//     margin-bottom: 18px; 
-// }
-// hr {
-//     border: none;
-//     height: 2px;
-//     background-color: #dce1e7;
-//     margin-bottom: 20px;
-// }
+
 .content {
     padding: 20px 20px;
     overflow: hidden;
                         right: 12px;
                     }
                 }
-                //下拉框中的样式在style.less中,下拉框是在body中额外临时生成的
+                //The style in the drop-down box is in style.less, and the drop-down box is extra temporary generated in the body.
             }
             #pfVmChartLine {
                 width: 100%;