From eca9c4d7f8eaa8db60b72d416f7744eff35fd58f Mon Sep 17 00:00:00 2001 From: pixelmaxQM Date: Fri, 29 Mar 2024 20:53:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed:#1692=20=E7=BB=9F=E4=B8=80=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E6=93=8D=E4=BD=9C=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/style/element_visiable.scss | 191 +++++++++++- web/src/style/main.scss | 187 +---------- web/src/view/superAdmin/api/api.vue | 29 +- web/src/view/superAdmin/menu/menu.vue | 29 +- web/src/view/superAdmin/user/user.vue | 210 ++++++------- .../autoCode/component/previewCodeDialg.vue | 2 +- web/src/view/systemTools/autoCode/index.vue | 197 ++++++------ .../exportTemplate/exportTemplate.vue | 295 +++++++++--------- 8 files changed, 579 insertions(+), 561 deletions(-) diff --git a/web/src/style/element_visiable.scss b/web/src/style/element_visiable.scss index 0210664c0b..9c2f7d0058 100644 --- a/web/src/style/element_visiable.scss +++ b/web/src/style/element_visiable.scss @@ -5,19 +5,6 @@ border-radius: 2px; } -::-webkit-scrollbar { - @apply hidden; -} - - -.gva-search-box { - @apply p-6 pb-0.5 bg-white rounded mb-3; -} - -.gva-form-box { - @apply p-6 bg-white rounded; -} - .gva-pagination { @apply flex justify-end; .el-pagination__editor { @@ -40,3 +27,181 @@ padding-bottom: 16px !important; @apply border-0 border-b border-solid border-gray-200; } + + +.el-form--inline { + .el-form-item { + & > .el-input, .el-cascader, .el-select, .el-date-editor, .el-autocomplete { + @apply w-52; + } + } +} + +.el-dropdown { + @apply overflow-hidden +} + + +.admin-box { + @apply min-h-[calc(100vh-200px)] px-3 py-4 mt-28 mb-4 mx-1; + .el-table { + th { + @apply px-0 py-2; + .cell { + @apply leading-[40px] text-gray-700; + } + } + td { + @apply px-0 py-2; + .cell { + @apply leading-[40px] text-gray-600; + } + } + .is-leaf { + @apply border-b border-t-0 border-l-0 border-solid border-gray-50; + border-right:var(--el-table-border); + background: #F7FBFF !important; + } + } +} + +// layout + +// table +.el-pagination { + @apply mt-8; + .btn-prev, + .btn-next { + @apply border border-solid border-gray-300 rounded; + } + .el-pager { + li { + @apply border border-solid border-gray-300 rounded text-gray-600 text-sm mx-1; + } + } +} + +// 导航 +#app { + .el-container { + @apply relative h-full w-full; + } + .el-container.mobile.openside { + @apply fixed top-0; + } + .gva-aside { + @apply fixed top-0 left-0 z-[1001] overflow-hidden; + .el-menu { + @apply border-r-0; + } + } + .aside { + .el-menu--collapse { + >.el-menu-item { + display: flex; + justify-content: center; + } + } + .el-sub-menu { + .el-menu { + .is-active { + // 关闭三级菜单二级菜单样式 + ul { + border: none; + } + } + // 关闭三级菜单二级菜单样式 + .is-active.is-opened { + ul { + border: none; + } + } + } + } + } + .hideside { + .aside { + @apply w-[54px] + } + } + + .mobile { + .gva-aside { + @apply w-[54px]; + } + } + + .hideside { + .main-cont.el-main { + @apply ml-[54px]; + } + } + .mobile { + .main-cont.el-main { + @apply ml-0; + } + } +} + +.el-container.layout-cont { + .header-cont { + @apply px-4 h-16 bg-white; + } + + + .main-cont { + @apply h-screen overflow-visible; + &.el-main { + @apply min-h-full ml-[220px] bg-main p-0 overflow-auto; + } + + .breadcrumb { + @apply h-16 flex items-center p-0 ml-12 text-lg; + .el-breadcrumb__item { + .el-breadcrumb__inner { + @apply text-gray-600; + } + } + .el-breadcrumb__item:nth-last-child(1) { + .el-breadcrumb__inner { + @apply text-gray-600; + } + } + } + + .router-history { + @apply bg-white p-0 border-t border-l-0 border-r-0 border-b-0 border-solid border-gray-100; + .el-tabs__header { + @apply m-0; + .el-tabs__item{ + @apply border-solid border-r border-t-0 border-gray-100 border-b-0 border-l-0; + } + .el-tabs__item.is-active { + @apply bg-blue-500 bg-opacity-5; + } + .el-tabs__nav { + @apply border-0; + } + } + } + + .aside { + @apply overflow-auto; + } + .el-menu-vertical { + @apply h-[calc(100vh-60px)]; + &:not(.el-menu--collapse) { + @apply w-[220px]; + } + } + .el-menu--collapse { + @apply w-[54px]; + li { + .el-tooltip, + .el-sub-menu__title { + @apply px-4; + } + } + } + } +} diff --git a/web/src/style/main.scss b/web/src/style/main.scss index d4865cf224..dfda9e98d0 100644 --- a/web/src/style/main.scss +++ b/web/src/style/main.scss @@ -507,175 +507,6 @@ li { list-style-type: none; } -// 导航 -#app { - .el-container { - @apply relative h-full w-full; - } - .el-container.mobile.openside { - @apply fixed top-0; - } - .gva-aside { - @apply fixed top-0 left-0 z-[1001] overflow-hidden; - .el-menu { - @apply border-r-0; - } - } - .aside { - .el-menu--collapse { - >.el-menu-item { - display: flex; - justify-content: center; - } - } - .el-sub-menu { - .el-menu { - .is-active { - // 关闭三级菜单二级菜单样式 - ul { - border: none; - } - } - // 关闭三级菜单二级菜单样式 - .is-active.is-opened { - ul { - border: none; - } - } - } - } - } - .hideside { - .aside { - @apply w-[54px] - } - } - - .mobile { - .gva-aside { - @apply w-[54px]; - } - } - - .hideside { - .main-cont.el-main { - @apply ml-[54px]; - } - } - .mobile { - .main-cont.el-main { - @apply ml-0; - } - } -} - -// layout - -.admin-box { - @apply min-h-[calc(100vh-200px)] px-3 py-4 mt-28 mb-4 mx-1; - .el-table { - th { - @apply px-0 py-2; - .cell { - @apply leading-[40px] text-gray-700; - } - } - td { - @apply px-0 py-2; - .cell { - @apply leading-[40px] text-gray-600; - } - } - .is-leaf { - @apply border-b border-t-0 border-l-0 border-solid border-gray-50; - border-right:var(--el-table-border); - background: #F7FBFF !important; - } - } -} - -// table -.el-pagination { - @apply mt-8; - .btn-prev, - .btn-next { - @apply border border-solid border-gray-300 rounded; - } - .el-pager { - li { - @apply border border-solid border-gray-300 rounded text-gray-600 text-sm mx-1; - } - } -} - - -.el-container.layout-cont { - .header-cont { - @apply px-4 h-16 bg-white; - } - - - .main-cont { - @apply h-screen overflow-visible; - &.el-main { - @apply min-h-full ml-[220px] bg-main p-0 overflow-auto; - } - - .breadcrumb { - @apply h-16 flex items-center p-0 ml-12 text-lg; - .el-breadcrumb__item { - .el-breadcrumb__inner { - @apply text-gray-600; - } - } - .el-breadcrumb__item:nth-last-child(1) { - .el-breadcrumb__inner { - @apply text-gray-600; - } - } - } - - .router-history { - @apply bg-white p-0 border-t border-l-0 border-r-0 border-b-0 border-solid border-gray-100; - .el-tabs__header { - @apply m-0; - .el-tabs__item{ - @apply border-solid border-r border-t-0 border-gray-100 border-b-0 border-l-0; - } - .el-tabs__item.is-active { - @apply bg-blue-500 bg-opacity-5; - } - .el-tabs__nav { - @apply border-0; - } - } - } - - .aside { - @apply overflow-auto; - } - .el-menu-vertical { - @apply h-[calc(100vh-60px)]; - &:not(.el-menu--collapse) { - @apply w-[220px]; - } - } - .el-menu--collapse { - @apply w-[54px]; - li { - .el-tooltip, - .el-sub-menu__title { - @apply px-4; - } - } - } - } -} - -.el-dropdown { - @apply overflow-hidden -} - .gva-table-box { @apply p-6 bg-white rounded; } @@ -692,10 +523,16 @@ li { @apply w-4 h-4; } -.el-form--inline { - .el-form-item { - & > .el-input, .el-cascader, .el-select, .el-date-editor, .el-autocomplete { - @apply w-52; - } - } + +::-webkit-scrollbar { + @apply hidden; +} + + +.gva-search-box { + @apply p-6 pb-0.5 bg-white rounded mb-3; +} + +.gva-form-box { + @apply p-6 bg-white rounded; } diff --git a/web/src/view/superAdmin/api/api.vue b/web/src/view/superAdmin/api/api.vue index 73184e221f..f135d04680 100644 --- a/web/src/view/superAdmin/api/api.vue +++ b/web/src/view/superAdmin/api/api.vue @@ -161,11 +161,25 @@ - + + - - + diff --git a/web/src/view/superAdmin/menu/menu.vue b/web/src/view/superAdmin/menu/menu.vue index fe4adcef34..8842078456 100644 --- a/web/src/view/superAdmin/menu/menu.vue +++ b/web/src/view/superAdmin/menu/menu.vue @@ -124,11 +124,25 @@ - + + - - + diff --git a/web/src/view/superAdmin/user/user.vue b/web/src/view/superAdmin/user/user.vue index 1eae296b11..8323844d39 100644 --- a/web/src/view/superAdmin/user/user.vue +++ b/web/src/view/superAdmin/user/user.vue @@ -96,10 +96,10 @@ > + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - -
- 头像 -
从媒体库选择
- -
-
- -
- - +
从媒体库选择
+ + + - - + + @@ -375,7 +375,7 @@ const deleteUserFunc = async(row) => { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' - }).then(async () => { + }).then(async() => { const res = await deleteUser({ id: row.ID }) if (res.code === 0) { ElMessage.success('删除成功') diff --git a/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue b/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue index fec1ce3443..f575aa42b7 100644 --- a/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue +++ b/web/src/view/systemTools/autoCode/component/previewCodeDialg.vue @@ -8,7 +8,7 @@ >
diff --git a/web/src/view/systemTools/autoCode/index.vue b/web/src/view/systemTools/autoCode/index.vue index acab4cc9d5..7a78b87a47 100644 --- a/web/src/view/systemTools/autoCode/index.vue +++ b/web/src/view/systemTools/autoCode/index.vue @@ -232,69 +232,69 @@
- - - - - - - - - - - - - - + + + + + +
@@ -498,11 +498,24 @@ - + + - - - - @@ -562,7 +563,7 @@ import PreviewCodeDialog from '@/view/systemTools/autoCode/component/previewCode import { toUpperCase, toHump, toSQLLine, toLowerCase } from '@/utils/stringFun' import { createTemp, getDB, getTable, getColumn, preview, getMeta, getPackageApi } from '@/api/autoCode' import { getDict } from '@/utils/dictionary' -import { ref, getCurrentInstance, reactive, watch, toRaw } from 'vue' +import { ref, reactive, watch, toRaw } from 'vue' import { useRoute, useRouter } from 'vue-router' import { ElMessage, ElMessageBox } from 'element-plus' import WarningBar from '@/components/warningBar/warningBar.vue' diff --git a/web/src/view/systemTools/exportTemplate/exportTemplate.vue b/web/src/view/systemTools/exportTemplate/exportTemplate.vue index 136b9247bd..3b447a81f5 100644 --- a/web/src/view/systemTools/exportTemplate/exportTemplate.vue +++ b/web/src/view/systemTools/exportTemplate/exportTemplate.vue @@ -184,167 +184,172 @@ /> - - - - +
+ {{type==='create'?'添加':'修改'}} +
+ 取 消 + 确 定 +
+
+ + + + + + + - - - -
- {{ item.aliasName }} - {{ item.dbName }} -
-
-
-
+
+ {{ item.aliasName }} + {{ item.dbName }} +
+ + +
- - - - - - - - - - + + + + + + + + + + + + + + + + + + +
- - - - - - - -
- - - - - - 删除 -
-
- 添加条件 -
-
- - - - + + 删除 +
+
+ 添加条件 +
+
+
+