leftTabs.html 1.97 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('左侧多面板')" />
</head>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeIn">
        <div class="row m-b-lg">
            <div class="col-sm-12">
                <div class="tabs-container">
                    <div class="tabs-left">
                        <ul class="nav nav-tabs">
                            <li class="active">
                                <a data-toggle="tab" th:onclick="changeTab()" th:dataurl="${activeTab.tabUrl}" th:title="${activeTab.hrefTitle}">[[${activeTab.tabTitle}]]</a>
                            </li>
                            <li th:if="${tabList != null}" th:each="item : ${tabList}" class="">
                                <a data-toggle="tab" th:onclick="changeTab()" th:dataurl="${item.tabUrl}" th:title="${item.hrefTitle}">[[${item.tabTitle}]]</a>
                            </li>
                        </ul>
                        <div class="tab-content">
                            <div th:id="${activeTab.tabId}" class="tab-pane active">
                                <div class="panel-body">
                                    <iframe class="RuoYi_iframe" style="min-height: 600px;" id="monitor_iframe" th:name="${activeTab.frameName}" width="100%" height="100%"
                                            th:data-id="${activeTab.tabUrl}" th:src="${activeTab.tabUrl}" frameborder="0" seamless></iframe>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />

    <script>
        function changeTab() {
            var tabUrl = $(event.target).attr("dataurl");
            $('#monitor_iframe').attr('src',tabUrl);
        }
    </script>
</body>
</html>