<!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 style="position: absolute;top: 0;bottom: 0;left: 0;right: 0;">
        <input type="hidden" id="org_id" th:value="${onLineUser.orgId}" />
        <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">
                                    <select id="feedbackType">
                                        <option value="">请选择</option>
                                        <option value="1" th:checked="true">功能异常</option>
                                        <option value="2" th:checked="true">产品建议</option>
                                        <option value="3" th:checked="true">安全问题</option>
                                        <option value="4">商品终端异常</option>
                                        <option value="5">其他问题</option>
                                    </select>
                                </div>
                            </div>
                            <div class="layui-inline">
                                <label class="layui-form-label">创建时间</label>
                                <div class="layui-input-block">
                                    <input type="text"  class="layui-input date-icon" id="create_date"  placeholder="请选择" autocomplete="off">
                                    <input type="hidden" id="begin_date"  name="beginDate"/>
                                    <input type="hidden" id="end_date"  name="endDate" />
                                </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;">
                            <table id="table_id" lay-filter="table_event"></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="detail" sptg:security="estate:userFeedback:manage">查看详情</a>
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="handle" sptg:security="estate:userFeedback:manage">处理反馈</a>
        </script>

        <input type="hidden" id="fastDfsServer" th:value="${fastDfsServer}" />
        <!--图片显示-->
        <script type="text/html" id="is_imageUri">
            {{#  if(d.imageUri != null && d.imageUri != ''){ }}
            let img = d.imageUri.join(",")
            <img src="{{fastDfsServer + img.get(0)}}" style="display: inline-block; width: 16%; height: 100%;cursor: zoom-in">
            {{# } }}
        </script>

        <!-- 反馈类型 -->
        <script type="text/html" id="type">
            {{#  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 { }}
            <span>其他问题</span>
            {{# } }}
        </script>

        <!-- javascript -->
        <script th:src="@{'/layui/layui.js'}"></script>
        <script>
            layui.config({
                base: '/' //静态资源所在路径
            });
        </script>
        <script th:src="@{'/js/estate/user-feedback-manage.js'}"></script>
    </body>
</html>
