|
@@ -263,7 +263,7 @@
|
|
<div class="layui-input-block">
|
|
<div class="layui-input-block">
|
|
<form:select path="projectStatus" class=" form-control simple-select">
|
|
<form:select path="projectStatus" class=" form-control simple-select">
|
|
<form:option value="" label=""/>
|
|
<form:option value="" label=""/>
|
|
- <form:options items="${fns:getDictList('audit_state')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
|
|
|
|
+ <form:options items="${fns:getRuralDictList('rural_project_audit_state')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
|
|
</form:select>
|
|
</form:select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -322,7 +322,7 @@
|
|
,{field:'projMaster', align:'center',title: '负责人', width:65,templet:function(d){
|
|
,{field:'projMaster', align:'center',title: '负责人', width:65,templet:function(d){
|
|
return "<span title=\"" + d.projMaster + "\">" + d.projMaster + "</span>";
|
|
return "<span title=\"" + d.projMaster + "\">" + d.projMaster + "</span>";
|
|
}}
|
|
}}
|
|
- ,{field:'client',align:'center', title: '主委托方', width:150,templet:function(d){
|
|
|
|
|
|
+ ,{field:'client',align:'center', title: '委托方', width:150,templet:function(d){
|
|
return "<span title=\"" + d.client + "\">" + d.client + "</span>";
|
|
return "<span title=\"" + d.client + "\">" + d.client + "</span>";
|
|
}}
|
|
}}
|
|
,{field:'createDate',align:'center', title: '创建日期', width:80}
|
|
,{field:'createDate',align:'center', title: '创建日期', width:80}
|
|
@@ -354,7 +354,7 @@
|
|
}
|
|
}
|
|
if(d.candel != undefined && d.candel =="1")
|
|
if(d.candel != undefined && d.candel =="1")
|
|
{
|
|
{
|
|
- xml+="<a href=\"${ctx}/ruralProject/ruralProjectRecords/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目信息吗?', this.href)\" class=\"op-btn op-btn-delete\"><i class=\"fa fa-trash\"></i> 删除</a>";
|
|
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectRecords/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要作废该项目信息吗?', this.href)\" class=\"op-btn op-btn-invalid\"><i class=\"fa fa-trash-o\"></i> 作废</a>";
|
|
}
|
|
}
|
|
if(d.cancancel != undefined && d.cancancel =="1")
|
|
if(d.cancancel != undefined && d.cancancel =="1")
|
|
{
|
|
{
|
|
@@ -364,6 +364,11 @@
|
|
{
|
|
{
|
|
//xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogre('项目变更管理', '${ctx}/ruralProject/ruralProjectRecordsAlter/form?alterBeforeRecords.id='+encodeURIComponent('" + d.id + "'),'95%','95%','','送审,暂存,关闭')\" style=\"color: white;background: darkseagreen\" class=\"op-btn op-btn-op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
//xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogre('项目变更管理', '${ctx}/ruralProject/ruralProjectRecordsAlter/form?alterBeforeRecords.id='+encodeURIComponent('" + d.id + "'),'95%','95%','','送审,暂存,关闭')\" style=\"color: white;background: darkseagreen\" class=\"op-btn op-btn-op-btn-revert\" ><i class=\"fa fa-edit\"></i> 变更</a>";
|
|
}
|
|
}
|
|
|
|
+ if(d.deleteAdmin != undefined && d.deleteAdmin =="1")
|
|
|
|
+ {
|
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改项目', '${ctx}/ruralProject/ruralProjectRecords/adminModify?id=" + d.id + "','95%', '95%','','提交,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改</a>";
|
|
|
|
+ xml+="<a href=\"${ctx}/ruralProject/ruralProjectRecords/adminDelete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目信息吗?', this.href)\" class=\"op-btn op-btn-delete\"><i class=\"fa fa-trash\"></i> 删除</a>";
|
|
|
|
+ }
|
|
return xml;
|
|
return xml;
|
|
|
|
|
|
}}
|
|
}}
|
|
@@ -383,6 +388,7 @@
|
|
,"createDate":"<fmt:formatDate value="${projectRecords.createDate}" pattern="yyyy-MM-dd"/>"
|
|
,"createDate":"<fmt:formatDate value="${projectRecords.createDate}" pattern="yyyy-MM-dd"/>"
|
|
,"projectStatus":"${projectRecords.projectStatus}"
|
|
,"projectStatus":"${projectRecords.projectStatus}"
|
|
,"procId":"${projectRecords.processInstanceId}"
|
|
,"procId":"${projectRecords.processInstanceId}"
|
|
|
|
+ ,"flagAdmin":"${projectRecords.flagAdmin}"
|
|
<c:choose><c:when test="${flag == '1' or fns:getUser().id == projectRecords.createBy.id}">
|
|
<c:choose><c:when test="${flag == '1' or fns:getUser().id == projectRecords.createBy.id}">
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:del">,"candel": <c:choose><c:when test="${(projectRecords.projectStatus == 1 or projectRecords.projectStatus == 3 or projectRecords.projectStatus == 4) && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:del">,"candel": <c:choose><c:when test="${(projectRecords.projectStatus == 1 or projectRecords.projectStatus == 3 or projectRecords.projectStatus == 4) && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:edit">,"canedit1": <c:choose><c:when test="${projectRecords.projectStatus == 1 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:edit">,"canedit1": <c:choose><c:when test="${projectRecords.projectStatus == 1 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
@@ -390,6 +396,7 @@
|
|
,"canrecall":<c:choose><c:when test="${projectRecords.projectStatus == 3 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"canrecall":<c:choose><c:when test="${projectRecords.projectStatus == 3 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
</shiro:hasPermission>
|
|
</shiro:hasPermission>
|
|
,"cancancel":<c:choose><c:when test="${projectRecords.projectStatus == 2 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
,"cancancel":<c:choose><c:when test="${projectRecords.projectStatus == 2 && fns:getUser().id == projectRecords.createBy.id}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
|
|
+ ,"deleteAdmin":<c:choose><c:when test="${'1' == projectRecords.flagAdmin && projectRecords.projectStatus == 5}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
</c:when>
|
|
</c:when>
|
|
<c:otherwise>
|
|
<c:otherwise>
|
|
,"candel":"0"
|
|
,"candel":"0"
|
|
@@ -397,6 +404,7 @@
|
|
,"canedit2":"0"
|
|
,"canedit2":"0"
|
|
,"canrecall":"0"
|
|
,"canrecall":"0"
|
|
,"cancancel":"0"
|
|
,"cancancel":"0"
|
|
|
|
+ ,"deleteAdmin":"0"
|
|
</c:otherwise>
|
|
</c:otherwise>
|
|
</c:choose>
|
|
</c:choose>
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:edit">,"canedit3":<c:choose><c:when test="${projectRecords.projectStatus == 5 && fn:contains(projectRecords.leaderIds,fns:getUser().id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|
|
<shiro:hasPermission name="ruralProject:ruralProjectRecords:edit">,"canedit3":<c:choose><c:when test="${projectRecords.projectStatus == 5 && fn:contains(projectRecords.leaderIds,fns:getUser().id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose></shiro:hasPermission>
|