| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <!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>
- .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">
- <div class="line">基本信息 <span style="float:right">来源:[[${data?.recource}]]</span></div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">项目标题:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.title}]]</p>
- </div>
- <label class="form-label col-xs-2 col-sm-2">项目阶段:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.process_stage_desc}]]</p>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2">项目用地:</label>
- <div class="formControls col-xs-8 col-sm-2">
- <p>[[${data?.location}]]</p>
- </div>
- <label class="form-label col-xs-2 col-sm-2">项目状态:</label>
- <div class="formControls col-xs-4 col-sm-2">
- <p>[[${data?.approve_status_desc}]]</p>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>项目介绍:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.content}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>附件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <!-- <div class="uploader-list">-->
- <!-- <th:block th:unless="${data.fileDown==null || data.fileDown.file_url== null}">-->
- <!-- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.fileDown.file_url}" target="_blank">[[${data.fileDown.file_name}]]</a>-->
- <!-- </th:block>-->
- <!-- </div>-->
- <div class="uploader-list">
- <th:block th:unless="${data.fileList==null}"
- th:each="item,itemStat: ${data.fileList}">
- <p><a style="color: #0c80fe;" th:href="${fileUrl} + ${item.file_url}" target="_blank">[[${item.file_name}]]</a></p>
- </th:block>
- </div>
- </div>
- </div>
- <div class="line">项目信息补充</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>补充信息:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div th:utext="${data.supplement}">
- </div>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>补充附件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-list">
- <th:block th:unless="${data.supplement_file==null || data.supplement_file.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${data.supplement_file.file_url}"
- target="_blank">[[${data.supplement_file.file_name}]]</a>
- </th:block>
- </div>
- </div>
- </div>
- <div class="line">咨询问题</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"></label>
- <div class="formControls col-xs-8 col-sm-9">
- <table class="table table-border table-bordered table-bg table-hover processTb">
- <thead>
- <tr class="text-c">
- <th>咨询部门</th>
- <th>咨询问题</th>
- <th>反馈内容</th>
- <th>反馈文件</th>
- <th>剩余答复时间</th>
- <th>答复时间</th>
- <th>咨询时间</th>
- </tr>
- </thead>
- <tbody>
- <tr class="text-c" th:each="item : ${data.consultationList}">
- <td th:text="${item.department_name}"></td>
- <td th:text="${item.consultation}" class="viewComment" th:data="*{item.consultation}"></td>
- <td th:text="${item.feedback}" class="viewComment" th:data="*{item.feedback}"></td>
- <td>
- <th:block th:unless="${item.fileDown==null || item.fileDown.file_url== null}">
- <a style="color: #0c80fe;" th:href="${fileUrl} + ${item.fileDown.file_url}"
- target="_blank">[[${item.fileDown.file_name}]]</a>
- </th:block>
- </td>
- <td th:text="${item.remain_time}"></td>
- <td th:text="${item.feedback_time}"></td>
- <td th:text="${item.consultation_time}"></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- </form>
- <form class="form form-horizontal" id="form-add">
- <input hidden th:value="${data.id}" th:name="id"/>
- <div class="line">咨询汇总</div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>汇总意见:</label>
- <div class="formControls col-xs-8 col-sm-9">
- <textarea id="consultation_summary" name="consultation_summary" required>
- [[${data.consultation_summary}]]
- </textarea>
- </div>
- </div>
- <div class="row cl">
- <label class="form-label col-xs-4 col-sm-2"><span>文件:</span></label>
- <div class="formControls col-xs-8 col-sm-9">
- <div class="uploader-thum-container">
- <div id="fileListPre" class="uploader-list"></div>
- <div id="filePicker">选择文件</div>
- </div>
- </div>
- </div>
- <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-primary radius"><i class="Hui-iconfont"></i>提交 </a>
- <a onClick="removeIframe();" class="btn btn-default radius" type="button"> 返回 </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">
- //富文本kindeditor初始化
- var editor;
- KindEditor.ready(function (K) {
- editor = K.create('#consultation_summary', {
- uploadJson: pagePath + '/upload/kindEditorUpload',
- cssData: 'body {font-family: "微软雅黑"; font-size: 14px}',
- allowFileManager: false,
- allowUpload: true,
- width: "100%",
- height: "350px",
- items: array,
- syncType: "auto",
- filterMode: false,
- afterBlur: function () {
- this.sync();
- }
- });
- });
- $(function () {
- // 初始化上传
- var options = {
- uploadBtnId: '#filePicker',
- picturePreId: 'fileListPre',
- hiddenPictureUrl: 'img',
- hiddenPictureName: 'imgName',
- width: 81,
- height: 81,
- fileSizeLimit: 100 * 1024 * 1024,
- fileSingleSizeLimit: 100 * 1024 * 1024
- };
- var webUploadDoc = new $WebUploadDoc(options);
- webUploadDoc.init();
- });
- $(function () {
- //查看完整意见
- $(".viewComment").on("click", function () {
- layer.alert(
- $(this).attr('data'),
- {area: ['800px', '500px']}
- )
- });
- });
- function save() {
- if (editor.isEmpty()) {
- errorMessage('请输入汇总意见');
- return false;
- }
- $("#form-add").ajaxSubmit({
- type: 'post',
- url: pagePath + "/land_supply/summary",
- dataType: "json",
- data: {
- consultation_summary_text:editor.text()
- },
- success: function (data) {
- if (data.success) {
- succeedMessage(data.message);
- setTimeClose();
- } else {
- // $(form).find(":submit").attr("disabled", false);
- errorMessage(data.message);
- }
- },
- error: function () {
- errorMessage('系统错误!');
- }
- });
- }
- /**
- * 取消
- */
- function removeIframe() {
- var index = parent.layer.getFrameIndex(window.name);
- parent.layer.close(index);
- }
- </script>
- </body>
- </html>
|