diff --git a/src/main/resources/static/assets/css/admin.css b/src/main/resources/static/assets/css/admin.css index 22e7884..41173ee 100644 --- a/src/main/resources/static/assets/css/admin.css +++ b/src/main/resources/static/assets/css/admin.css @@ -410,4 +410,121 @@ option{ } div{ font-size: 1.48vh !important; -} \ No newline at end of file +} + +/* 全局样式 */ +/* 切换组件tabs start */ +.palm-tabs { + height: calc(100% - 60px); + margin: 0 1.6rem; +} +.palm-tabs .palm-tabs-nav { + height: 35px; + line-height: 35px; +} +.palm-tabs .palm-tabs-bd { + height: calc(100% - 35px); + overflow: hidden; +} +.palm-tabs .palm-tabs-bd .am-tab-panel { + height: 100%; + overflow: auto; +} +/* 切换组件tabs end */ +/* 固定表头的table样式 start */ +.fixed-section { + height: 100%; + display: flex; + flex-direction: column; + overflow: hidden; +} +.fixed-section .am-modal-bd { + flex: 1 1 auto; + height: 10px; + overflow: hidden; +} +/* 顶部操作行样式 */ +.fixed-section .fixed-actions { + height: 45px; +} +/* table主体样式 */ +.fixed-section .fixed-table { + height: calc(100% - 26px); +} +.fixed-section .fixed-table.has-actions { + height: calc(100% - 71px); +} +/* 按钮行样式 */ +.fixed-section .fixed-btns-row { + margin-top: 5px; + height: 26px; +} +/* 底部样式 */ +.fixed-section .am-modal-footer { + flex: 0 0 44px; +} +/* 滚动条宽度 */ +.fixed-table tbody::-webkit-scrollbar { + width: 8px; + background-color: transparent; +} +/* 滚动条颜色 */ +.fixed-table tbody::-webkit-scrollbar-thumb { + background-color: #c1c1c1; +} +.fixed-table table { + display: block; + width: 100%; + max-height: 100%; + border-spacing: 0px; + border-collapse: collapse; + border: none; + overflow-y: hidden; + overflow-x: auto; + margin: 0; +} +.fixed-table.is-vertical-scroll table tbody { + max-height: calc(100% - 71px); +} +.fixed-table table>thead>tr>th { + height: 40px; + text-align: center; + vertical-align: middle; +} +.fixed-table table td { + height: 55px; + text-align: center; +} +.fixed-table table tbody { + display: block; + width: 100%; + max-height: calc(100% - 45px); + overflow-y: scroll; + overflow-x: hidden; + -webkit-overflow-scrolling: touch; +} +.fixed-table table tbody tr:last-child { + border-bottom: 1px solid #ddd; +} +.fixed-table table tr { + table-layout: fixed; + display: table; + border-right: 1px solid #ddd; + border-left: 1px solid #ddd; +} +.fixed-table table thead tr { + width: calc(100% - 8px); + border-top: 1px solid #ddd; + border-bottom: none; +} +.fixed-table table tbody tr { + width: 100%; +} +.fixed-table table tbody tr:first-child>td { + border-top: none; +} +.fixed-table table tbody tr:last-child { + border-bottom: 1px solid #ddd; +} + +/* 固定表头的table样式 end */ \ No newline at end of file diff --git a/src/main/resources/templates/admin/project_approve.ftl b/src/main/resources/templates/admin/project_approve.ftl index 5f26fcc..4f827ed 100644 --- a/src/main/resources/templates/admin/project_approve.ftl +++ b/src/main/resources/templates/admin/project_approve.ftl @@ -102,2724 +102,2618 @@ word-break:break-all; } + /* 页面相关样式 */ + .project_approve { + height: 100%; + display: flex; + flex-direction: column; + } + .project_approve .page-header { + display: flex; + align-items: center; + flex: 0 0 auto; + } + .project_approve .page-content { + flex: 1 1 auto; + overflow: hidden; + } + .palm-tabs.outer { + height: 100%; + } + .palm-tabs.inner { + height: unset; + } + .project_approve .fixed-section .am-modal-bd { + padding-bottom: 0; + border-bottom: none; + } + .project_approve .fixed-section .fixed-table.has-actions { + height: calc(100% - 45px); + } + .project_approve .fixed-section .fixed-table table { + border-bottom: 1px solid #ddd; + } + .project_approve .fixed-table table td { + vertical-align: middle; + } + +
-