From 249ed7f2573626b72d5616c65850e00e2fb53f25 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Tue, 26 Jul 2022 18:03:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=94=A8=E6=88=B7=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/gridTable/index.vue | 2 +- frontend/src/directive/index.js | 29 +- frontend/src/styles/index.scss | 18 ++ .../system/datasource/ApiHttpRequestForm.vue | 5 - frontend/src/views/system/user/filterUser.vue | 52 +-- frontend/src/views/system/user/index.vue | 301 +++++++++++++----- 6 files changed, 281 insertions(+), 126 deletions(-) diff --git a/frontend/src/components/gridTable/index.vue b/frontend/src/components/gridTable/index.vue index 536dcd454e..cf787bc41b 100644 --- a/frontend/src/components/gridTable/index.vue +++ b/frontend/src/components/gridTable/index.vue @@ -59,7 +59,7 @@ export default { paginationEvent: {}, paginationDefalut: { currentPage: 1, - pageSizes: [10, 20, 30, 40], + pageSizes: [10, 20, 50, 100], pageSize: 10, layout: "total, prev, pager, next, sizes, jumper", total: 0, diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index 346a665ab9..edb3f4f522 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -75,24 +75,17 @@ const closePress = { } } -// const btnPress = { -// inserted: function (el) { -// el.onmousedown = function () { -// el.style.background = '#EFF0F1'; -// } -// el.onmouseenter = function () { -// el.style.background = '#F5F6F7 !important'; -// } -// el.onmouseleave = function () { -// el.style.background = 'none'; -// } -// el.onmouseup = function () { -// el.style.background = 'none'; -// } -// } -// } +const btnPress = { + update: function (el, binding) { + el.onmousedown = function (e) { + e.currentTarget.style.setProperty('background', binding.value || '#EFF0F1', 'important'); + } + el.onmouseup = function (e) { + e.currentTarget.style.background = 'none'; + } + }, +} -// #EFF0F1 export default { install(Vue) { @@ -102,7 +95,7 @@ export default { Vue.directive('right-to-left-drag', right2LeftDrag) Vue.directive('bottom-to-top-drag', bottom2TopDrag) Vue.directive('closePress', closePress) - // Vue.directive('btnPress', btnPress) + Vue.directive('btnPress', btnPress) } } diff --git a/frontend/src/styles/index.scss b/frontend/src/styles/index.scss index 3bb994c7a4..aa45c442db 100644 --- a/frontend/src/styles/index.scss +++ b/frontend/src/styles/index.scss @@ -853,3 +853,21 @@ div:focus { .view-select-option { display: none !important; } + +.el-checkbox__input.is-checked + .el-checkbox__label { + color: #1F2329 !important; +} + +.el-dialog__title { + font-weight: 500; +} + +.el-tabs__nav-wrap::after { + height: 1px !important; + background-color: rgba(31, 35, 41, 0.15) !important; +} + +.el-tabs__item:not(.is-active) { + font-weight: 400 !important; +} + diff --git a/frontend/src/views/system/datasource/ApiHttpRequestForm.vue b/frontend/src/views/system/datasource/ApiHttpRequestForm.vue index c6ebdc874c..6f47410375 100644 --- a/frontend/src/views/system/datasource/ApiHttpRequestForm.vue +++ b/frontend/src/views/system/datasource/ApiHttpRequestForm.vue @@ -391,9 +391,4 @@ export default { float: right; margin-right: 45px; } - -::v-deep .el-tabs__nav-wrap::after, -::v-deep .el-tabs__active-bar { - height: 1px !important; -} diff --git a/frontend/src/views/system/user/filterUser.vue b/frontend/src/views/system/user/filterUser.vue index 79c7a8f098..7e5e0bea02 100644 --- a/frontend/src/views/system/user/filterUser.vue +++ b/frontend/src/views/system/user/filterUser.vue @@ -11,6 +11,7 @@ 状态
{{ ele }}
++ {{ ele }} +
+