<!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="${iotApiLog.id}" />
                                        <label class="layui-form-label"><span>响应状态：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.code}"></span></div>
                                        <label class="layui-form-label"><span>响应消息：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.msg}"></span></div>
                                        <label class="layui-form-label"><span>接口前缀：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.urlPrefix}"></span></div>
                                        <label class="layui-form-label"><span>请求方法：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.apiMethod}"></span></div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"><span>创建时间：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.createDate}?${#dates.format(iotApiLog.createDate, 'yyyy-MM-dd HH:mm:ss')}:''"></span></div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"><span>请求数据：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.reqData}"></span></div>
                                    </div>
                                    <div class="layui-form-item">
                                        <label class="layui-form-label"><span>响应数据：</span></label>
                                        <div class="layui-input-inline"><span class="layui-form-text" th:text="${iotApiLog.data}"></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>
