|
@@ -240,9 +240,14 @@
|
|
|
</div>
|
|
|
<div class="layui-item athird">
|
|
|
<div class="input-group">
|
|
|
- <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>
|
|
|
- <button id="searchReset" class="fixed-btn searchReset fr" onclick="resetSearch()">重置</button>
|
|
|
- <button id="searchQuery" class="fixed-btn searchQuery fr" onclick="search()">查询</button>
|
|
|
+ <a href="#" id="moresee" style="margin-top: 5px;"><i class="glyphicon glyphicon-menu-down"></i></a>
|
|
|
+ <div class="layui-btn-group" style="float: right;margin-right: 10px;">
|
|
|
+ <button id="searchQuery" class="layui-btn layui-bg-blue" onclick="search()">查询</button>
|
|
|
+ <button id="searchReset" class="layui-btn " onclick="resetSearch()">重置</button>
|
|
|
+ </div>
|
|
|
+<%-- <a href="#" id="moresee"><i class="glyphicon glyphicon-menu-down"></i></a>--%>
|
|
|
+<%-- <button id="searchReset" class="fixed-btn searchReset fr" onclick="resetSearch()">重置</button>--%>
|
|
|
+<%-- <button id="searchQuery" class="fixed-btn searchQuery fr" onclick="search()">查询</button>--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style=" clear:both;"></div>
|
|
@@ -289,18 +294,30 @@
|
|
|
<div class="full-width fl">
|
|
|
<div class="layui-form contentDetails contentShadow shadowLBR">
|
|
|
<div class="nav-btns">
|
|
|
- <shiro:hasPermission name="project:projectRecords:add">
|
|
|
- <table:addRow url="${ctx}/project/projectRecords/form" title="项目"></table:addRow><!-- 增加按钮 -->
|
|
|
- </shiro:hasPermission>
|
|
|
- <shiro:hasPermission name="project:projectRecords:del">
|
|
|
- <%--<table:delRow url="${ctx}/project/projectRecords/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->--%>
|
|
|
- </shiro:hasPermission>
|
|
|
- <shiro:hasPermission name="project:projectRecords:export">
|
|
|
- <table:exportExcel url="${ctx}/project/projectRecords/export"></table:exportExcel><!-- 导出按钮 -->
|
|
|
- </shiro:hasPermission>
|
|
|
+ <div class="layui-btn-group" style="margin-left: 15px;">
|
|
|
+ <shiro:hasPermission name="project:projectRecords:add">
|
|
|
+ <table:addRow url="${ctx}/project/projectRecords/form" title="项目"></table:addRow><!-- 增加按钮 -->
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="project:projectRecords:del">
|
|
|
+ <%--<table:delRow url="${ctx}/project/projectRecords/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->--%>
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <shiro:hasPermission name="project:projectRecords:export">
|
|
|
+ <table:exportExcel url="${ctx}/project/projectRecords/export"></table:exportExcel><!-- 导出按钮 -->
|
|
|
+ </shiro:hasPermission>
|
|
|
+ <button class="layui-btn" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"> 刷新</button>
|
|
|
+ </div>
|
|
|
+<%-- <shiro:hasPermission name="project:projectRecords:add">--%>
|
|
|
+<%-- <table:addRow url="${ctx}/project/projectRecords/form" title="项目"></table:addRow><!-- 增加按钮 -->--%>
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
+<%-- <shiro:hasPermission name="project:projectRecords:del">--%>
|
|
|
+<%-- <%–<table:delRow url="${ctx}/project/projectRecords/deleteAll" id="contentTable"></table:delRow><!-- 删除按钮 -->–%>--%>
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
+<%-- <shiro:hasPermission name="project:projectRecords:export">--%>
|
|
|
+<%-- <table:exportExcel url="${ctx}/project/projectRecords/export"></table:exportExcel><!-- 导出按钮 -->--%>
|
|
|
+<%-- </shiro:hasPermission>--%>
|
|
|
<%--<button class="nav-btn layui-btn" id="btn-expand">全部展开</button>
|
|
|
<button class="nav-btn layui-btn-warm" id="btn-fold">全部折叠</button>--%>
|
|
|
- <button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>
|
|
|
+<%-- <button class="nav-btn nav-btn-refresh" data-toggle="tooltip" data-placement="left" onclick="sortOrRefresh()" title="刷新"><i class="glyphicon glyphicon-repeat"></i> 刷新</button>--%>
|
|
|
|
|
|
<div style="clear: both;"></div>
|
|
|
</div>
|
|
@@ -360,31 +377,32 @@
|
|
|
}}
|
|
|
,{field:'op',align:'center',title:"操作",width:130,templet:function(d){
|
|
|
////对操作进行初始化
|
|
|
- var xml="";
|
|
|
+ var xml="<div class=\"layui-btn-group\">";
|
|
|
if(d.canedit1 != undefined && d.canedit1 =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('修改项目', '${ctx}/project/projectRecords/form?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('修改项目', '${ctx}/project/projectRecords/form?id=" + d.id +"','95%', '95%','','送审,暂存,关闭')\" class=\"layui-btn layui-btn-xs\" > 修改</a>";
|
|
|
}
|
|
|
if(d.canedit2 != undefined && d.canedit2 =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整项目', '${ctx}/project/projectRecords/modify?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整项目', '${ctx}/project/projectRecords/modify?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs\" > 修改</a>";
|
|
|
}
|
|
|
if(d.canrecall != undefined && d.canrecall =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"#\" onclick=\"openDialogre('调整项目', '${ctx}/project/projectRecords/form?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"op-btn op-btn-edit\" ><i class=\"fa fa-edit\"></i> 修改</a>";
|
|
|
+ xml+="<a href=\"#\" onclick=\"openDialogre('调整项目', '${ctx}/project/projectRecords/form?id=" + d.id + "','95%', '95%','','送审,关闭')\" class=\"layui-btn layui-btn-xs\" > 修改</a>";
|
|
|
}
|
|
|
if(d.candel != undefined && d.candel =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"${ctx}/project/projectRecords/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}/project/projectRecords/delete?id=" + d.id + "\" onclick=\"return confirmx('确认要删除该项目信息吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-red\"> 删除</a>";
|
|
|
}
|
|
|
if(d.cancancel != undefined && d.cancancel =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"${ctx}/project/projectRecords/revoke?id=" + d.id + "&processInstanceId=" + d.procId + "\" onclick=\"return confirmx('确认要撤回该项目审批吗?', this.href)\" class=\"op-btn op-btn-cancel\" ><i class=\"glyphicon glyphicon-share-alt\"></i> 撤回</a>";
|
|
|
+ xml+="<a href=\"${ctx}/project/projectRecords/revoke?id=" + d.id + "&processInstanceId=" + d.procId + "\" onclick=\"return confirmx('确认要撤回该项目审批吗?', this.href)\" class=\"layui-btn layui-btn-xs layui-bg-blue\" > 撤回</a>";
|
|
|
}
|
|
|
if(d.canedit3 != undefined && d.canedit3 =="1")
|
|
|
{
|
|
|
- xml+="<a href=\"javascript:void(0)\" onclick=\"openDialogre('项目变更管理', '${ctx}/project/projectRecordsAlter/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}/project/projectRecordsAlter/form?alterBeforeRecords.id='+encodeURIComponent('" + d.id + "'),'95%','95%','','送审,暂存,关闭')\" style=\"color: white;background: darkseagreen\" class=\"layui-btn layui-btn-xs\" > 变更</a>";
|
|
|
}
|
|
|
+ xml+="</div>"
|
|
|
return xml;
|
|
|
|
|
|
}}
|