|
@@ -322,9 +322,9 @@
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
<div class="form-group-label"><h2>成果文件</h2></div>
|
|
- <div class="layui-item nav-btns">
|
|
|
|
- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=11&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_attachment')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>
|
|
|
|
- </div>
|
|
|
|
|
|
+<%-- <div class="layui-item nav-btns">--%>
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=11&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_attachment')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>--%>
|
|
|
|
+<%-- </div>--%>
|
|
<div id="addFile_attachment" style="display: none" class="upload-progress">
|
|
<div id="addFile_attachment" style="display: none" class="upload-progress">
|
|
<span id="fileName_attachment" ></span>
|
|
<span id="fileName_attachment" ></span>
|
|
<span id="_attachment" ></span>
|
|
<span id="_attachment" ></span>
|
|
@@ -341,39 +341,47 @@
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
- <th>电子件名称</th>
|
|
|
|
- <th width="100px">最大容量(M)</th>
|
|
|
|
- <th width="18%">类型限制</th>
|
|
|
|
- <th>文件名</th>
|
|
|
|
|
|
+ <th width="30%">电子件名称</th>
|
|
|
|
+<%-- <th width="100px">最大容量(M)</th>--%>
|
|
|
|
+ <th width="">类型限制</th>
|
|
|
|
+<%-- <th>文件名</th>--%>
|
|
<th width="150px">操作</th>
|
|
<th width="150px">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="file_attachment">
|
|
<tbody id="file_attachment">
|
|
<c:forEach items="${projectReportRecord.fileAttachmentList}" var = "fileAttachment" varStatus="status">
|
|
<c:forEach items="${projectReportRecord.fileAttachmentList}" var = "fileAttachment" varStatus="status">
|
|
- <tr>
|
|
|
|
|
|
+ <tr id="file_attachment_${fileAttachment.id}_tr" onclick="listTr(this)">
|
|
<td style="display:none">${fileAttachment.id}</td>
|
|
<td style="display:none">${fileAttachment.id}</td>
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
<td style="display:none">${fileAttachment.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileAttachment.mustFlag == 1}">
|
|
<c:when test="${fileAttachment.mustFlag == 1}">
|
|
- <td><span style="color: red">* </span>${fileAttachment.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileAttachment.attachName}</td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td>${fileAttachment.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileAttachment.attachName}</td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
- <td>${fileAttachment.attachLength}</td>
|
|
|
|
- <td>${fileAttachment.attachTypes}</td>
|
|
|
|
- <td>
|
|
|
|
- <c:forEach items="${fileAttachment.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
- <a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a>
|
|
|
|
- </c:forEach>
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td>${fileAttachment.attachLength}M;${fileAttachment.attachTypes}</td>
|
|
|
|
+<%-- <td></td>--%>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
|
|
|
|
+ <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <c:forEach items="${fileAttachment.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
+ <tr class="file_attachment_${fileAttachment.id}_tr">
|
|
|
|
+ <td></td>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>--%>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -388,16 +396,10 @@
|
|
0
|
|
0
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachName}}
|
|
|
|
|
|
+ <span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span> {{row.attachName}}
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachLength}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
- {{row.attachTypes}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
-
|
|
|
|
|
|
+ {{row.attachLength}}M;{{row.attachTypes}}
|
|
</td>
|
|
</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
@@ -409,10 +411,10 @@
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group-label"><h2>依据性资料</h2></div>
|
|
<div class="form-group-label"><h2>依据性资料</h2></div>
|
|
- <div class="layui-item nav-btns">
|
|
|
|
- <%--<a id="gistdata_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>--%>
|
|
|
|
- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=12&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_gistdata')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>
|
|
|
|
- </div>
|
|
|
|
|
|
+<%-- <div class="layui-item nav-btns">--%>
|
|
|
|
+<%-- <%–<a id="gistdata_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>–%>--%>
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=12&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_gistdata')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>--%>
|
|
|
|
+<%-- </div>--%>
|
|
<div id="addFile_gistdata" style="display: none" class="upload-progress">
|
|
<div id="addFile_gistdata" style="display: none" class="upload-progress">
|
|
<span id="fileName_gistdata" ></span>
|
|
<span id="fileName_gistdata" ></span>
|
|
<span id="_gistdata" ></span>
|
|
<span id="_gistdata" ></span>
|
|
@@ -429,40 +431,47 @@
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
- <th>电子件名称</th>
|
|
|
|
- <th width="100px">最大容量(M)</th>
|
|
|
|
- <th width="18%">类型限制</th>
|
|
|
|
- <th>文件名</th>
|
|
|
|
|
|
+ <th width="30%">电子件名称</th>
|
|
|
|
+<%-- <th width="100px">最大容量(M)</th>--%>
|
|
|
|
+ <th width="">类型限制</th>
|
|
|
|
+<%-- <th>文件名</th>--%>
|
|
<th width="150px">操作</th>
|
|
<th width="150px">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="file_gistdata">
|
|
<tbody id="file_gistdata">
|
|
<c:forEach items="${projectReportRecord.fileGistdataList}" var = "fileGistdata" varStatus="status">
|
|
<c:forEach items="${projectReportRecord.fileGistdataList}" var = "fileGistdata" varStatus="status">
|
|
- <tr>
|
|
|
|
|
|
+ <tr id="file_gistdata_${fileGistdata.id}_tr" onclick="listTr(this)">
|
|
<%-- <td>${status.index + 1}</td>--%>
|
|
<%-- <td>${status.index + 1}</td>--%>
|
|
<td style="display:none">${fileGistdata.id}</td>
|
|
<td style="display:none">${fileGistdata.id}</td>
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
<td style="display:none">${fileGistdata.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileGistdata.mustFlag == 1}">
|
|
<c:when test="${fileGistdata.mustFlag == 1}">
|
|
- <td><span style="color: red">* </span>${fileGistdata.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileGistdata.attachName}</td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td>${fileGistdata.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileGistdata.attachName}</td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
- <td>${fileGistdata.attachLength}</td>
|
|
|
|
- <td>${fileGistdata.attachTypes}</td>
|
|
|
|
- <td>
|
|
|
|
- <c:forEach items="${fileGistdata.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
- <a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a>
|
|
|
|
- </c:forEach>
|
|
|
|
- </td>
|
|
|
|
|
|
+ <td>${fileGistdata.attachLength}M;${fileGistdata.attachTypes}</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileGistdata.id}&projectId=${project.id}','70%','80%',false,'inputForm','gistdata_upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileGistdata.id}&projectId=${project.id}','70%','80%',false,'inputForm','gistdata_upTable')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <c:forEach items="${fileGistdata.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
+ <tr class="file_gistdata_${fileGistdata.id}_tr">
|
|
|
|
+ <td></td>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a></td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>--%>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -477,16 +486,10 @@
|
|
0
|
|
0
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachName}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
- {{row.attachLength}}
|
|
|
|
|
|
+ <span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>{{row.attachName}}
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachTypes}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
-
|
|
|
|
|
|
+ {{row.attachLength}}M;{{row.attachTypes}}
|
|
</td>
|
|
</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
@@ -498,10 +501,10 @@
|
|
|
|
|
|
<div class="form-group layui-row">
|
|
<div class="form-group layui-row">
|
|
<div class="form-group-label"><h2>其他文件</h2></div>
|
|
<div class="form-group-label"><h2>其他文件</h2></div>
|
|
- <div class="layui-item nav-btns">
|
|
|
|
- <%--<a id="other_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>--%>
|
|
|
|
- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=13&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_other')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>
|
|
|
|
- </div>
|
|
|
|
|
|
+<%-- <div class="layui-item nav-btns">--%>
|
|
|
|
+<%-- <%–<a id="other_btn" class="nav-btn nav-btn-add" title="添加附件"><i class="fa fa-plus"></i> 添加附件</a>–%>--%>
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="formAttachment('添加类型', '${ctx}/projectAccessoryRelation/projectAccessoryRelation/formAttachment?parentId=13&projectType=1&projectId=${project.id}&reviewFee=${projectReportRecord.report.reviewFee}','500px','350px',false,'inputForm','file_other')" class="nav-btn nav-btn-add" ><i class="fa fa-plus"></i> 添加类型</a>--%>
|
|
|
|
+<%-- </div>--%>
|
|
<div id="addFile_other" style="display: none" class="upload-progress">
|
|
<div id="addFile_other" style="display: none" class="upload-progress">
|
|
<span id="fileName_other" ></span>
|
|
<span id="fileName_other" ></span>
|
|
<span id="_other" ></span>
|
|
<span id="_other" ></span>
|
|
@@ -518,40 +521,49 @@
|
|
<thead>
|
|
<thead>
|
|
<tr>
|
|
<tr>
|
|
<%-- <th>序号</th>--%>
|
|
<%-- <th>序号</th>--%>
|
|
- <th>电子件名称</th>
|
|
|
|
- <th width="100px">最大容量(M)</th>
|
|
|
|
- <th width="18%">类型限制</th>
|
|
|
|
- <th>文件名</th>
|
|
|
|
|
|
+ <th width="30%">电子件名称</th>
|
|
|
|
+<%-- <th width="100px">最大容量(M)</th>--%>
|
|
|
|
+ <th width="">类型限制</th>
|
|
|
|
+<%-- <th>文件名</th>--%>
|
|
<th width="150px">操作</th>
|
|
<th width="150px">操作</th>
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody id="file_other">
|
|
<tbody id="file_other">
|
|
<c:forEach items="${projectReportRecord.fileOtherList}" var = "fileOther" varStatus="status">
|
|
<c:forEach items="${projectReportRecord.fileOtherList}" var = "fileOther" varStatus="status">
|
|
- <tr>
|
|
|
|
|
|
+ <tr id="file_other_${fileOther.id}_tr" onclick="listTr(this)">
|
|
<%-- <td>${status.index + 1}</td>--%>
|
|
<%-- <td>${status.index + 1}</td>--%>
|
|
<td style="display:none">${fileOther.id}</td>
|
|
<td style="display:none">${fileOther.id}</td>
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
<td style="display:none">${fileOther.mustFlag}</td>
|
|
<c:choose>
|
|
<c:choose>
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
<c:when test="${fileOther.mustFlag == 1}">
|
|
- <td><span style="color: red">* </span>${fileOther.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span><span style="color: red">* </span>${fileOther.attachName}</td>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
- <td>${fileOther.attachName}</td>
|
|
|
|
|
|
+ <td><span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span>${fileOther.attachName}</td>
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
- <td>${fileOther.attachLength}</td>
|
|
|
|
- <td>${fileOther.attachTypes}</td>
|
|
|
|
- <td>
|
|
|
|
- <c:forEach items="${fileOther.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
- <a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a>
|
|
|
|
- </c:forEach>
|
|
|
|
- </td>
|
|
|
|
|
|
+<%-- <td></td>--%>
|
|
|
|
+ <td>${fileOther.attachLength}M;${fileOther.attachTypes}</td>
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileOther.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileOther.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
|
|
+ <c:forEach items="${fileOther.workAttachments}" var = "workAttachment" varStatus="status">
|
|
|
|
+ <tr class="file_other_${fileOther.id}_tr">
|
|
|
|
+ <td></td>
|
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workAttachment.url}','90%','90%')">${workAttachment.attachmentName} ; </a>
|
|
|
|
+ </td>
|
|
|
|
+ <td class="op-td">
|
|
|
|
+ <div class="op-btn-box" >
|
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent(encodeURIComponent('${workAttachment.url}'));" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
|
+
|
|
|
|
+<%-- <a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId=${fileAttachment.id}&projectId=${project.id}','70%','80%',false,'inputForm','upTable',this)" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>--%>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
</c:forEach>
|
|
</c:forEach>
|
|
</tbody>
|
|
</tbody>
|
|
</table>
|
|
</table>
|
|
@@ -566,17 +578,12 @@
|
|
0
|
|
0
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachName}}
|
|
|
|
|
|
+ <span class='treeTable-icon open' style="padding-right: 15px; "><i class="layui-icon layui-icon-triangle-d"></i></span> {{row.attachName}}
|
|
</td>
|
|
</td>
|
|
<td style="text-align:center;">
|
|
<td style="text-align:center;">
|
|
- {{row.attachLength}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
- {{row.attachTypes}}
|
|
|
|
- </td>
|
|
|
|
- <td style="text-align:center;">
|
|
|
|
-
|
|
|
|
|
|
+ {{row.attachLength}}M;{{row.attachTypes}}
|
|
</td>
|
|
</td>
|
|
|
|
+ <td style
|
|
<td class="op-td">
|
|
<td class="op-td">
|
|
<div class="op-btn-box" >
|
|
<div class="op-btn-box" >
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
<a href="javascript:void(0)" onclick="openBill2('编辑附件', '${ctx}/projectAccessory/projectAccessory/workAttachmentForm?attachmentId={{row.id}}&projectId=${project.id}','70%','80%',false,'inputForm','upTable_other')" class="op-btn op-btn-edit" ><i class="fa fa-edit"></i> 编辑</a>
|
|
@@ -675,8 +682,11 @@
|
|
<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
<script src="${ctxStatic}/layer-v2.3/layui/layui.all.js" charset="utf-8"></script>
|
|
<script src="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.js" charset="utf-8"></script>
|
|
<script src="${ctxStatic}/layer-v2.3/layui/tableTree/treetable.js" charset="utf-8"></script>
|
|
<script>
|
|
<script>
|
|
- function openBill2(title,url,width,height,target,formId,tableId){
|
|
|
|
|
|
+ function openBill2(title,url,width,height,target,formId,tableId,obj){
|
|
var rows = $(this).parent().prevAll().length + 1;
|
|
var rows = $(this).parent().prevAll().length + 1;
|
|
|
|
+ var tbody="#"+$(obj).parent().parent().parent().parent().attr("id");
|
|
|
|
+ var trname=$(obj).parent().parent().parent().attr("id");
|
|
|
|
+ var filetr="."+$(obj).parent().parent().parent().attr("id");
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var frameIndex = parent.layer.getFrameIndex(window.name);
|
|
var urls = url+"&index="+frameIndex;
|
|
var urls = url+"&index="+frameIndex;
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
if(navigator.userAgent.match(/(iPhone|iPod|Android|ios)/i)){//如果是移动端,就使用自适应大小弹窗
|
|
@@ -706,7 +716,24 @@
|
|
inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
inputForm.attr("target",top_iframe);//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
inputForm.attr("action","${ctx}/projectAccessory/projectAccessory/saveWorkAttachment");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
inputForm.attr("action","${ctx}/projectAccessory/projectAccessory/saveWorkAttachment");//表单提交成功后,从服务器返回的url在当前tab中展示
|
|
var $document = iframeWin.contentWindow.document;
|
|
var $document = iframeWin.contentWindow.document;
|
|
-
|
|
|
|
|
|
+ var files=iframeWin.contentWindow.showfile()
|
|
|
|
+ var xias=iframeWin.contentWindow.showfileXia()
|
|
|
|
+ // if(files.length!=0){
|
|
|
|
+ // // var name=filetr
|
|
|
|
+ // $(filetr).remove();
|
|
|
|
+ // for (var i=0;i<files.length;i++){
|
|
|
|
+ // $(tbody).append(
|
|
|
|
+ // "<tr class='"+trname+"'>" +
|
|
|
|
+ // "<td></td>" +
|
|
|
|
+ // "<td>" +
|
|
|
|
+ // files[i]+
|
|
|
|
+ // "</td>" +
|
|
|
|
+ // "<td>" +
|
|
|
|
+ // "</td>" +
|
|
|
|
+ // "</tr>"
|
|
|
|
+ // )
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
formSubmit2($document,formId,index,tableId);
|
|
formSubmit2($document,formId,index,tableId);
|
|
|
|
|
|
},
|
|
},
|
|
@@ -938,7 +965,19 @@
|
|
})
|
|
})
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ function listTr(obj){
|
|
|
|
+ var name=$(obj).attr("id");
|
|
|
|
+ var tiao="."+name;
|
|
|
|
+ var span=$(obj).find("td").eq(2);
|
|
|
|
+ // var ss=$(span).val().split(" ")[4];
|
|
|
|
+ $(span).toggle(function () {
|
|
|
|
+ $(tiao).hide();
|
|
|
|
+ $(span).find("span").attr("class","treeTable-icon")
|
|
|
|
+ },function () {
|
|
|
|
+ $(tiao).show();
|
|
|
|
+ $(span).find("span").attr("class","treeTable-icon open")
|
|
|
|
+ });
|
|
|
|
+ }
|
|
function confirmDelete(mess, href){
|
|
function confirmDelete(mess, href){
|
|
top.layer.confirm(mess, {icon: 3, title:'系统提示'}, function(index){
|
|
top.layer.confirm(mess, {icon: 3, title:'系统提示'}, function(index){
|
|
//do something
|
|
//do something
|