|
@@ -6,33 +6,48 @@
|
|
|
<div class="list-group mt-3">
|
|
|
<% for (let compilation of compilationList) { %>
|
|
|
<% if (compilation._id === 'all') { %>
|
|
|
- <a href="/projectFeature/main" class="list-group-item list-group-item-action <%= compilation.active %>">
|
|
|
+ <a href="/projectFeature/main"
|
|
|
+ class="list-group-item list-group-item-action <%= compilation.active %>">
|
|
|
所有
|
|
|
</a>
|
|
|
<% } else { %>
|
|
|
- <a id="<%= compilation._id %>" href="/projectFeature/main?filter=<%= compilation._id %>" class="list-group-item list-group-item-action <%= compilation.active %>">
|
|
|
+ <a id="<%= compilation._id %>" href="/projectFeature/main?filter=<%= compilation._id %>"
|
|
|
+ class="list-group-item list-group-item-action <%= compilation.active %>">
|
|
|
<%= compilation.name %>
|
|
|
</a>
|
|
|
<% }} %>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="col-md-8">
|
|
|
+ <div class="col-md-10">
|
|
|
<div class="warp-p2 mt-3">
|
|
|
<table class="table table-hover table-bordered">
|
|
|
- <thead><tr><th >库名称</th><th>费用定额</th><th width="160">添加时间</th><th width="70">操作</th></tr></thead>
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th>库名称</th>
|
|
|
+ <th width="160">费用定额</th>
|
|
|
+ <th width="160">添加时间</th>
|
|
|
+ <th width="70">操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
<tbody id="showArea">
|
|
|
- <% for(let lib of featureLibs){ %>
|
|
|
- <tr class="libTr">
|
|
|
- <td id="<%= lib.ID%>"><a href="/projectFeature/edit/<%= lib.ID%>?locked=true"><%= lib.name%></a></td>
|
|
|
- <td><%= lib.compilationName%></td>
|
|
|
- <td><%= moment(lib.createDate).format('YYYY-MM-DD')%></td>
|
|
|
- <td>
|
|
|
- <a class="lock-btn-control disabled" href="javascript:void(0);" style="color: #0275d8" onclick='getFeatureLib("<%= lib.ID%>")' title="编辑"><i class="fa fa-pencil-square-o"></i></a>
|
|
|
- <a class="text-danger lock-btn-control disabled" href="javascript:void(0);" onclick='showDeleteModal("<%= lib.ID%>")' title="删除"><i class="fa fa-remove"></i></a>
|
|
|
- <a class="lock" data-locked="true" href="javascript:void(0);" title="解锁"><i class="fa fa-unlock-alt"></i></a>
|
|
|
- </td>
|
|
|
- </tr>
|
|
|
- <% } %>
|
|
|
+ <% for(let lib of featureLibs){ %>
|
|
|
+ <tr class="libTr">
|
|
|
+ <td id="<%= lib.ID%>"><a
|
|
|
+ href="/projectFeature/edit/<%= lib.ID%>?locked=true"><%= lib.name%></a></td>
|
|
|
+ <td><%= lib.compilationName%></td>
|
|
|
+ <td><%= moment(lib.createDate).format('YYYY-MM-DD')%></td>
|
|
|
+ <td>
|
|
|
+ <a class="lock-btn-control disabled" href="javascript:void(0);"
|
|
|
+ style="color: #0275d8" onclick='getFeatureLib("<%= lib.ID%>")' title="编辑"><i
|
|
|
+ class="fa fa-pencil-square-o"></i></a>
|
|
|
+ <a class="text-danger lock-btn-control disabled" href="javascript:void(0);"
|
|
|
+ onclick='showDeleteModal("<%= lib.ID%>")' title="删除"><i
|
|
|
+ class="fa fa-remove"></i></a>
|
|
|
+ <a class="lock" data-locked="true" href="javascript:void(0);" title="解锁"><i
|
|
|
+ class="fa fa-unlock-alt"></i></a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <% } %>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|
|
@@ -53,7 +68,8 @@
|
|
|
</button>
|
|
|
</div>
|
|
|
<div class="modal-body">
|
|
|
- <form id="addLibForm" method="post" action="/projectFeature/addLib" enctype="application/x-www-form-urlencoded21">
|
|
|
+ <form id="addLibForm" method="post" action="/projectFeature/addLib"
|
|
|
+ enctype="application/x-www-form-urlencoded21">
|
|
|
<div class="form-group">
|
|
|
<label>库名称</label>
|
|
|
<input id="name" name="name" class="form-control" placeholder="请输入特征库名称" type="text">
|
|
@@ -68,11 +84,11 @@
|
|
|
<% }} %>
|
|
|
</select>
|
|
|
</div>
|
|
|
- <input type="hidden" name = "userAccount" value="<%= userAccount%>">
|
|
|
+ <input type="hidden" name="userAccount" value="<%= userAccount%>">
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
- <button id="addLibs" class="btn btn-primary">新建</button>
|
|
|
+ <button id="addLibs" class="btn btn-primary">新建</button>
|
|
|
<button type="button" id="cancelBtn" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -100,7 +116,7 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
- <a id="rename" href="javascript: void(0);" class="btn btn-primary" >确定</a>
|
|
|
+ <a id="rename" href="javascript: void(0);" class="btn btn-primary">确定</a>
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -123,7 +139,7 @@
|
|
|
<input type="hidden" id="delCount">
|
|
|
</div>
|
|
|
<div class="modal-footer">
|
|
|
- <a id="delete" href="javascript:void(0);" class="btn btn-danger" >确认</a>
|
|
|
+ <a id="delete" href="javascript:void(0);" class="btn btn-danger">确认</a>
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">取消</button>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -131,4 +147,4 @@
|
|
|
</div>
|
|
|
|
|
|
<script src="/public/web/lock_util.js"></script>
|
|
|
-<script type="text/javascript" src="/web/maintain/project_feature_lib/js/project_feature.js"></script>
|
|
|
+<script type="text/javascript" src="/web/maintain/project_feature_lib/js/project_feature.js"></script>
|