From 92ae311970c26cb3846c0e52e54e224993f9ed17 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:32:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=AF=BC=E8=88=AA?= =?UTF-8?q?=E6=A0=8F=E6=94=B6=E6=94=BE=20=E7=94=A8=E6=88=B7=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=AD=9B=E9=80=89=E9=80=BB=E8=BE=91=20api=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=BA=90=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 | 9 + frontend/src/directive/index.js | 32 ++++ .../src/layout/components/Sidebar/index.vue | 27 +-- frontend/src/layout/index.vue | 10 +- frontend/src/store/index.js | 6 +- .../system/datasource/ApiHttpRequestForm.vue | 5 + .../system/datasource/DsConfiguration.vue | 40 ++++- frontend/src/views/system/user/filterUser.vue | 119 ++++++++++--- frontend/src/views/system/user/index.vue | 145 ++++++++------- frontend/src/views/system/user/userEditer.vue | 167 ++++++++++-------- 10 files changed, 367 insertions(+), 193 deletions(-) diff --git a/frontend/src/components/gridTable/index.vue b/frontend/src/components/gridTable/index.vue index 711977679f..536dcd454e 100644 --- a/frontend/src/components/gridTable/index.vue +++ b/frontend/src/components/gridTable/index.vue @@ -169,6 +169,15 @@ export default { } } + .el-table::before { + content: ''; + position: absolute; + top: 0; + left: 0; + z-index: 10; + border-top: 1px solid rgba(31, 35, 41, 0.15);; + } + ::v-deep .el-table__fixed-body-wrapper { tr { background-color: var(--TableBG, #ffffff) !important; diff --git a/frontend/src/directive/index.js b/frontend/src/directive/index.js index 1273bd4c9e..346a665ab9 100644 --- a/frontend/src/directive/index.js +++ b/frontend/src/directive/index.js @@ -64,6 +64,36 @@ export const bottom2TopDrag = { } } +const closePress = { + inserted: function (el) { + el.querySelector('.el-drawer__close-btn').onmousedown = function (e) { + e.currentTarget.style.background = '#d2d3d4'; + } + el.querySelector('.el-drawer__close-btn').onmouseup = function (e) { + e.currentTarget.style.background = 'none'; + } + } +} + +// 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'; +// } +// } +// } + +// #EFF0F1 + export default { install(Vue) { // Vue.directive('data-permission', dataPermission) @@ -71,6 +101,8 @@ export default { Vue.directive('left-to-right-drag', left2RightDrag) Vue.directive('right-to-left-drag', right2LeftDrag) Vue.directive('bottom-to-top-drag', bottom2TopDrag) + Vue.directive('closePress', closePress) + // Vue.directive('btnPress', btnPress) } } diff --git a/frontend/src/layout/components/Sidebar/index.vue b/frontend/src/layout/components/Sidebar/index.vue index aa711cb469..1fd71d9501 100644 --- a/frontend/src/layout/components/Sidebar/index.vue +++ b/frontend/src/layout/components/Sidebar/index.vue @@ -1,12 +1,13 @@