<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="productIdName">促销名称</th>
                        <th rt-field-code="start_date">开始时间</th>
                        <th rt-field-code="end_date">结束时间</th>
                        <th>备注</th>
                        <th>堆头照片</th>
                        <th>端架照片</th>
                        <th>促销人员照片</th>
                        <th>POP照片</th>
                    </tr>
                </thead>
                <tbody>
                    <tr ng-repeat="row in vm.data track by row.Id">
                        <!-- @@ 视图列表值 -->
                        <td>
                            {{row.name}}
                        </td>
                        <td>
                            {{row.start_date | date:'yyyy-MM-dd HH:mm'}}
                        </td>
                        <td style="white-space:normal;">
                            {{ row.end_date | date:'yyyy-MM-dd HH:mm'}}
                        </td>
                        <td>{{row.remark}}</td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.photo_01_objectid)" style="color: #09f;">浏览</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.photo_02_objectid)" style="color: #09f;">浏览</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.photo_03_objectid)" style="color: #09f;">浏览</a>
                        </td>
                        <td>
                            <a href="javascript:;" ng-click="vm.showImage(row.photo_04_objectid)" 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] -->