diff --git a/nezha-fronted/src/assets/css/common/tableCommon.scss b/nezha-fronted/src/assets/css/common/tableCommon.scss index 3b41b64e4..e9aaea471 100644 --- a/nezha-fronted/src/assets/css/common/tableCommon.scss +++ b/nezha-fronted/src/assets/css/common/tableCommon.scss @@ -1,15 +1,24 @@ /*列表table通用样式*/ .list-page { - background-color: white; + background-color: #f6f6f6; height: 100%; .main-list { + background-color: white; position: relative; display: flex; flex-direction: column; height: 100%; z-index: 0; } + .main-container { + padding: 10px; + height: 100%; + background-color: #f6f6f6; + &>div { + background-color: white; + } + } .main-list.main-list-with-sub { height: 50%; } @@ -27,10 +36,19 @@ justify-content: space-between; padding: 14px 20px; - .top-tool-main-right { + &.top-tools--sub { + align-items: center; + padding: 0 70px 0 15px; + height: 44px; + background-color: white; + border: 1px solid #E6EAED; + box-sizing: border-box; + } + + .top-tool-right { display: flex; } - .top-tool-main-left { + .top-tool-left { display: flex; } .top-tool-btn-group { @@ -80,13 +98,87 @@ position: relative; } } + .top-tools--sub { + .top-tool-left { + height: 100%; + } + .sub-list-title { + width: 200px; + line-height: 40px; + font-size: 16px; + color: #202F3F; + text-overflow: ellipsis; + overflow: hidden; + white-space: nowrap; + } + .sub-list-tabs { + height: 100%; + display: flex; + align-items: center; + .sub-list-tab { + height: 100%; + width: 120px; + color: #666666; + font-size: 14px; + text-align: center; + box-sizing: border-box; + line-height: 40px; + + &.sub-list-tab--active { + border-bottom: 2px solid $--theme-color; + color: #FA901C; + } + } + + } + } + /* 上滑resize工具条 */ + .sub-list-resize, .sub-list-resize-copy { + display: flex; + align-items: center; + justify-content: center; + height: 9px; + width: 100%; + box-shadow: inset 0 1px 0 0 #BEBEBE; + background-color: #e6eaed; + position: absolute; + z-index: 1; + box-sizing: border-box; + user-select: none; + color: #5f6368; + cursor: ns-resize; + } + .sub-list-window-control { + display: flex; + align-items: center; + margin-left: 14px; + position: absolute; + right: 0; + height: 44px; + z-index: 2; + + .window-control-btn { + cursor: pointer; + margin-right: 20px; + } + .window-control-btn>i { + color: #999999; + font-size: 14px; + transition: all .2s; + } + .window-control-btn>i:hover { + color: $--theme-color; + } + } + /* 上滑resize工具条--end */ .nz-table2 { position: relative; padding: 0 20px; width: 100%; box-sizing: border-box; flex: auto; + height: calc(100% - 58px); .el-table { position: absolute; @@ -224,9 +316,9 @@ /* end--覆盖el-table边框、gutter等样式 */ .pagination-bottom { position: absolute; - bottom: 0; + bottom: 8px; height: 48px; - width: 100%; + width: calc(100% - 20px); } } .operation-dropdown-text { diff --git a/nezha-fronted/src/assets/stylus/main.scss b/nezha-fronted/src/assets/stylus/main.scss index 9fe3d3f54..59ebadac3 100644 --- a/nezha-fronted/src/assets/stylus/main.scss +++ b/nezha-fronted/src/assets/stylus/main.scss @@ -523,42 +523,6 @@ li{ } /* end--nz-tab组件*/ -/* begin--二级页面tab*/ -.sub-list-tabs { - margin-top: 0 !important; - position: relative; - height: 100%; - background-color: #f5f7fa; -} -.sub-list-tab { - width: 100px; - font-size: 14px; - color: #909399; - height: calc(100% - 2px); - padding-left: 20px; - line-height: 27px; - display: inline-block; - cursor: pointer; -} -.sub-list-tab:hover { - color: $global-text-color-active; -} -.sub-list-tab-active { - color: $global-text-color-active; - background-color: white; - border-top: solid 2px $global-text-color-active; -} -.sub-list-tab-title { - font-size: 14px; - color: #666666; - padding: 0 8px; - height: 100%; - display: inline-block; - background-color: #eeeeee; - line-height: 30px; -} -/* end--二级页面tab*/ - /* end--通用*/ /* begin--左侧列表*/ @@ -738,123 +702,6 @@ li{ }*/ /* end--顶部工具栏*/ -/* begin--二级顶部工具栏*/ -.sub-top-tools { - display: flex; - height: 32px; - align-items: center; - justify-content: space-between; - border-top: 1px solid #DCDFE6; - border-bottom: 1px solid #E4E7ED; - margin: 0 -6px; - padding-right: 80px; - background-color: $content-right-background-color; - margin-bottom: 10px; -} -.sub-top-tools>div { - margin-top: 2px; -} -.sub-top-tools .top-tool-search { - width: 260px; - margin: -1px 0 0 0; - .select_input input { - background-color: white; - } -} -.sub-top-tools .top-tool-btn-txt .nz-icon{ - display: inline-block; - font-size: 12px; - margin-right: 6px; -} -.sub-top-tool-right { - display: flex; - align-content: center; -} -.has-sub-popper { - color: $danger-color; -} -.sub-box { - height: 50%; - position: relative; -} -.sub-list { - height: calc(100% - 9px); - position: absolute; - width: 100%; - z-index: 1; - top: 9px; -} -.main-and-sub-transition { - transition: .4s height; -} - -.resize-modal { - width: 100%; - opacity: 0.6; - background-color: #f5f9ff; - border: 1px solid #a7d0f7; - box-sizing: border-box; - position: fixed; - margin: 0 -6px; - cursor: ns-resize; - display: none; - z-index: 20; - vertical-align: bottom; - bottom: 0; -} -.sub-list-resize, .sub-list-resize-copy { - border-top: 1px solid #aaa; - background-color: #eaeaea; - height: 9px; - margin-left: -6px; - width: calc(100% + 12px); - position: absolute; - z-index: 1; - box-sizing: border-box; - user-select: none; - color: #5f6368; - display: flex; - align-items: center; - justify-content: center; - cursor: ns-resize; -} -.sub-list-resize-copy { - border-top: 1px solid #a7d0f7; - margin-left: 0; - width: calc(100% - 198px); -} -.sub-list-window-control { - display: flex; - align-items: center; - margin-left: 14px; - position: absolute; - right: 0; - top: 5px; - z-index: 2; -} -.window-control-btn { - cursor: pointer; - width: 29px; - text-align: center; -} -.window-control-btn>i { - color: #909399; - font-size: 19px; -} -.window-control-btn>i:hover { - color: $global-text-color-active; -} -.pagination-top { - transition: .2s transform; -} -.pagination-top-show { - transform: translateX(0); -} -.pagination-top-hide { - transform: translateX(150%); -} -/* end--二级顶部工具栏*/ - /* start--内容*/ .nz-table { border: none; diff --git a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue index ec69ee570..2518681f2 100644 --- a/nezha-fronted/src/components/common/bottomBox/bottomBox.vue +++ b/nezha-fronted/src/components/common/bottomBox/bottomBox.vue @@ -11,34 +11,36 @@
-
+
- - - - - - - - - + +
+ + + + + + + + - - + + - - - + + + - + - - - + + + +
@@ -84,7 +86,19 @@ export default { }, data () { return { - fromRoute: fromRoute + fromRoute: fromRoute, + tabs: { + user: { + operationLog: [ + { prop: 'operationLogTab', name: this.$t('config.operationlog.operationlog'), active: true }, + { prop: 'terminalLogTab', name: this.$t('config.terminallog.terminallog'), active: false } + ], + terminalLog: [ + { prop: 'operationLogTab', name: this.$t('config.operationlog.operationlog'), active: false }, + { prop: 'terminalLogTab', name: this.$t('config.terminallog.terminallog'), active: true } + ] + } + } } }, methods: { diff --git a/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue new file mode 100644 index 000000000..696ad8ef3 --- /dev/null +++ b/nezha-fronted/src/components/common/bottomBox/nzBottomDataList.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue index 41158d855..3b2b2b5ae 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/operationLogTab.vue @@ -1,39 +1,43 @@ diff --git a/nezha-fronted/src/components/layout/container.vue b/nezha-fronted/src/components/layout/container.vue index ffcc1ead2..b47591d83 100644 --- a/nezha-fronted/src/components/layout/container.vue +++ b/nezha-fronted/src/components/layout/container.vue @@ -16,7 +16,6 @@ export default {