<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:sptg="http://www.thymeleaf.org">
<head>
    <script th:replace="common/head"></script>
</head>

<body>
    <div class="layui-fluid">
        <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">
                    <div class="layui-inline">
                        <label class="layui-form-label">创建时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="laydate-range-datetime" placeholder="" lay-key="28">
                        </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 class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="add" sptg:security="estate:parkingLot:add">添加车场</button>
                    </div>
                    <table id="table-id" lay-filter="table-id"></table>
                </div>
            </div>

        </div>
    </div>

    <script type="text/html" id="table-useradmin-webuser">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" sptg:security="estate:parkingLot:edit">修改</a>
        <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete" sptg:security="estate:parkingLot:delete">删除</a>
    </script>

<!--    车辆类型-->
    <script type="text/html" id="car_type">
        {{#  if(d.type == 0){ }}
        <span>轿车</span>
        {{#  }else if(d.type == 1){ }}
        <span>货车</span>
        {{#  }else if(d.type == 2){ }}
        <span>客车</span>
        {{#  }else if(d.type == 3){ }}
        <span>挂车</span>
        {{#  }else if(d.type == 4){ }}
        <span>摩托车</span>
        {{#  }else if(d.type == 5){ }}
        <span>非完整车辆</span>
        {{#  }else if(d.type == 6){ }}
        <span>电动车辆</span>
        {{# }else { }}
        <span>未知</span>
        {{# } }}
    </script>

<!--    车辆性质-->
    <script type="text/html" id="car_properties">
        {{#  if(d.properties == 0){ }}
        <span>货运</span>
        {{#  }else if(d.properties == 1){ }}
        <span>客运</span>
        {{#  }else if(d.properties == 2){ }}
        <span>营运</span>
        {{#  }else if(d.properties == 3){ }}
        <span>非运营</span>
        {{#  }else if(d.properties == 4){ }}
        <span>出租</span>
        {{# }else { }}
        <span>未知</span>
        {{# } }}
    </script>

<!--    车辆性质-->
    <script type="text/html" id="car_fuel_category">
        {{#  if(d.fuelCategory == 0){ }}
        <span>汽油</span>
        {{#  }else if(d.fuelCategory == 1){ }}
        <span>柴油</span>
        {{#  }else if(d.fuelCategory == 2){ }}
        <span>乙醇</span>
        {{#  }else if(d.fuelCategory == 3){ }}
        <span>液化天然气(LNG)</span>
        {{#  }else if(d.fuelCategory == 4){ }}
        <span>压缩天然气(CNG)</span>
        {{#  }else if(d.fuelCategory == 5){ }}
        <span>电动</span>
        {{# }else { }}
        <span>未知</span>
        {{# } }}
    </script>


    <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/estate/parking-lot-manage.js'}" charset="utf-8"></script>
</body>
</html>