| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <!DOCTYPE html>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:mo="https://gitee.com/aun/Timo">
- <head th:replace="/common/template :: header(~{::title},~{::link},~{::style})">
- <link rel="stylesheet" th:href="@{/lib/zTree_v3/css/zTreeStyle/zTreeStyle.css}" type="text/css">
- </head>
- <body class="timo-layout-page">
- <div class="layui-card">
- <div class="layui-card-header timo-card-header">
- <span><i class="fa fa-bars"></i> 上传通道列表</span>
- <i class="layui-icon layui-icon-refresh refresh-btn"></i>
- </div>
- <div class="layui-card-body">
- <div class="layui-row timo-card-screen put-row">
- <div class="layui-row timo-card-screen put-row">
- <div class="pull-left layui-form-pane">
- <div class="layui-inline">
- <label class="layui-form-label">节点</label>
- <div class="layui-input-block timo-search-status">
- <select id="getPageByEnv" class="timo-search-select" name="env" onchange="getPageByCriteria()"
- mo:dict="ENVIRONMENT" mo-selected="${env}"></select>
- </div>
- </div>
- </div>
- <div class="pull-right">
- <div class="btn-group-right">
- <button class="layui-btn open-popup" data-title="新增上传通道" th:attr="data-url=@{/store/channel/add}"
- data-size="640,480">
- <i class="fa fa-plus"></i> 添加
- </button>
- </div>
- </div>
- </div>
- </div>
- <div class="timo-table-wrap">
- <table class="layui-table timo-table">
- <thead>
- <tr>
- <th class="sortable" data-field="appName">Channel ID</th>
- <th class="sortable" data-field="appType">名字</th>
- <th class="sortable" data-field="appId">前缀</th>
- <th class="sortable" data-field="repoBranch">最大文件</th>
- <th class="sortable" data-field="repoBranch">文件类型</th>
- <th class="sortable" data-field="repoBranch">处理文件</th>
- <th class="sortable" data-field="repoBranch">可见范围</th>
- <th class="sortable" data-field="appName">绑定域名</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <tr th:each="item:${list}">
- <td th:text="${item.channelId}">Channel ID</td>
- <td th:text="${item.name}">名字</td>
- <td th:text="${item.prefix}">前缀</td>
- <td th:text="${item.maxSize}">最大文件</td>
- <td th:text="${item.fileType}">文件类型</td>
- <td th:text="${item.processFile}">文件类型</td>
- <td th:text="${item.scope}">可见范围</td>
- <td th:text="${item.bindDomain}">绑定域名</td>
- <td>
- <a class="open-popup" data-title="修改 channel 可见范围" th:attr="data-url=@{'/store/channel/edit/'+${item.id}}"
- data-size="640,480" href="#">编辑</a>
- <a class="ajax-delete" th:attr="data-msg='确定要删除 '+ ${item.name}"
- th:href="@{'/api/store/channel/delete/' + ${item.id}}">删除</a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- <div th:replace="/common/fragment :: page"></div>
- </div>
- </div>
- <script th:replace="/common/template :: script"></script>
- <script type="text/javascript" th:src="@{/js/plugins/jquery-2.2.4.min.js}"></script>
- <script type="text/javascript">
- function getPageByCriteria() {
- console.log('select 事件')
- var envSelectedOption = $("#getPageByEnv option:selected")
- var envParam = envSelectedOption.text()
- var typeSelectedOption = $("#getPageByType option:selected")
- var typeParam = typeSelectedOption.text()
- url = '?env=' + envParam + '&type=' + typeParam
- window.location.href = window.location.pathname + url;
- }
- </script>
- </body>
- </html>
|