123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <div class="panel-title fluid">
- <div class="title-main d-flex justify-content-between">
- <div>
- <div class="d-inline-block mr-2">
- <% if (ctx.session.sessionUser.is_admin) { %>
- <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>
- <% } else { %>
- <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>
- <% } %>
- </div>
- <div class="d-inline-block" id="show-level"></div>
- <div class="d-inline-block">
- <div class="btn-group btn-group-toggle group-tab" data-toggle="buttons">
- <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'">
- <input type="radio" name="options" id="option1" autocomplete="off"> 标段列表
- </label>
- <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'">
- <input type="radio" name="options" id="option1" autocomplete="off"> 金额概况
- </label>
- <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'">
- <input type="radio" name="options" id="option2" autocomplete="off"> 计量进度
- </label>
- <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
- <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'">
- <input type="radio" name="options" id="option2" autocomplete="off"> 管理标段
- </label>
- <% } %>
- </div>
- </div>
- <!--<div class="d-inline-block ml-3">-->
- <!--<div class="form-check-inline">-->
- <!--<label class="form-check-label" onclick="window.location.href='/list/manage'">-->
- <!--<input class="form-check-input" type="checkbox" <% if (ctx.url === `/sp/${ctx.subProject.id}/list/manage`) { %>checked="checked"<% } %>>-->
- <!--管理标段-->
- <!--</label>-->
- <!--</div>-->
- <!--</div>-->
- </div>
- <div>
- <% if (ctx.app.config.is_debug) { %>
- <a href="/compare/tz" class="btn btn-sm btn-primary" target="_blank">统计分析</a>
- <% } %>
- <% if (ctx.session.sessionUser.is_admin && ctx.url === `/sp/${ctx.subProject.id}/list/info`) { %>
- <a href="#col-set" class="btn btn-sm btn-primary ml-1" data-toggle="modal" data-target="#col-set">列设置</a>
- <% } %>
- </div>
- <div>
- <a href="/sp/<%= ctx.subProject.id %>/list/info/finish" class="btn btn-sm btn-primary pull-right ml-1" target="_blank">完工标段</a>
- <% if (userPermission !== null && userPermission.tender !== undefined && userPermission.tender.indexOf('1') !== -1) { %>
- <a href="#add-bd" name="add" data-toggle="modal" data-target="#add-bd" class="btn btn-sm btn-primary pull-right">新建标段</a>
- <% } %>
- </div>
- </div>
- </div>
|