<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <table id="data_entity_table" lay-filter="data_table_event" lay-data="{id:'data_table'}"></table>
<!--                            <table class="layui-table" id="table">-->
<!--                                <colgroup>-->
<!--                                    <col width="30">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col width="80">-->
<!--                                    <col>-->
<!--                                </colgroup>-->
<!--                                <thead>-->
<!--                                <tr>-->
<!--                                    <th></th>-->
<!--                                    <th>版本号：</th>-->
<!--                                    <th>版本名称：</th>-->
<!--                                    <th>上传时间：</th>-->
<!--                                    <th>版本说明：</th>-->
<!--                                    <th>设备厂商：</th>-->
<!--                                    <th>设备型号：</th>-->
<!--                                    <th>启用状态：</th>-->
<!--                                </tr>-->
<!--                                </thead>-->
<!--                                <tbody>-->
<!--                                <tr th:each="package,idx : ${list}">-->
<!--                                    <td><input class="packageRadio" type="radio" name="index" th:value="${idx.index}"></td>-->
<!--                                    <td th:text="${package.version}"></td>-->
<!--                                    <td th:text="${package.packageName}"></td>-->
<!--                                    <td th:text="${#dates.format(package.createDate, 'yyyy-MM-dd HH:mm:ss')}"></td>-->
<!--                                    <td th:text="${package.description}"></td>-->
<!--                                    <td th:text="${package.deviceFactory}"></td>-->
<!--                                    <td th:text="${package.deviceModelNumber}"></td>-->
<!--                                    <td th:text="${package.isEnable} == 1?'启用':'禁用'"></td>-->
<!--                                </tr>-->
<!--                                </tbody>-->
<!--                            </table>-->
                            <input id="deviceId" type="hidden" th:value="${deviceIds}"/>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>

    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/device/device-version-upgrade.js'}" charset="utf-8"></script>
    <!-- 启用状态 -->
    <script type="text/html" id="switch_is_enable">
        <input type="checkbox" name="isEnable" lay-skin="switch" lay-filter="switch_is_enable"  kid="{{ d.id }}"
               lay-text="启用|禁用" {{ d.isEnable == 1 ? 'checked' : '' }} />
    </script>
</html>