| | |
| | | <div class="margin-lr"> |
| | | <div class="pt-main-top clear"> |
| | | <div class="pt-nav"> |
| | | <span class="pt-title-icon"> <i class="fa fa-upload"></i> |
| | | <c:if test="${type==0}"> |
| | | <span class="pt-title-icon"> <i class="fa fa-upload"></i> |
| | | </span> |
| | | <div class="pt-title"> |
| | | <div> |
| | | <h4>修改文件类型</h4> |
| | | <div class="pt-title"> |
| | | <div> |
| | | <h4>修改文件类型</h4> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </c:if> |
| | | <c:if test="${type==1}"> |
| | | <span class="pt-title-icon"> <i class="fa fa-upload"></i> |
| | | </span> |
| | | <div class="pt-title"> |
| | | <div> |
| | | <h4>添加到成果资料</h4> |
| | | </div> |
| | | </div> |
| | | </c:if> |
| | | </div> |
| | | </div> |
| | | <div class="pt-form"> |
| | |
| | | </div> |
| | | </td> |
| | | </tr> |
| | | |
| | | <c:if test="${type==1}"> |
| | | <tr> |
| | | <td class="tbtitle">请输入添加的数量:</td> |
| | | <td> |
| | | <input class="easyui-textbox" id="returnOpinion" type="text" style="width: 300px;height: 30px;"/> |
| | | </td> |
| | | </tr> |
| | | </c:if> |
| | | </table> |
| | | <div class="progress" style="display: none;"> |
| | | <span class="text">0%</span> |
| | |
| | | $("#btnSave").click(function () { |
| | | var wjlx = $("#WJLX").combobox("getValue"); |
| | | var idList = params.ids; |
| | | <c:if test="${type==1}"> |
| | | var returnOpinion = $("#returnOpinion").textbox("getValue"); |
| | | var _jsonData = new Object(); |
| | | _jsonData["ids"] = idList; |
| | | _jsonData["returnOpinion"] = returnOpinion; |
| | | _jsonData["wjlx"] = wjlx; |
| | | wcp.ui.setBusy("body", wcp.ajax({ |
| | | url: 'catYswjxx/addCg?moduleId=${moduleId}', |
| | | data: JSON.stringify(_jsonData) |
| | | }).done(function (result) { |
| | | //判断是否需要执行回调函数 |
| | | if (params.callBack) { |
| | | params.callBack(); |
| | | } |
| | | //关闭窗口 |
| | | closeWindow(); |
| | | top.wcp.notify.success("保存成功!"); |
| | | })); |
| | | </c:if> |
| | | <c:if test="${type==0}"> |
| | | wcp.ui.setBusy("body", wcp.ajax({ |
| | | url: "catYswjxx/updateFileType?fileType=" + wjlx, |
| | | data: JSON.stringify(idList) |
| | |
| | | closeWindow(); |
| | | top.wcp.notify.success("保存成功!"); |
| | | })); |
| | | </c:if> |
| | | }); |
| | | |
| | | $("#btnClose").click(function () { |
| | |
| | | function initSelectProject() { |
| | | var data = []; |
| | | wcp.ui.setBusy("body", wcp.ajax({ |
| | | url: "catYswjxx/getFileType" |
| | | url: "catYswjxx/getFileType?type=${type}" |
| | | }).done(function (result) { |
| | | result.forEach(function (item) { |
| | | var dept = { |