You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.3 KiB
35 lines
1.3 KiB
2 years ago
|
<nz-tabset>
|
||
|
<nz-tab nzTitle="营养分析">
|
||
|
<div nz-row [nzGutter]="12">
|
||
|
<div nz-col nzSpan="8">
|
||
|
<nz-select class="w-full" [(ngModel)]="currentDay" (ngModelChange)="getAnalysis()">
|
||
|
<nz-option *ngFor="let item of menu.days" [nzLabel]="'第' + (item + 1) + '天'" [nzValue]="item+1">
|
||
|
|
||
|
</nz-option>
|
||
|
</nz-select>
|
||
|
</div>
|
||
|
<div nz-col nzSpan="16">
|
||
|
<nz-select class="w-full" [(ngModel)]="currentPeople" (ngModelChange)="getAnalysis()">
|
||
|
<nz-option *ngFor="let item of menu.crows" [nzLabel]="item" nzValue="{{item}}">
|
||
|
|
||
|
</nz-option>
|
||
|
</nz-select>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="flex mt-4">
|
||
|
<span>
|
||
|
餐次:
|
||
|
</span>
|
||
|
<div class="flex-1">
|
||
|
<nz-tag *ngFor="let item of menu.meals">{{item}}</nz-tag>
|
||
|
</div>
|
||
|
</div>
|
||
|
<nz-divider nzDashed></nz-divider>
|
||
|
<div>
|
||
|
<nz-spin [nzSpinning]="analysisLoading">
|
||
|
<lib-nutrition-table *ngIf="analysis" [nutritions]="analysis.ingredient"></lib-nutrition-table>
|
||
|
</nz-spin>
|
||
|
</div>
|
||
|
</nz-tab>
|
||
|
<!-- <nz-tab nzTitle="食材种类">Content of Tab Pane 2</nz-tab> -->
|
||
|
</nz-tabset>
|