组件内标签跳转

发布于 2022-09-06 03:42:23 字数 4604 浏览 9 评论 0

1,点击Query按钮,从查询页面到查询结果页面
2,
clipboard.png
3,HTML文件如下
<md-tab-group class="body-tab">
查询标签<md-tab label="{{'common.search' | translate}}">

<div class="search-block">
  <div class="input-container">
    <md-form-field>
      <input mdInput placeholder="{{'sctbline001.LINE' | translate}}">
    </md-form-field>
    <md-form-field>
      <input mdInput placeholder="{{'sctbline001.SFCLINE' | translate}}">
    </md-form-field>
    <md-form-field>
      <input mdInput placeholder="{{'sctbline001.LINEGROUP' | translate}}">
    </md-form-field>
    <button md-raised-button class="table-button" (click)="searchItem('item 1')">{{'common.search' | translate}}</button>
  </div>
</div>

</md-tab>

查询结果标签<md-tab label="{{'common.searchResult' | translate}}">

<div class="full-screen full-table md-elevation-z8">
  <button md-mini-fab class="table-button-fab" (click)="addItem()"> + </button>
  <md-table #table [dataSource]="dataSource">
    <ng-container mdColumnDef="operation">
      <md-header-cell *mdHeaderCellDef>Item</md-header-cell>
      <md-cell *mdCellDef="let row">
        <div class="operator-container">
          <button md-icon-button class="operator-button ic-edit" (click)="editItem(row.LINE)"></button>
          <button md-icon-button class="operator-button ic-delete" (click)="deleteItem(row.LINE)"></button>
        </div>
      </md-cell>
    </ng-container>
    <ng-container mdColumnDef="LINE">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.LINE' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.LINE}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="USID">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.USID' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.USID}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="TRDT">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.TRDT' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.TRDT}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="SFCLINE">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.SFCLINE' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.SFCLINE}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="LINEMODE">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.LINEMODE' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.LINEMODE}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="ACOSTATUS">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.ACOSTATUS' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.ACOSTATUS}} </md-cell>
    </ng-container>
    <ng-container mdColumnDef="LINEGROUP">
      <md-header-cell *mdHeaderCellDef> {{'sctbline001.LINEGROUP' | translate}} </md-header-cell>
      <md-cell *mdCellDef="let row"> {{row.LINEGROUP}} </md-cell>
    </ng-container>
    <md-header-row *mdHeaderRowDef="displayedColumns"></md-header-row>
    <md-row *mdRowDef="let row; columns: displayedColumns;"></md-row>
  </md-table>
  <md-paginator #paginator [length]="fakeDB.data.length" [pageIndex]="0" [pageSize]="5"></md-paginator>
</div>

</md-tab>

系统资讯页面<md-tab label="{{'common.sysInfo' | translate}}">

<form class="half-screen half-table mat-elevation-z8 ">
 <tr>
  <td>Application ID:</td>
  <td> SMBASE001</td>
</tr>

<tr>
  <td>Application Version:</td>
  <td>2.0.1.0</td>
</tr>

<tr>
  <td rowspan="4">User Permission:</td>
  <td>1.View</td>
</tr>
<tr>
  <td>2.Edit</td>
</tr>
<tr>
  <td>4.Add</td>
</tr>
<tr>
  <td>8.Delete</td>
</tr>
    </form>

</md-tab>
</md-tab-group>

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文