| | |
| | | <div class="ibox-content"> |
| | | <div class="row row-lg"> |
| | | <div class="col-sm-12"> |
| | | <input type="hidden" id="id" value="${one.id}"> |
| | | <div class="tabs-container"> |
| | | <ul class="nav nav-tabs"> |
| | | <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">常见问题设置</a></li> |
| | | </ul> |
| | | <div class="tab-content"> |
| | | <div id="tab-1" class="tab-pane active"> |
| | | <div class="panel-body"> |
| | | <div class="col-sm-3" style="padding-top: 10px;"> |
| | | <div class="input-group" style="width: 100%;"> |
| | | <select class="form-control" id="language"> |
| | | <option value="1">中文</option> |
| | | <option value="2">英文</option> |
| | | <option value="3">法文</option> |
| | | </select> |
| | | </div> |
| | | </div> |
| | | <div class="panel-body" style="padding-top: 60px;"> |
| | | <textarea id="editor_1" type="text/plain" style="width:1200px;height:400px;">${one.content}</textarea> |
| | | <div class="row btn-group-m-t"> |
| | | <div class="col-sm-10 col-sm-offset-5"> |
| | |
| | | $(function () { |
| | | //初始化编辑器 |
| | | editor_1 = UE.getEditor('editor_1'); |
| | | |
| | | $('#language').on('change', function () { |
| | | var ajax = new $ax(Feng.ctxPath + "/tAgreement/getAgreement", function(data){ |
| | | editor_1.setContent(data.content); |
| | | $('#id').val(data.id); |
| | | },function(data){ |
| | | Feng.error("编辑失败!" + data.responseJSON.message + "!"); |
| | | }); |
| | | ajax.set("language", $(this).val()); |
| | | ajax.set("type", 12); |
| | | ajax.set("useType", 1); |
| | | ajax.start(); |
| | | }) |
| | | }); |
| | | |
| | | function update_1(id){ |
| | |
| | | Feng.error("内容不能为空!"); |
| | | return; |
| | | } |
| | | submitData(editor_1.getContent(),id); |
| | | submitData(editor_1.getContent(), $('#id').val()); |
| | | } |
| | | |
| | | function submitData(content,id) { |