sub_menu.ejs 3.8 KB

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