<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>查看</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lib/layui/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/public.css}" media="all">
    <style>
        body {
            background-color: #ffffff;
        }
        .layui-form-item label{
            width: 15%;
        }
        .layui-input-block input{
            width: 90%;
        }
        .layui-input-block textarea{
            width: 90%;
        }
    </style>
</head>
<body>
<div class="layui-form layuimini-form" style="margin-left: -15px; margin-right: 20px">
    <div class="layui-form-item">
        <label class="layui-form-label">岗位名称</label>
        <div class="layui-input-block">
            <input type="text" name="postName" class="layui-input" th:value="${postInfo.postName}" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">岗位编码</label>
        <div class="layui-input-block">
            <input type="text" name="postCode" class="layui-input" th:value="${postInfo.postCode}" readonly>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">岗位顺序</label>
        <div class="layui-input-block">
            <input type="number" min="0" name="postSort" class="layui-input" th:value="${postInfo.postSort}" readonly>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">岗位状态</label>
        <div class="layui-input-block">
            <input type="radio" name="status" th:each="item, itemStat: ${baseDictList}" th:value="${item.code}"
                   th:title="${item.name}" th:checked="${postInfo.status eq item.code}" class="layui-input" disabled>
        </div>
    </div>

    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">备注</label>
        <div class="layui-input-block">
            <textarea name="descript" class="layui-textarea" th:text="${postInfo.descript}" readonly></textarea>
        </div>
    </div>

    <!-- 右侧悬浮按钮 -->
    <div class="right-bottom-btn">
        <button class="layui-btn" lay-filter="cancleBtn">
            <i class="layui-icon layui-icon-close"></i>关闭
        </button>
    </div>
</div>
<script th:src="@{/lib/jquery-3.4.1/jquery-3.4.1.min.js}" charset="utf-8"></script>
<script th:src="@{/lib/layui/layui.js}" charset="utf-8"></script>
<script th:src="@{/lib/coco-message/coco-message.js}" charset="utf-8"></script>
<script th:src="@{/js/lay-config.js}" charset="utf-8"></script>
<script type="text/javascript" th:inline="javascript">
    AjaxUtil.ctx = /*[[@{/}]]*/'';
    layui.use(['form', 'layer'], function () {
        // 监听取消按钮
        $("button[lay-filter='cancleBtn']").click(function () {
            var iframeIndex = parent.layer.getFrameIndex(window.name);
            parent.layer.close(iframeIndex);
        });
    });
</script>
</body>
</html>