diff options
author | Chuyi Guo <guochuyi@chinamobile.com> | 2019-08-23 07:35:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-23 07:35:45 +0000 |
commit | c1ca7475d841378f67004b2bad61fa9285491288 (patch) | |
tree | a926b4cbc4c2ebef793717b2a53a4896fef2bb09 /usecaseui-portal/src/app | |
parent | c12c0b1ef71d72a2af275b0bf7d8390c2e226e19 (diff) | |
parent | 5d9b41e5bf84926b2896231f17d3408fee0bf918 (diff) |
Merge "feat: home page code optimization"
Diffstat (limited to 'usecaseui-portal/src/app')
-rw-r--r-- | usecaseui-portal/src/app/views/home/home.component.html | 9 | ||||
-rw-r--r-- | usecaseui-portal/src/app/views/home/home.component.less | 14 |
2 files changed, 3 insertions, 20 deletions
diff --git a/usecaseui-portal/src/app/views/home/home.component.html b/usecaseui-portal/src/app/views/home/home.component.html index 4126f241..5f956827 100644 --- a/usecaseui-portal/src/app/views/home/home.component.html +++ b/usecaseui-portal/src/app/views/home/home.component.html @@ -14,18 +14,11 @@ 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}} diff --git a/usecaseui-portal/src/app/views/home/home.component.less b/usecaseui-portal/src/app/views/home/home.component.less index 9e768cf7..affe4765 100644 --- a/usecaseui-portal/src/app/views/home/home.component.less +++ b/usecaseui-portal/src/app/views/home/home.component.less @@ -13,17 +13,7 @@ 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; @@ -254,7 +244,7 @@ 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%; |