<div class="listview">
    <div class="viewlist">
        <rt-data-grid rt-page-record-count="vm.page.recordCount"  rt-page-index="vm.page.index" rt-page-size="vm.page.size" rt-get-data="vm.view.search()" rt-sort-field="vm.view.sortField"
            rt-rows="vm.data" rt-selected-ids="vm.view.selectedIds" rt-auto-height="{{vm.view.autoHeight}}">
            <table class="table table-hover">
                <thead>
                    <tr>
                        <!-- @@ 视图表头 -->
                        <th rt-field-code="name">竞品名称</th>
                        <th rt-field-code="band_name">品牌</th>
                        <th rt-field-code="count">数量</th>
                        <th rt-field-code="price">价格</th>
                        <th rt-field-code="produce_date">生产日期</th>
                        <th rt-field-code="promote_type">促销类型</th>
                        <th rt-field-code="promote_start_date">开始日期</th>
                        <th rt-field-code="promote_end_date">结束日期</th>
                        <th rt-field-code="buy_gift_rate">买赠比例</th>
                        <th rt-field-code="promote_reason">促销原因</th>
                        <th rt-field-code="promote_result">促销效果</th>
                        <th rt-field-code="remark">备注</th>
                        <th>照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.band_name}}
                        </td>
                        <td>
                            {{ row.count}}
                        </td>
                        <td>
                            {{row.price}}
                        </td>
                        <td>
                            {{row.produce_date | date:"yyyy-MM-dd"}}
                        </td>
                        <td>
                            {{row.promote_type}}
                        </td>
                        <td>
                            {{row.promote_start_date | date:"yyyy-MM-dd"}}
                        </td>
                        <td>
                            {{row.promote_end_date | date:"yyyy-MM-dd"}}
                        </td>
                        <td>
                            {{row.buy_gift_rate}}
                        </td>
                        <td>
                            {{row.promote_reason}}
                        </td>
                        <td>
                            {{ row.promote_result}}
                        </td>
                        <td style="white-space:normal;">
                            {{row.remark}}
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.Id)" style="color: #09f;">浏览</a>
                        </td>
                    </tr>
                </tbody>
            </table>
        </rt-data-grid>
        <!-- rt-data-grid  -->
    </div>
    <!-- div[.panel-default] -->
</div>
<!-- div[.listview] -->

<div class="sidebar sidebar-right sidebar-animate rt-shadow-border-left content-wrapper" ng-if="vm.view.type=='default'">
    <div ui-view class="content"></div>
</div>
<!-- div[.editview] -->