代码之家  ›  专栏  ›  技术社区  ›  Sohail

材料2 md表按日期排序不起作用

  •  0
  • Sohail  · 技术社区  · 7 年前
    <table md-table md-progress="promise" style="margin-top: -12px">
        <thead md-head  md-order='item.DateCreated'">
            <tr md-row>
               <th md-column style="min-width: 138px;"  md-order-by='item.DateCreated'>Date</th>
               <th md-column ng-show="vm.showComments !== vm.POSNotes && vm.showComments !== vm.TelemarketingNotes">Code</th>
               <th md-column ng-show="vm.showComments !== vm.POSNotes && vm.showComments !== vm.TelemarketingNotes">Description</th>
               <th md-column>Note</th>
               <th md-column style="min-width: 100px;"></th>
            </tr>
       </thead>
       <tbody md-body>
            <tr md-row ng-if="item" ng-repeat="item in vm.showComments | orderBy:'item.DateCreated':true">
               <td md-cell  ng-if="item.MemoCode==='MSS'|| item.MemoCode==='ADMIN' || item.MemoCode==='MEMBERSVC' || item.MemoCode==='BILLING'">{{ item.DateCreated | date: 'mediumDate' }}</td>
               <td md-cell ng-if="!(item.MemoCode==='MSS'|| item.MemoCode==='ADMIN' || item.MemoCode==='MEMBERSVC' || item.MemoCode==='BILLING')">{{ item.noteDateCreated | date: 'mediumDate' }}</td>
    

    0 回复  |  直到 7 年前