| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277 |
- <style>
- /* 工具栏贴右时避免被 #content / .col / .content 裁切 */
- #content:has(#procuremen-layout),
- #content .col-xs-12:has(#procuremen-layout),
- div.content:has(#procuremen-layout) {
- overflow-x: visible !important;
- }
- div.content:has(#procuremen-layout) {
- padding-top: 0 !important;
- padding-bottom: 0 !important;
- }
- #procuremen-layout > .panel-body {
- padding-top: 16px !important;
- padding-bottom: 0 !important;
- }
- #procuremen-layout.panel-intro > .panel-heading {
- padding-top: 0 !important;
- padding-bottom: 0 !important;
- }
- #procuremen-layout.panel-intro > .panel-heading .panel-lead {
- margin-bottom: 0;
- }
- #procuremen-layout .tab-content,
- #procuremen-layout .tab-pane {
- padding: 0;
- margin: 0;
- }
- .procuremen-layout { margin: 0 -10px; }
- /* 左右列等高:与右侧整块(工具条+Tab+表格+分页)对齐;桌面下取消 float 用 flex */
- #procuremen-layout .procuremen-layout.row {
- display: flex;
- flex-wrap: wrap;
- align-items: stretch;
- }
- @media (min-width: 768px) {
- #procuremen-layout .procuremen-layout > .procuremen-sidebar,
- #procuremen-layout .procuremen-layout > .procuremen-main {
- float: none !important;
- display: flex;
- flex-direction: column;
- }
- }
- #procuremen-layout .procuremen-main {
- overflow-x: visible !important;
- padding-right: 18px !important;
- }
- .procuremen-sidebar {
- flex: 1 1 auto;
- min-height: 0;
- overflow-y: auto;
- border-right: 1px solid #e7e7e7;
- background: #fafafa;
- }
- /* 左侧年月栏:桌面 md 用 1 列(略窄于 2 列);平板 sm 仍为 2 列 */
- .procuremen-sidebar .year-title {
- font-weight: 600;
- padding: 6px 8px;
- margin: 6px 0 2px;
- background: #eee;
- border-radius: 3px;
- font-size: 12px;
- }
- .procuremen-sidebar .procuremen-ym-item {
- display: block;
- padding: 6px 8px;
- margin: 1px 0;
- color: #333;
- border-radius: 3px;
- text-decoration: none;
- border: 1px solid transparent;
- }
- .procuremen-sidebar .procuremen-ym-item:hover {
- background: #e8f4fc;
- border-color: #bce8f1;
- }
- .procuremen-sidebar .procuremen-ym-item.active {
- background: #3c8dbc;
- color: #fff;
- border-color: #367fa9;
- }
- #procuremen-layout .procuremen-main .widget-body {
- overflow-x: visible;
- overflow-y: hidden;
- flex: 1 1 0%;
- min-height: 0;
- display: flex;
- flex-direction: column;
- }
- #procuremen-layout .procuremen-toolbar-host,
- #procuremen-layout .procuremen-wff-tabs {
- flex-shrink: 0;
- }
- #procuremen-layout .procuremen-main .fixed-table-pagination {
- background: #fff;
- border-top: 1px solid #e7e7e7;
- box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
- }
- /* 主表 loading 遮罩盖不住右侧固定列克隆体,刷新时短暂露出旧「操作」按钮,加载中先隐藏 */
- #procuremen-layout .fixed-columns-right.procuremen-hide-fixed-right-loading {
- visibility: hidden !important;
- pointer-events: none !important;
- }
- /* JS 把 .fixed-table-toolbar 挪到此处:上一行按钮,下一行 tabs */
- .procuremen-toolbar-host {
- padding: 6px 12px 8px 0;
- margin-bottom: 0;
- border-bottom: 1px solid #e7e7e7;
- width: 100%;
- box-sizing: border-box;
- overflow: visible;
- position: relative;
- z-index: 3;
- }
- .procuremen-toolbar-host .fixed-table-toolbar {
- border: none;
- margin: 0;
- padding: 0;
- display: flex;
- align-items: center;
- justify-content: flex-start;
- flex-wrap: nowrap;
- gap: 12px;
- width: 100%;
- box-sizing: border-box;
- overflow: visible;
- min-height: 36px;
- }
- .procuremen-toolbar-host .fixed-table-toolbar > .pull-left,
- .procuremen-toolbar-host .fixed-table-toolbar > .bars.pull-left,
- .procuremen-toolbar-host .fixed-table-toolbar > .bs-bars.pull-left {
- float: none !important;
- margin: 0 !important;
- flex: 0 0 auto;
- }
- .procuremen-toolbar-host .fixed-table-toolbar > .pull-right,
- .procuremen-toolbar-host .fixed-table-toolbar > .columns.pull-right,
- .procuremen-toolbar-host .fixed-table-toolbar > .columns.columns-right {
- float: none !important;
- margin-left: auto !important;
- flex: 0 0 auto;
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- gap: 8px;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .search {
- float: none !important;
- margin: 0 !important;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .search .form-control {
- min-width: 140px;
- max-width: 220px;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap {
- margin-left: auto !important;
- float: none !important;
- display: flex !important;
- align-items: center;
- flex-wrap: nowrap;
- gap: 8px;
- flex: 0 0 auto !important;
- flex-shrink: 0 !important;
- min-width: min-content;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap .btn-group,
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap button[name="search"] {
- flex-shrink: 0;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > .search {
- order: 0 !important;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > *:not(.search) {
- order: 2;
- }
- .procuremen-toolbar-host .fixed-table-toolbar .procuremen-toolbar-search-wrap > button[name="search"] {
- order: 4 !important;
- }
- #procuremen-layout .procuremen-main .procuremen-table-area {
- flex: 1 1 auto;
- min-height: 0;
- }
- .procuremen-table-area .toolbar.procuremen-toolbar-empty {
- display: none !important;
- }
- .procuremen-wff-tabs {
- margin-bottom: 0;
- margin-top: 0;
- border-bottom: 1px solid #ddd;
- }
- .procuremen-wff-tabs > li > a {
- padding: 8px 14px;
- }
- #procuremen-layout .bootstrap-table .table > thead > tr > th,
- #procuremen-layout .bootstrap-table .table > tbody > tr > td {
- padding: 3px 6px;
- line-height: 1.28;
- vertical-align: middle;
- }
- #procuremen-layout .bootstrap-table .table > tbody > tr > td .btn-xs {
- padding: 2px 6px;
- font-size: 12px;
- }
- /*
- * 右固定列与主表 .fixed-table-body 为同级兄弟,主表全宽时最后一列会叠在固定层「下面」。
- * 全局 backend.css 里 .fixed-columns-right 仅 z-index:2,易被主表内层盖住,表现为要点多次才打开弹窗。
- * 抬高固定列整体叠层,并把主表滚动区压在 z-index:0,保证命中的是固定层上的按钮。
- */
- #procuremen-layout .bootstrap-table .fixed-table-container > .fixed-table-body {
- position: relative;
- z-index: 0;
- }
- #procuremen-layout .bootstrap-table .fixed-columns-right {
- box-shadow: none !important;
- border-left: 1px solid #e3e6ea;
- background-color: #fff;
- z-index: 18 !important;
- }
- #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-header table thead th,
- #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body table tbody td {
- border-left-color: transparent;
- }
- /* 操作列按钮在固定层内置于可点区域之上,减少与主表透明重叠导致的「多点一次」 */
- /* 固定列操作按钮:抬高层级 + 明确可点,减轻与主表空白区域叠层的「点了没反应」 */
- #procuremen-layout .bootstrap-table .fixed-columns-right .fixed-table-body {
- pointer-events: auto;
- }
- #procuremen-layout .bootstrap-table .fixed-columns-right a.procuremen-op-open {
- position: relative;
- z-index: 6;
- pointer-events: auto;
- display: inline-block;
- vertical-align: middle;
- }
- </style>
- <div class="panel panel-default panel-intro" id="procuremen-layout" data-default-ym="{$defaultYm|htmlentities}">
- {:build_heading()}
- <div class="panel-body">
- <div class="row procuremen-layout">
- <div class="col-xs-12 col-sm-2 col-md-1 procuremen-sidebar">
- {foreach name="sidebarYearMonths" item="block"}
- <div class="procuremen-year-block">
- <div class="year-title">{$block.year}年</div>
- {foreach name="block.months" item="item"}
- <a href="javascript:;" class="procuremen-ym-item" data-ym="{$item.ym|htmlentities}">{$item.label|htmlentities}</a>
- {/foreach}
- </div>
- {/foreach}
- </div>
- <div class="col-xs-12 col-sm-10 col-md-11 procuremen-main">
- <div id="myTabContent" class="tab-content">
- <div class="tab-pane fade active in" id="one">
- <div class="widget-body no-padding">
- <div id="procuremen-toolbar-host" class="procuremen-toolbar-host clearfix"></div>
- <ul class="nav nav-tabs procuremen-wff-tabs" role="tablist">
- <li role="presentation" class="active"><a href="javascript:;" data-wff="all">未发</a></li>
- <li role="presentation"><a href="javascript:;" data-wff="pending">已下发</a></li>
- <li role="presentation"><a href="javascript:;" data-wff="picked">已选中</a></li>
- <li role="presentation"><a href="javascript:;" data-wff="done">已完结</a></li>
- </ul>
- <div class="procuremen-table-area">
- <div id="toolbar" class="toolbar">
- <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
- <a href="javascript:;" class="btn btn-success" id="btn-export-month-outward" title="按所选月份导出下发明细 Excel"><i class="fa fa-download"></i> 月份下发明细导出</a>
- </div>
- <table id="table"
- class="table table-striped table-bordered table-hover">
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
|