|
@@ -329,7 +329,7 @@
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
var xml = "<span style=\"cursor:default;\" class=\"status-label status-label-" + st.label + "\" >" + st.status + "</span>";
|
|
return xml;
|
|
return xml;
|
|
}}
|
|
}}
|
|
- ,{field:'op',align:'center',title:"操作", fixed: 'right',width:230,templet:function(d){
|
|
|
|
|
|
+ ,{field:'op',align:'center',title:"操作", fixed: 'right',width:250,templet:function(d){
|
|
////对操作进行初始化
|
|
////对操作进行初始化
|
|
var xml="";
|
|
var xml="";
|
|
if(d.canAdd != undefined && d.canAdd =="1")
|
|
if(d.canAdd != undefined && d.canAdd =="1")
|
|
@@ -361,29 +361,29 @@
|
|
|
|
|
|
/*归档相关按钮*/
|
|
/*归档相关按钮*/
|
|
if(d.projectReportStatus == 5){
|
|
if(d.projectReportStatus == 5){
|
|
- xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载报告模板', '${ctx}/ruralProject/ruralProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载报告模板</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" style='background-color: #FFB800' onclick=\"openDialogre('下载模板', '${ctx}/ruralProject/ruralProjectMessage/skipDownloadFtl?id=" + d.id +"','35%', '35%','','下载,关闭')\" class=\"op-btn\" > 下载模板</a>";
|
|
if(d.recordAdd != undefined && d.recordAdd =="1")
|
|
if(d.recordAdd != undefined && d.recordAdd =="1")
|
|
{
|
|
{
|
|
xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecord?reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"op-btn layui-bg-green\" ><i class=\"fa fa-plus\"></i> 归档</a>";
|
|
xml+="<a href=\"#\" onclick=\"openDialogre('新增归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecord?reportId=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"op-btn layui-bg-green\" ><i class=\"fa fa-plus\"></i> 归档</a>";
|
|
}
|
|
}
|
|
if(d.recordedit1 != undefined && d.recordedit1 =="1")
|
|
if(d.recordedit1 != undefined && d.recordedit1 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改归档信息</a>";
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档信息</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId +"','95%', '95%','','送审,暂存,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 重新归档</a>";
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档</a>";
|
|
}
|
|
}
|
|
if(d.recordedit2 != undefined && d.recordedit2 =="1")
|
|
if(d.recordedit2 != undefined && d.recordedit2 =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改归档信息</a>";
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档信息</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId + "&view=modify','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 重新归档</a>";
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档</a>";
|
|
}
|
|
}
|
|
if(d.recordrecall != undefined && d.recordrecall =="1")
|
|
if(d.recordrecall != undefined && d.recordrecall =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改归档信息</a>";
|
|
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档信息</a>";
|
|
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('撤回调整归档信息', '${ctx}/ruralProject/ruralProjectMessage/formRecordModify?id=" + d.prrId + " ','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 重新归档</a>";
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/deleteRecord?reportId=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目归档信息吗?', this.href)\" class=\"op-btn op-btn-delete\" ><i class=\"fa fa-trash\"></i> 删除归档</a>";
|
|
}
|
|
}
|
|
if(d.recordcancel != undefined && d.recordcancel =="1")
|
|
if(d.recordcancel != undefined && d.recordcancel =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该报告归档审批吗?', this.href)\" class=\"op-btn op-btn-cancel\" ><i class=\"glyphicon glyphicon-share-alt\"></i> 撤回归档信息</a>";
|
|
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectMessage/cancelInvalidate?id=" + d.prrId + "&processInstanceId=" + d.prrProcessInstanceId + "\" onclick=\"return confirmx('确认要撤回该报告归档审批吗?', this.href)\" class=\"op-btn op-btn-cancel\" ><i class=\"glyphicon glyphicon-share-alt\"></i> 撤回归档</a>";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
/*上报相关按钮*/
|
|
/*上报相关按钮*/
|
|
@@ -420,49 +420,51 @@
|
|
,"procId":"${projectRecords.processInstanceId}"
|
|
,"procId":"${projectRecords.processInstanceId}"
|
|
,"projectReportName":"${projectRecords.projectReportName}"
|
|
,"projectReportName":"${projectRecords.projectReportName}"
|
|
,"reportedState":"${projectRecords.reportedState}"
|
|
,"reportedState":"${projectRecords.reportedState}"
|
|
|
|
+ ,"createId":"${projectRecords.createBy.id}"
|
|
|
|
+ ,"loginId":"${fns:getUser().id}"
|
|
<c:choose>
|
|
<c:choose>
|
|
- <c:when test="${fn:contains(projectRecords.leaderIds,fns:getUser().id)}">
|
|
|
|
|
|
+ <c:when test="${fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id}">
|
|
,"canAdd":<c:choose>
|
|
,"canAdd":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportStatus == 0 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportStatus == 0 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"canedit1":<c:choose>
|
|
,"canedit1":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportStatus == 1 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportStatus == 1 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"canedit2":<c:choose>
|
|
,"canedit2":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportStatus == 4 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportStatus == 4 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"canrecall":<c:choose>
|
|
,"canrecall":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportStatus == 3 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportStatus == 3 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
|
|
|
|
,"cancancel":<c:choose>
|
|
,"cancancel":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportStatus == 2 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportStatus == 2 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
|
|
|
|
<%-- 归档状态 --%>
|
|
<%-- 归档状态 --%>
|
|
,"recordAdd":<c:choose>
|
|
,"recordAdd":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportRecordStatus == 0 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportRecordStatus == 0 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"recordedit1":<c:choose>
|
|
,"recordedit1":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportRecordStatus == 1 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportRecordStatus == 1 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"recordedit2":<c:choose>
|
|
,"recordedit2":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportRecordStatus == 4 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportRecordStatus == 4 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"recordrecall":<c:choose>
|
|
,"recordrecall":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportRecordStatus == 3 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportRecordStatus == 3 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
,"recordcancel":<c:choose>
|
|
,"recordcancel":<c:choose>
|
|
- <c:when test="${projectRecords.projectReportRecordStatus == 2 && fns:getUser().id == projectRecords.leaderIds}">"1"</c:when>
|
|
|
|
|
|
+ <c:when test="${projectRecords.projectReportRecordStatus == 2 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
<c:otherwise>"0"</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
</c:when>
|
|
</c:when>
|
|
@@ -479,7 +481,7 @@
|
|
,"recordcancel":"0"
|
|
,"recordcancel":"0"
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
- <shiro:hasPermission name="project:projectRecords:edit">,"canedit3":<c:choose><c:when test="${fn:contains(projectRecords.leaderIds,fns:getUser().id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
|
|
|
|
+ <shiro:hasPermission name="project:projectRecords:edit">,"canedit3":<c:choose><c:when test="${fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<%--<shiro:hasPermission name="project:projectRecords:edit">
|
|
<%--<shiro:hasPermission name="project:projectRecords:edit">
|
|
,"canedit3":<c:choose>
|
|
,"canedit3":<c:choose>
|
|
<c:when test="${projectRecords.projectReportStatus == 5 && fn:contains(projectRecords.leaderIds,fns:getUser().id)}">"1"</c:when>
|
|
<c:when test="${projectRecords.projectReportStatus == 5 && fn:contains(projectRecords.leaderIds,fns:getUser().id)}">"1"</c:when>
|