|
@@ -274,6 +274,10 @@
|
|
|
{
|
|
|
xml +="<a href=\"javascript:void(0)\" onclick=\"openDialog('编辑项目计划信息', '${ctx}/project/projectPlanConsulting/form?view=form&id='+encodeURIComponent('" + d.id + "'),'95%','95%','')\" class=\"layui-btn layui-btn-xs layui-bg-green\" > 编辑</a>";
|
|
|
}
|
|
|
+ if(d.canedit5 != undefined && d.canedit5 =="1")
|
|
|
+ {
|
|
|
+ xml +="<a href=\"javascript:void(0)\" onclick=\"openDialog('添加项目计划信息', '${ctx}/project/projectPlanConsulting/form?view=form&id='+encodeURIComponent('" + d.id + "'),'95%','95%','')\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 添加</a>";
|
|
|
+ }
|
|
|
xml+="</div>"
|
|
|
return xml;
|
|
|
|
|
@@ -299,7 +303,12 @@
|
|
|
,"canedit3":<c:choose><c:when test="${projectRecords.projectStatus == 5 && (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:projectPlanConsulting:edit">
|
|
|
- ,"canedit4":<c:choose><c:when test="${projectRecords.projectStatus == 5 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
|
+ <c:if test="${projectRecords.planCount>0}">
|
|
|
+ ,"canedit4":<c:choose><c:when test="${projectRecords.projectStatus == 5 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${projectRecords.planCount==0}">
|
|
|
+ ,"canedit5":<c:choose><c:when test="${projectRecords.projectStatus == 5 && (fns:getUser().id == projectRecords.leaderIds || fns:getUser().id eq projectRecords.createBy.id)}">"1"</c:when><c:otherwise>"0"</c:otherwise></c:choose>
|
|
|
+ </c:if>
|
|
|
</shiro:hasPermission>
|
|
|
<shiro:hasPermission name="ruralProject:ruralProjectView:consultingPlanView">
|
|
|
,"showView":1
|