<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <link rel="stylesheet" th:href="@{'/css/permission/account-detail.css'}" media="all">
    </head>
    <body style="position: absolute;top:0;bottom: 0;left:0;right: 0;">
        <!--/*@thymesVar id="onLineUser" type="com.sptg.permissions.api.entity.Account"*/-->
        <div class="layui-fluid" >
            <!-- 下拉树 -->
            <div th:replace="common/org-tree"></div>
            <!-- 表格 -->
            <div class="x-body per-table">
                <div class="layui-card">
                    <!-- 查询条件 -->
                    <div class="layui-form layui-card-header layuiadmin-card-header-auto" style="padding:0;">
                        <div class="layui-form-item border-b">
                            <!-- 登陆名 login_name -->
                            <div class="layui-inline">
                                <!--<label for="login_name" class="layui-form-label">登录名</label>-->
                                <label for="login_name" class="layui-form-label">车牌号</label>
                                <div class="layui-input-block" >
                                    <input id="login_name" type="text" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <!-- 用户姓名 user_name -->
                            <div class="layui-inline">
                                <label for="user_name" class="layui-form-label">用户姓名</label>
                                <div class="layui-input-block" >
                                    <input id="user_name" type="text" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <!-- 联系方式 user_mobile -->
                            <div class="layui-inline">
                                <label for="user_mobile" class="layui-form-label">联系方式</label>
                                <div class="layui-input-block">
                                    <input id="user_mobile" type="text" autocomplete="off" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-inline" style="margin-left: 38px;">
                                <button class="layui-btn layuiadmin-btn-useradmin"  lay-submit lay-filter="query">查询</button>
                                <button class="layui-btn  layui-btn-primary"  lay-submit lay-filter="reset">重置</button>
                            </div>
                        </div>

                        <!-- 表格+头部按钮 -->
                        <div class="layui-card-body" style="padding:0;">
                            <div style="padding-bottom: 10px;">
                                <!--<button type="button" class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="add">添加账号</button>-->
                                <button type="button" class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="add">添加车辆</button>
                            </div>
                            <table id="data_entity_table" lay-filter="data_table_event"></table>
                        </div>
                        <input id="user_org_id" type="hidden" th:value="${onLineUser.orgId}" />
                    </div>
                </div>
            </div>
        </div>
    </body>


    <!-- 工具栏（编辑/删除） -->
    <script type="text/html" id="table-tool">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">
            <span>修改</span>
        </a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">
            <span>删除</span>
        </a>
    </script>

    <!-- 状态 -->
    <script type="text/html" id="entity_is_enable">
        {{# if(d.isEnable == 1){ }}
        <input type="checkbox" name="isEnable" lay-skin="switch" lay-filter="switch_is_enable" lay-text="启用|禁用"
               data-json="{{ encodeURIComponent(JSON.stringify(d)) }}"  checked />
        {{# }else { }}
        <input type="checkbox" name="isEnable" lay-skin="switch" lay-filter="switch_is_enable" lay-text="启用|禁用"
               data-json="{{ encodeURIComponent(JSON.stringify(d)) }}"/>
        {{# } }}
    </script>

    <script type="text/javascript" th:src="@{'/layui/layui.js'}"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>
    <script type="text/javascript" th:src="@{'/js/permissions/device-admin-user.js'}"></script>

</html>
