| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <!DOCTYPE HTML>
- <html xmlns:th="http://www.thymeleaf.org"
- xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
- layout:decorate="~{admin/common/common}">
- <head>
- <title>配置</title>
- <style>
- multiple:hover .dropdown-clear-all, .dropdown-single:hover .dropdown-clear-all {
- display: none;
- }
- .line {
- display: block;
- text-align: left;
- background-color: #fff;
- color: #333;
- border-bottom: 1px solid #0a6999;
- border-color: #fff;
- border-bottom: 1px solid #0a6999;
- margin-top: 10px;
- vertical-align: middle;
- padding: 4px 12px;
- height: 31px;
- line-height: 31px;
- font-size: 14px;
- font-weight: bold;
- }
- </style>
- </head>
- <body layout:fragment="content">
- <article class="page-container">
- <form class="form form-horizontal" id="form-add">
- <th:block th:each="item,itemStat: ${list}">
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">[[${item.name}]]:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <input type="text" class="input-text" th:value="${item.value}" th:name="'configList['+${itemStat.index}+'].value'"/>
- <input type="text" hidden th:value="${item.id}" th:name="'configList['+${itemStat.index}+'].id'"/>
- <input type="text" hidden th:value="${item.name}" th:name="'configList['+${itemStat.index}+'].name'"/>
- <input type="text" hidden th:value="${item.type}" th:name="'configList['+${itemStat.index}+'].type'"/>
- </div>
- </div>
- </th:block>
- <div class="row cl text-c" style="background-color: white">
- <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
- <a onclick="save()" class="btn btn-secondary radius"><i class="Hui-iconfont"></i>保存</a>
- </div>
- </div>
- </form>
- </article>
- <script type="text/javascript" th:src="@{/h-ui/lib/webuploader/0.1.5/webuploader.min.js}"></script>
- <script th:inline="javascript">
- //保存草稿
- function save() {
- $("#form-add").ajaxSubmit({
- type: 'post',
- url: pagePath + "/land_supply/config/save",
- dataType: "json",
- data: {},
- success: function (data) {
- if (data.success) {
- succeedMessage(data.message);
- setTimeClose();
- } else {
- // $(form).find(":submit").attr("disabled", false);
- errorMessage(data.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- </script>
- </body>
- </html>
|