12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!DOCTYPE html>
- <html lang="zh" xmlns:th="http://www.thymeleaf.org" >
- <head>
- <th:block th:include="include :: header('常用问答管理表修改')" />
- </head>
- <body>
- <div class="ui-layout-center">
- <form id="form-SDtpYypzFaqManagement-edit" class="customize-search-form">
- <div class="customize-form-group-container">
- </div>
- <div class="customize-form-group-container">
- </div>
- <div class="customize-form-group-container">
- <input type="hidden" id="id" name="id" th:value="${id}">
- <div class="customize-form-group">
- <label>问答ID:</label>
- <input name="questionAnswerId" placeholder="问答ID" th:value="${questionAnswerId}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>问答类型:</label>
- <input name="questionAnswerType" placeholder="问答类型" th:value="${questionAnswerType}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>问答摘要:</label>
- <input name="summary" placeholder="问答摘要" th:value="${summary}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>问题内容:</label>
- <input name="questionContent" placeholder="问题内容" th:value="${questionContent}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>回答内容:</label>
- <input name="answerContent" placeholder="回答内容" th:value="${answerContent}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>适用药品:</label>
- <input name="applicableDrugs" placeholder="适用药品" th:value="${applicableDrugs}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>排序权重:</label>
- <input name="sortWeight" placeholder="排序权重" th:value="${sortWeight}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>状态</label>
- <input name="status" placeholder="状态:启用,禁用" th:value="${status}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>最后编辑时间:</label>
- <input name="lastEditTime" placeholder="最后编辑时间" th:value="${lastEditTime}" class="styled-input" type="text">
- </div>
- <div class="customize-form-group">
- <label>最后编辑人:</label>
- <input name="lastEditor" placeholder="最后编辑人" th:value="${lastEditor}" class="styled-input" type="text">
- </div>
- </div>
- </form>
- </div>
- <div class="main-content">
- <div class="col-sm-offset-5 col-sm-10">
- </div>
- </div>
- <th:block th:include="include :: footer" />
- </body>
- </html>
- <script>
- function edit() {
- var data = $("#form-SDtpYypzFaqManagement-edit").serializeArray();
- $.ajax({
- cache : true,
- type : "POST",
- url : ctx + "dtp/sdtpyypzfaqmanagement/sDtpYypzFaqManagementEdit",
- data : data,
- async : false,
- error : function(request) {
- $.modal.alertError("系统错误");
- },
- success : function(data) {
- $.operate.successCallback(data);
- }
- });
- }
- function submitHandler() {
- if ($.validate.form()) {
- edit();
- }
- }
- </script>
|