sub_menu.ejs 4.0 KB

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