From 88c73b30df0ce00a067413f613d0fb49f99bb3dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Mon, 31 Mar 2025 17:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=84=E4=BB=B6=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=EF=BC=8C=E8=B0=83=E6=95=B4=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=92=8C=E5=B7=A5=E5=85=B7=E6=A0=8F=E5=B8=83=E5=B1=80?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E9=9D=A2=E5=8C=85=E5=B1=91=E5=AF=BC?= =?UTF-8?q?=E8=88=AA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Breadcrumb/src/Breadcrumb.vue | 4 +- src/layout/components/ToolHeader.vue | 34 +-- .../components/UserInfo/src/UserInfo.vue | 16 +- src/layout/components/useRenderLayout.tsx | 2 + src/styles/variables.scss | 11 + src/views/Home/Index.vue | 4 +- src/views/enterprises/index.vue | 2 +- src/views/enterprises/update.vue | 3 +- src/views/{wait.vue => hollow.vue} | 0 src/views/oparetion/emty.vue | 9 + src/views/qualification/index.vue | 216 +++++++----------- src/views/screen/compenonts/leftwrapper.vue | 5 +- src/views/screen/compenonts/norm.vue | 3 +- src/views/screen/compenonts/rightwrapper.vue | 2 +- src/views/screen/compenonts/tabber.vue | 4 +- src/views/system/jobinfo/index.vue | 2 +- src/views/system/taglibrary/index.vue | 8 +- 17 files changed, 140 insertions(+), 185 deletions(-) rename src/views/{wait.vue => hollow.vue} (100%) create mode 100644 src/views/oparetion/emty.vue diff --git a/src/layout/components/Breadcrumb/src/Breadcrumb.vue b/src/layout/components/Breadcrumb/src/Breadcrumb.vue index 80770a8..63a7a4f 100644 --- a/src/layout/components/Breadcrumb/src/Breadcrumb.vue +++ b/src/layout/components/Breadcrumb/src/Breadcrumb.vue @@ -78,10 +78,8 @@ export default defineComponent({ ) return () => ( - - + {renderBreadcrumb()} - ) } diff --git a/src/layout/components/ToolHeader.vue b/src/layout/components/ToolHeader.vue index 7d05886..1525e05 100644 --- a/src/layout/components/ToolHeader.vue +++ b/src/layout/components/ToolHeader.vue @@ -9,13 +9,10 @@ import RouterSearch from '@/components/RouterSearch/index.vue' import { useAppStore } from '@/store/modules/app' import { useDesign } from '@/hooks/web/useDesign' -const { variables } = useDesign() - +const { variables } = useDesign() const appStore = useAppStore() - - // 全屏图标 const screenfull = computed(() => appStore.getScreenfull) @@ -25,21 +22,15 @@ const search = computed(() => appStore.search) // 尺寸图标 const size = computed(() => appStore.getSize) - // 多语言图标 const locale = computed(() => appStore.getLocale) - - export default defineComponent({ name: 'ToolHeader', setup() { return () => ( -
-
+
+
{screenfull.value ? ( @@ -49,10 +40,7 @@ export default defineComponent({ ) : undefined} {locale.value ? ( - + ) : undefined}
@@ -68,12 +56,12 @@ $prefix-cls: #{$namespace}-tool-header; .#{$prefix-cls} { transition: left var(--transition-time-02); } -.block{ - display: flex; - height: 100%; - padding: 0 10px; - cursor: pointer; - align-items: center; - transition: background var(--transition-time-02); +.block { + display: flex; + height: 100%; + padding: 0 10px; + cursor: pointer; + align-items: center; + transition: background var(--transition-time-02); } diff --git a/src/layout/components/UserInfo/src/UserInfo.vue b/src/layout/components/UserInfo/src/UserInfo.vue index b335b02..adec1c5 100644 --- a/src/layout/components/UserInfo/src/UserInfo.vue +++ b/src/layout/components/UserInfo/src/UserInfo.vue @@ -5,19 +5,16 @@ import avatarImg from '@/assets/imgs/avatar.gif' import { useTagsViewStore } from '@/store/modules/tagsView' import { useUserStore } from '@/store/modules/user' - defineOptions({ name: 'UserInfo' }) const { t } = useI18n() -const { replace } = useRouter() +const { replace } = useRouter() const userStore = useUserStore() const tagsViewStore = useTagsViewStore() - - const avatar = computed(() => userStore.user.avatar || avatarImg) const realName = computed(() => userStore.user.realName ?? '管理员') const deptName = computed(() => userStore.user.deptName ?? '管理员') @@ -34,7 +31,6 @@ const loginOut = async () => { replace('/login?redirect=/index') } catch {} } - diff --git a/src/views/qualification/index.vue b/src/views/qualification/index.vue index 57a7f0d..0c7ce2d 100644 --- a/src/views/qualification/index.vue +++ b/src/views/qualification/index.vue @@ -1,114 +1,90 @@