项目可见性配置代码优化
parent
8a6962d712
commit
88ea30e46d
|
@ -3,17 +3,7 @@
|
|||
|
||||
<@defaultLayout.layout>
|
||||
<link rel="stylesheet" href="../assets/css/amazeui.switch.css"/>
|
||||
<style>
|
||||
ul.ztree {
|
||||
margin-top: 10px;
|
||||
border: 1px solid #617775;
|
||||
background: #f0f6e4;
|
||||
width:220px;
|
||||
height:360px;
|
||||
overflow-y:scroll;
|
||||
overflow-x:auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="admin-content">
|
||||
<div class="am-cf am-padding" style="padding:1rem 1.6rem 1.6rem 1rem;margin:0px;">
|
||||
<!-- padding:1px 2px 3px 4px;上、右、下,和左 -->
|
||||
|
@ -196,7 +186,7 @@
|
|||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<#list pager.list as list>
|
||||
<#list pager.list as list>
|
||||
<tr>
|
||||
<td>${list.id!}</td>
|
||||
<td>${list.name!}</td>
|
||||
|
@ -211,10 +201,12 @@
|
|||
<td>
|
||||
<div class="am-btn-toolbar">
|
||||
<div class="am-btn-group am-btn-group-xs">
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/selectRoleUser?projectId=${list.id}'"><span class="am-icon-pencil-square-o"></span>设置项目可见性
|
||||
</button>
|
||||
<#if list.creatorId==adminId>
|
||||
<button type="button"
|
||||
class="am-btn am-btn-default am-btn-xs am-text-secondary"
|
||||
onclick="location.href='${base}/project/selectRoleUser?projectId=${list.id}'"><span class="am-icon-pencil-square-o"></span>设置项目可见性
|
||||
</button>
|
||||
</#if>
|
||||
<#--<@shiro.hasPermission name="PROJECT_EDIT">-->
|
||||
<#--概算状态 并且概算审批状态为草稿和不通过-->
|
||||
<#if list.status==1 && (list.approveStatusEstimate==0 || list.approveStatusEstimate==3)>
|
||||
|
@ -344,9 +336,6 @@
|
|||
</@defaultLayout.layout>
|
||||
<script src="../assets/js/amazeui.switch.js"></script>
|
||||
<script src="${base}/assets/js/project_common.js"></script>
|
||||
<script type="text/javascript" src="${base}/ztree/js/jquery.ztree.core.js"></script>
|
||||
<script type="text/javascript" src="${base}/ztree/js/jquery.ztree.excheck.js"></script>
|
||||
<script type="text/javascript" src="${base}/ztree/js/jquery.ztree.exedit.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
|
||||
|
|
|
@ -2,6 +2,17 @@
|
|||
<#import "../common/defaultLayout.ftl" as defaultLayout>
|
||||
<@defaultLayout.layout>
|
||||
<link rel="stylesheet" href="${base}/ztree/css/zTreeStyle/zTreeStyle.css" type="text/css">
|
||||
<style>
|
||||
/*ul.ztree {
|
||||
margin-top: 10px;
|
||||
border: 1px solid #617775;
|
||||
background: #f0f6e4;
|
||||
width:220px;
|
||||
height:360px;
|
||||
overflow-y:scroll;
|
||||
overflow-x:auto;
|
||||
}*/
|
||||
</style>
|
||||
<div class="admin-content">
|
||||
<div class="admin-content-body">
|
||||
<div class="am-cf am-padding">
|
||||
|
|
Loading…
Reference in New Issue