<!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" name="residentialName" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">报修位置</label>
                        <div class="layui-input-block">
                            <input type="text" name="reportPosition" placeholder="请输入" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">预约时间</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" id="laydate-yuyue-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:repair:add">添加记录</button>-->
                        <button class="layui-btn layuiadmin-btn-useradmin" lay-submit lay-filter="batchdel" sptg:security="estate:repair:delete">批量删除</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-danger layui-btn-xs" lay-event="delete" sptg:security="estate:notice:delete">删除</a>

        {{#  if(d.handleStatus != 1){ }}
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit" sptg:security="estate:notice:update">处理</a>
        {{#  } }}


    </script>

<!--处理状态   -1-已撤销  0-待处理 1-已处理 2-已处理待评价 3-已处理已评价-->
    <script type="text/html" id="handleStatusTemplet">
        {{# if(d.handleStatus == 0){ }}
            <div>待处理</div>
        {{# }else if(d.materialType == -1){ }}
            <div>已撤销</div>
        {{#  }else if(d.handleStatus == 1){ }}
        <span>已处理</span>
        {{#  }else if(d.handleStatus == 2){ }}
        <span>待评价</span>
        {{#  }else if(d.handleStatus == 3){ }}
        <span>已评价</span>
        {{#  } }}
    </script>

    <!-- javascript -->
    <script th:src="@{'/layui/layui.js'}"></script>
    <script>
        layui.config({
            base: '/' //静态资源所在路径
        });
        //图片服务器地址
    </script>
    <script th:src="@{'/js/estate/repair-manage.js'}"></script>
</body>

</html>