<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>工作台不可用</title>
    <style>
        html, body { margin: 0; padding: 0; background: transparent; font-family: sans-serif; }
        .box { padding: 12px; color: #a00; font-size: 13px; }
    </style>
</head>
<body>
<div class="box" th:text="${errorMsg}">工作台不可用</div>
<script th:inline="javascript">
(function () {
    var msg = /*[[${errorMsg}]]*/ '工作台不可用';
    var code = /*[[${errorCode}]]*/ 'WORKBENCH_ERROR';
    try {
        if (window.parent && window.parent !== window) {
            var payload = { ok: false, msg: msg, code: code };
            window.parent.postMessage({ channel: 'HIS_IPCC_EMBED', type: 'ERROR', payload: { msg: msg, code: code, type: code } }, '*');
            window.parent.postMessage({ channel: 'HIS_IPCC_EMBED', type: 'HIS_IPCC_LOGIN_RESULT', payload: payload }, '*');
        }
    } catch (e) {}
})();
</script>
</body>
</html>
