自学内容网 自学内容网

基于vue实现动态table

1、代码

        <div style="height: 600px; overflow: scroll;">
<!-- height: 600px; overflow: scroll;作用是超出页面可以滑动 -->
            <div ng-repeat="row in entity.procedureList">
                <cb-title title="工序{{row.procedireLocation}}" class="table-primary"></cb-title>
                <table class='table table-bordered'>
                    <thead>
                    <tr>
                        <th style='width: 160px;'>零部件编码</th>
                        <th style='width: 220px;'>零部件名称</th>
                        <th style='width: 600px;'>关键零部件条码</th>
                        <th style='width: 70px;'>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat='dto in row.procedureList'>
                        <td class="table-light">
                            {{dto.oemCode}}
                        </td>
                        <td class="table-light">
                            {{dto.oemName}}
                        </td>
                        <td class="table-light">
                            {{dto.componentBarcode}}
                        </td>
                        <td class="table-light">
                            <button class='btn btn-link btn-warning' ng-click='ctrl.replace(dto)' type='button'
                                    style="color: #007bff;">
                                替换
                            </button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </div>

2、效果

3、源数据


原文地址:https://blog.csdn.net/xingchenyv/article/details/137272608

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!