sub_menu.ejs 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <div class="panel-title">
  2. <div class="title-main d-flex">
  3. <% include ./list_sub_mini_menu.ejs %>
  4. <div>
  5. <div class="d-inline-block mr-2">
  6. <% if (ctx.session.sessionUser.is_admin) { %>
  7. <button href="#cate-set" class="btn btn-sm btn-light text-primary" data-toggle="modal" data-target="#cate-set"><i class="fa fa-sitemap fa-rotate-270"></i> 分类</button>
  8. <% } else { %>
  9. <button href="#cate-set-self" class="btn btn-sm btn-light text-primary" data-toggle="modal" data-target="#cate-set-self"><i class="fa fa-sitemap fa-rotate-270"></i> 自定义分类</button>
  10. <% } %>
  11. </div>
  12. <div class="d-inline-block" id="show-level"></div>
  13. <div class="d-inline-block">
  14. <div class="btn-group btn-group-toggle group-tab" data-toggle="buttons">
  15. <label class="btn btn-sm btn-light <% if (ctx.url === `/sp/${ctx.subProject.id}/list`) { %>active<% } %>" onclick="window.location.href='/sp/<%= ctx.subProject.id %>/list'">
  16. <input type="radio" name="options" id="option1" autocomplete="off"> 标段列表
  17. </label>
  18. <label class="btn btn-sm btn-light <% if (ctx.url === `/sp/${ctx.subProject.id}/list/info`) { %>active<% } %>" onclick="window.location.href='/sp/<%= ctx.subProject.id %>/list/info'">
  19. <input type="radio" name="options" id="option1" autocomplete="off"> 金额概况
  20. </label>
  21. <label class="btn btn-sm btn-light <% if (ctx.url === `/sp/${ctx.subProject.id}/list/progress`) { %>active<% } %>" onclick="window.location.href='/sp/<%= ctx.subProject.id %>/list/progress'">
  22. <input type="radio" name="options" id="option2" autocomplete="off"> 计量进度
  23. </label>
  24. <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
  25. <label class="btn btn-sm btn-light <% if (ctx.url === `/sp/${ctx.subProject.id}/list/manage`) { %>active<% } %>" onclick="window.location.href='/sp/<%= ctx.subProject.id %>/list/manage'">
  26. <input type="radio" name="options" id="option2" autocomplete="off"> 管理标段
  27. </label>
  28. <% } %>
  29. </div>
  30. </div>
  31. <!--<div class="d-inline-block ml-3">-->
  32. <!--<div class="form-check-inline">-->
  33. <!--<label class="form-check-label" onclick="window.location.href='/list/manage'">-->
  34. <!--<input class="form-check-input" type="checkbox" <% if (ctx.url === `/sp/${ctx.subProject.id}/list/manage`) { %>checked="checked"<% } %>>-->
  35. <!--管理标段-->
  36. <!--</label>-->
  37. <!--</div>-->
  38. <!--</div>-->
  39. </div>
  40. <div class="ml-auto">
  41. <% if (ctx.app.config.is_debug) { %>
  42. <a href="/compare/tz" class="btn btn-sm btn-primary" target="_blank">统计分析</a>
  43. <% } %>
  44. </div>
  45. <div class="ml-auto">
  46. <a href="/sp/<%= ctx.subProject.id %>/list/info/finish" class="btn btn-sm btn-primary pull-right ml-1" target="_blank">完工标段</a>
  47. <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
  48. <a href="#add-bd" name="add" data-toggle="modal" data-target="#add-bd" class="btn btn-sm btn-primary pull-right">新建标段</a>
  49. <% } %>
  50. </div>
  51. </div>
  52. </div>