<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
    <head>
        <script th:replace="common/head"></script>
        <style>
            .layui-form-item {
                margin-bottom: 0;
            }
            .layui-form-text{
                line-height: 38px;
            }
        </style>
    </head>
    <body>
        <div class="layui-fluid">
            <div class="layui-row layui-col-space15">
                <div class="layui-col-md12">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <button type="button" lay-submit="" lay-filter="refresh" class="layui-btn layui-btn-primary layui-btn-sm"
                                    style="display:block;margin:0 auto">
                                <i class="layui-icon layui-icon-refresh" style="font-size: 20px"></i>
                            </button>
                            <fieldset class="layui-elem-field">
                                <legend>iot设备告警工单详情</legend>
                                <div class="layui-field-box">
                                    <div class="layui-form-item">
                                        <input type="hidden" name="id" th:value="${iotAlarmWorkOrder.id}" />
                                        <label class="layui-form-label"><span>工单ID：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.order_id}"></span></div>
                                        <label class="layui-form-label"><span>设备sn号：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.device_id}"></span></div>
                                        <label class="layui-form-label"><span>告警ID：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.alarm_id}"></span></div>
                                        <label class="layui-form-label"><span>工单名称：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.order_name}"></span></div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"><span>处理状态：</span></label>
                                        <div class="layui-input-inline" th:switch="${iotAlarmWorkOrder.status}">
                                            <span class="layui-badge layui-bg-green" style="margin-top: 10px;" th:case="1">已处理</span>
                                            <span class="layui-badge layui-bg-orange" style="margin-top: 10px;" th:case="2">处理中</span>
                                            <span class="layui-badge layui-bg-red" style="margin-top: 10px;" th:case="3">未处理</span>
                                            <span class="layui-form-text" th:case="*"></span>
                                        </div>
                                        <label class="layui-form-label"><span>工单创建时间：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.create_time}"></span></div>
                                        <label class="layui-form-label"><span>工单更新时间：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.update_time}"></span></div>
                                        <label class="layui-form-label"><span>同步操作时间：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.lastSyncDate}?${#dates.format(iotAlarmWorkOrder.lastSyncDate, 'yyyy-MM-dd HH:mm:ss')}:''"></span></div>
                                        <label class="layui-form-label"><span>接口前缀：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotAlarmWorkOrder.prefix}"></span></div>
                                    </div>
                                </div>
                            </fieldset>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    <!-- javascript -->
    <script type="text/javascript" th:src="@{'/layui/layui.js'}" charset="utf-8"></script>
    <script type="text/javascript">
        layui.config({
            base: '/' //静态资源所在路径
        });
    </script>


</html>
