基于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、源数据

相关推荐

  1. layui-vue + Flask 实现 Table 排序显示

    2024-04-03 15:08:05       38 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-04-03 15:08:05       19 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-04-03 15:08:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-04-03 15:08:05       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-04-03 15:08:05       20 阅读

热门阅读

  1. vue3从精通到入门10:侦听器watch

    2024-04-03 15:08:05       14 阅读
  2. swiper/vue踩坑 切换问题

    2024-04-03 15:08:05       14 阅读
  3. vue2指令

    2024-04-03 15:08:05       12 阅读
  4. springboot对接微信支付V3(非常详细的demo)

    2024-04-03 15:08:05       15 阅读
  5. Shell快捷键大全

    2024-04-03 15:08:05       18 阅读
  6. Spring框架提供三个核心服务

    2024-04-03 15:08:05       14 阅读
  7. 感应开关盖垃圾桶

    2024-04-03 15:08:05       14 阅读
  8. VIdeosApi接口平台-微信开发协议

    2024-04-03 15:08:05       14 阅读
  9. vue+element select筛选框表单重置resetFields()失效

    2024-04-03 15:08:05       14 阅读
  10. C# 访问修饰符 默认

    2024-04-03 15:08:05       13 阅读
  11. 如何让机器人认出你?OriginBot的家人识别功能

    2024-04-03 15:08:05       15 阅读
  12. 原装TY73XX系列放过冲低功耗LDO稳压IC

    2024-04-03 15:08:05       12 阅读