|
@@ -14,7 +14,9 @@
|
|
|
|
|
|
<link href="${ctxStatic}/bootstrap-select-1.12.4/css/bootstrap-select.min.css" rel="stylesheet" />
|
|
|
<style>
|
|
|
-
|
|
|
+ .layui-layer-btn1:hover{
|
|
|
+ color: #c2c2c2;
|
|
|
+ }
|
|
|
.list-form-tab li.current {
|
|
|
background-color: #007BFF; /* 蓝色背景 */
|
|
|
color: white; /* 白色字体 */
|
|
@@ -166,6 +168,7 @@
|
|
|
<form:form id="searchForm" modelAttribute="externalUnitProjectRecords" action="${ctx}/externalUnit/externalUnit/projectFile?id=${externalUnitProjectRecords.id}" method="post" class="form-inline">
|
|
|
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
+ <input id="toflag" name="toflag" type="hidden" value="1"/>
|
|
|
<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
|
|
|
<div class="commonQuery lw6">
|
|
|
<div class="layui-item query athird">
|
|
@@ -177,7 +180,8 @@
|
|
|
<div class="layui-item query athird ">
|
|
|
<label class="layui-form-label">提交人:</label>
|
|
|
<div class="layui-input-block">
|
|
|
- <form:input path="fileSubmiter" htmlEscape="false" maxlength="255" class=" form-control layui-input"/>
|
|
|
+ <sys:inquireselectUserNotReadolny id="create" name="fileSubmiter" value="${externalUnitProjectRecords.fileSubmiter}" labelName="fileSubmiterName" labelValue="${externalUnitProjectRecords.fileSubmiterName}"
|
|
|
+ title="用户" url="/sys/office/treeDataAll?type=3" cssClass="form-control required layui-input" allowClear="true" notAllowSelectParent="true"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item fr">
|
|
@@ -220,7 +224,91 @@
|
|
|
</div>
|
|
|
<div style="clear: both;"></div>
|
|
|
</div>
|
|
|
- <table class="oa-table layui-table" id="contentTable1"></table>
|
|
|
+ <table id="listAttachment" class="table table-bordered table-condensed details">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <%-- <th>序号</th>--%>
|
|
|
+ <th width="25%">文件名称</th>
|
|
|
+ <th width="25%">文件类型</th>
|
|
|
+ <th width="25%">上传人</th>
|
|
|
+ <th width="25%">上传时间</th>
|
|
|
+ <th width="25%">备注</th>
|
|
|
+ <th width="25%">状态</th>
|
|
|
+ <th width="150px">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody id="file_attachment">
|
|
|
+ <c:forEach items="${page.list}" var = "workClientAttachment" varStatus="status">
|
|
|
+ <tr class="trIdAdds">
|
|
|
+ <%-- <td>${status.index + 1}</td>--%>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${workClientAttachment.uploadMode == 2}">
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.temporaryUrl}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.temporaryUrl}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.temporaryUrl}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.temporaryUrl}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpg')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'png')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'gif')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'bmp')
|
|
|
+ or fn:containsIgnoreCase(workClientAttachment.attachmentName,'jpeg')}">
|
|
|
+ <td><img src="${workClientAttachment.url}" width="50" height="50" onclick="openDialogView('预览','${ctx}/sys/picturepreview/picturePreview?url=${workClientAttachment.url}','90%','90%')" alt="${workClientAttachment.attachmentName}">
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${fn:containsIgnoreCase(workClientAttachment.attachmentName,'pdf')}">
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%','1')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <td><a class="attention-info" href="javascript:void(0)" onclick="preview('预览','${workClientAttachment.url}','90%','90%')">${workClientAttachment.attachmentName}</a></td>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ <td>${workClientAttachment.type}</td>
|
|
|
+
|
|
|
+ <td>${workClientAttachment.createBy.name}</td>
|
|
|
+ <td><fmt:formatDate value="${workClientAttachment.createDate}" type="both"/></td>
|
|
|
+ <td>${workClientAttachment.remarks}</td>
|
|
|
+ <td>
|
|
|
+ <c:choose>
|
|
|
+ <c:when test="${workClientAttachment.divIdType == '_exterNoProcess'}">
|
|
|
+ <span>无流程</span>
|
|
|
+ </c:when>
|
|
|
+ <c:otherwise>
|
|
|
+ <a onclick="openDialogView('流程追踪', '${ctx}/externalUnit/capitalDemand/getDemandProcess?id=${workClientAttachment.attachmentId}','95%','95%')">有流程</a>
|
|
|
+ </c:otherwise>
|
|
|
+ </c:choose>
|
|
|
+ </td>
|
|
|
+ <td class="op-td">
|
|
|
+ <div class="op-btn-box" >
|
|
|
+ <a href="javascript:location.href='${ctx}/workfullmanage/workFullManage/downLoadAttach?file='+encodeURIComponent('${workClientAttachment.url}');" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </c:forEach>
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
|
|
|
<!-- 分页代码 -->
|
|
|
<table:page page="${page}"></table:page>
|
|
@@ -240,7 +328,13 @@
|
|
|
,cols: [[
|
|
|
// {checkbox: true, fixed: true},
|
|
|
{field:'index',align:'center', title: '序号',width:60}
|
|
|
- ,{field:'attachmentName',align:'center', title: '文件名称', minWidth:200}
|
|
|
+ ,{field:'attachmentName',align:'center', title: '文件名称', minWidth:200,templet:function(d){
|
|
|
+ var url = d.temporaryUrl;
|
|
|
+ var className = d.attachmentName;
|
|
|
+ var onclick = (d.type === 'pdf') ? "preview('预览','"+url+"','90%','90%',1)" : "preview('预览','"+url+"','90%','90%')";
|
|
|
+ return '<a href="javascript:void(0)" class="attention-info" onclick="' + onclick + '">' + '<span title=' + d.attachmentName + '>' + d.attachmentName + '</span>' + '</a>';
|
|
|
+
|
|
|
+ }}
|
|
|
,{field:'type',align:'center', title: '文件类型', minWidth:100}
|
|
|
,{field:'createName', align:'center',title: '上传人', minWidth:80}
|
|
|
,{field:'createDate',align:'center', title: '上传时间', minWidth:80}
|
|
@@ -255,12 +349,13 @@
|
|
|
|
|
|
}}
|
|
|
,{field:'op', align:'center',title: '操作', minWidth:80,templet:function(d){
|
|
|
- if (d.type == 'pdf')
|
|
|
- var link = '<a href="' + d.temporaryUrl + '" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>';
|
|
|
- else
|
|
|
- var link = '<a href="'+ d.temporaryUrl +'" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>';
|
|
|
-
|
|
|
- return link;
|
|
|
+ var baseUrl = '${ctx}/workfullmanage/workFullManage/downLoadAttach?file='; // 假设这是服务器端提供的下载基础 URL
|
|
|
+ var fileUrl = encodeURIComponent(d.temporaryUrl); // 使用 d.temporaryUrl 或默认 URL
|
|
|
+ if (d.type === 'pdf') {
|
|
|
+ return '<a href="' + d.temporaryUrl + '" target="_blank" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>';
|
|
|
+ } else {
|
|
|
+ return '<a href="' + baseUrl + fileUrl + '" class="op-btn op-btn-download"><i class="fa fa-download"></i> 下载</a>';
|
|
|
+ }
|
|
|
}}
|
|
|
]]
|
|
|
,data: [
|
|
@@ -273,7 +368,8 @@
|
|
|
,"attachmentName":"${file.attachmentName}"
|
|
|
,"attachmentId":"${file.attachmentId}"
|
|
|
,"type":"${file.type}"
|
|
|
- ,"temporaryUrl":"${file.url}"
|
|
|
+ ,"temporaryUrl":"${file.temporaryUrl}"
|
|
|
+ ,"url":"${file.url}"
|
|
|
,"createName":"${file.createName}"
|
|
|
,"createDate":"<fmt:formatDate value="${file.createDate}" pattern="yyyy-MM-dd"/>"
|
|
|
,"status":
|