sub_menu.ejs 4.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. <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>
  6. </div>
  7. <div class="d-inline-block" id="show-level"></div>
  8. <div class="d-inline-block">
  9. <div class="btn-group btn-group-toggle group-tab" data-toggle="buttons">
  10. <label class="btn btn-sm btn-light <% if (ctx.url === '/list') { %>active<% } %>" onclick="window.location.href='/list'">
  11. <input type="radio" name="options" id="option1" autocomplete="off"> 标段列表
  12. </label>
  13. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/info') { %>active<% } %>" onclick="window.location.href='/list/info'">
  14. <input type="radio" name="options" id="option1" autocomplete="off"> 金额概况
  15. </label>
  16. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/progress') { %>active<% } %>" onclick="window.location.href='/list/progress'">
  17. <input type="radio" name="options" id="option2" autocomplete="off"> 计量进度
  18. </label>
  19. <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
  20. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/manage') { %>active<% } %>" onclick="window.location.href='/list/manage'">
  21. <input type="radio" name="options" id="option2" autocomplete="off"> 管理标段
  22. </label>
  23. <% } %>
  24. <% if (ctx.app.config.is_debug) { %>
  25. <label class="btn btn-sm btn-light <% if (ctx.url === '/listOrg') { %>active<% } %>" onclick="window.location.href='/listOrg'">
  26. <input type="radio" name="options" id="option1" autocomplete="off"> 标段列表
  27. </label>
  28. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/infoOrg') { %>active<% } %>" onclick="window.location.href='/list/infoOrg'">
  29. <input type="radio" name="options" id="option1" autocomplete="off"> 金额概况(旧)
  30. </label>
  31. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/progressOrg') { %>active<% } %>" onclick="window.location.href='/list/progressOrg'">
  32. <input type="radio" name="options" id="option2" autocomplete="off"> 计量进度(旧)
  33. </label>
  34. <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
  35. <label class="btn btn-sm btn-light <% if (ctx.url === '/list/manageOrg') { %>active<% } %>" onclick="window.location.href='/list/manageOrg'">
  36. <input type="radio" name="options" id="option2" autocomplete="off"> 管理标段
  37. </label>
  38. <% } %>
  39. <% } %>
  40. </div>
  41. </div>
  42. <!--<div class="d-inline-block ml-3">-->
  43. <!--<div class="form-check-inline">-->
  44. <!--<label class="form-check-label" onclick="window.location.href='/list/manage'">-->
  45. <!--<input class="form-check-input" type="checkbox" <% if (ctx.url === '/list/manage') { %>checked="checked"<% } %>>-->
  46. <!--管理标段-->
  47. <!--</label>-->
  48. <!--</div>-->
  49. <!--</div>-->
  50. </div>
  51. <% if (ctx.app.config.is_debug) { %>
  52. <div>
  53. <a href="/compare/tz" class="btn btn-sm btn-primary pull-right" target="_blank">统计分析</a>
  54. </div>
  55. <% } %>
  56. <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
  57. <div>
  58. <a href="#add-bd" name="add" data-toggle="modal" data-target="#add-bd" class="btn btn-sm btn-primary pull-right">新建标段</a>
  59. </div>
  60. <% } %>
  61. </div>
  62. </div>