@pubinfo/module-rbac 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +53 -0
- package/src/api/modules/assist/gonggaofuwu.ts +109 -0
- package/src/api/modules/assist/index.ts +5 -0
- package/src/api/modules/assist/qunzujiekou.ts +95 -0
- package/src/api/modules/assist/quyujiekou.ts +97 -0
- package/src/api/modules/assist/typings.d.ts +364 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +95 -0
- package/src/api/modules/configData/index.ts +5 -0
- package/src/api/modules/configData/typings.d.ts +347 -0
- package/src/api/modules/configData/xitongpeizhifuwu.ts +322 -0
- package/src/api/modules/configData/zidianfuwu.ts +151 -0
- package/src/api/modules/log/caozuorizhifuwu.ts +37 -0
- package/src/api/modules/log/denglurizhifuwu.ts +37 -0
- package/src/api/modules/log/index.ts +4 -0
- package/src/api/modules/log/typings.d.ts +179 -0
- package/src/api/modules/rbac/gangweijiekou.ts +93 -0
- package/src/api/modules/rbac/index.ts +13 -0
- package/src/api/modules/rbac/jiaosejiekou.ts +124 -0
- package/src/api/modules/rbac/pubJiaosezukongzhiqi.ts +113 -0
- package/src/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.ts +186 -0
- package/src/api/modules/rbac/typings.d.ts +2001 -0
- package/src/api/modules/rbac/yonghujiekou.ts +225 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +93 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +72 -0
- package/src/api/modules/rbac/ziyuanjiekou.ts +223 -0
- package/src/api/modules/rbac/zuhuguanlijiekou.ts +91 -0
- package/src/api/modules/rbac/zuzhijiaosebiaokongzhiqi.ts +76 -0
- package/src/api/modules/rbac/zuzhijiekou.ts +171 -0
- package/src/api/request.ts +3 -0
- package/src/assets/icons/403.svg +1 -0
- package/src/assets/icons/403_dark.svg +1 -0
- package/src/assets/icons/404.svg +1 -0
- package/src/assets/icons/404_dark.svg +1 -0
- package/src/assets/icons/add-child.svg +1 -0
- package/src/assets/icons/authority.svg +1 -0
- package/src/assets/icons/authorize.svg +1 -0
- package/src/assets/icons/blacklist-disable.svg +1 -0
- package/src/assets/icons/blacklist-enable.svg +1 -0
- package/src/assets/icons/browser-360.svg +1 -0
- package/src/assets/icons/browser-chrome.svg +1 -0
- package/src/assets/icons/browser-edge.svg +1 -0
- package/src/assets/icons/browser-ie.svg +1 -0
- package/src/assets/icons/browser-other.svg +1 -0
- package/src/assets/icons/browser-qq.svg +1 -0
- package/src/assets/icons/browser-safari.svg +1 -0
- package/src/assets/icons/browser-uc.svg +1 -0
- package/src/assets/icons/change-org.svg +1 -0
- package/src/assets/icons/edit.svg +1 -0
- package/src/assets/icons/empty-data.svg +1 -0
- package/src/assets/icons/favorites.svg +1 -0
- package/src/assets/icons/icard.svg +1 -0
- package/src/assets/icons/icon_animation.svg +1 -0
- package/src/assets/icons/icon_breadcrumb.svg +1 -0
- package/src/assets/icons/icon_copyright.svg +1 -0
- package/src/assets/icons/icon_jt.svg +1 -0
- package/src/assets/icons/icon_layout.svg +1 -0
- package/src/assets/icons/icon_mainpage.svg +1 -0
- package/src/assets/icons/icon_menu.svg +1 -0
- package/src/assets/icons/icon_page_size.svg +1 -0
- package/src/assets/icons/icon_position_type.svg +1 -0
- package/src/assets/icons/icon_safe_manage.svg +1 -0
- package/src/assets/icons/icon_screen_scale.svg +6 -0
- package/src/assets/icons/icon_system_manage.svg +1 -0
- package/src/assets/icons/icon_tabbar.svg +1 -0
- package/src/assets/icons/icon_toolbar.svg +1 -0
- package/src/assets/icons/icon_topbar.svg +1 -0
- package/src/assets/icons/icon_watermark.svg +1 -0
- package/src/assets/icons/image-load-fail.svg +1 -0
- package/src/assets/icons/log-center.svg +1 -0
- package/src/assets/icons/logo-sig.svg +1 -0
- package/src/assets/icons/logo.svg +1 -0
- package/src/assets/icons/mima.svg +1 -0
- package/src/assets/icons/not-data.svg +1 -0
- package/src/assets/icons/org-main.svg +1 -0
- package/src/assets/icons/org-unmain.svg +1 -0
- package/src/assets/icons/process-management.svg +1 -0
- package/src/assets/icons/project-management.svg +1 -0
- package/src/assets/icons/rbac.svg +1 -0
- package/src/assets/icons/remove.svg +1 -0
- package/src/assets/icons/resource-app.svg +1 -0
- package/src/assets/icons/resource-btn.svg +1 -0
- package/src/assets/icons/resource-index.svg +1 -0
- package/src/assets/icons/resource-menu.svg +1 -0
- package/src/assets/icons/resource-nonmenu.svg +1 -0
- package/src/assets/icons/setting-manage.svg +1 -0
- package/src/assets/icons/test.svg +1 -0
- package/src/assets/icons/theme-check-mark.svg +1 -0
- package/src/assets/icons/theme-title.svg +1 -0
- package/src/assets/icons/toolbar-collapse.svg +1 -0
- package/src/assets/icons/tree_icon.svg +1 -0
- package/src/assets/icons/tree_icon_checked.svg +1 -0
- package/src/assets/icons/view.svg +1 -0
- package/src/assets/icons/workbench.svg +1 -0
- package/src/assets/icons/zddata.svg +1 -0
- package/src/assets/icons/zy_checked.svg +1 -0
- package/src/assets/icons/zy_default.svg +1 -0
- package/src/assets/images/layout/item1.webp +0 -0
- package/src/assets/images/layout/item1_dark.webp +0 -0
- package/src/assets/images/layout/item2.webp +0 -0
- package/src/assets/images/layout/item2_dark.webp +0 -0
- package/src/assets/images/layout/item3.webp +0 -0
- package/src/assets/images/layout/item3_dark.webp +0 -0
- package/src/assets/images/layout/item4.webp +0 -0
- package/src/assets/images/layout/item4_dark.webp +0 -0
- package/src/assets/images/layout/item5.webp +0 -0
- package/src/assets/images/layout/item5_dark.webp +0 -0
- package/src/assets/images/page-width/anto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/auto.webp +0 -0
- package/src/assets/images/page-width/auto_dark.webp +0 -0
- package/src/assets/images/page-width/auto_min_w.webp +0 -0
- package/src/assets/images/page-width/auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto.webp +0 -0
- package/src/assets/images/page-width/icon_auto_dark.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w.webp +0 -0
- package/src/assets/images/page-width/icon_auto_min_w_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle.webp +0 -0
- package/src/assets/images/page-width/icon_middle_dark.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w.webp +0 -0
- package/src/assets/images/page-width/icon_middle_max_w_dark.webp +0 -0
- package/src/assets/images/page-width/middle.webp +0 -0
- package/src/assets/images/page-width/middle_dark.webp +0 -0
- package/src/assets/images/page-width/middle_max_w.webp +0 -0
- package/src/assets/images/page-width/middle_max_w_dark.webp +0 -0
- package/src/assets/lottie/breadcrumb/dark/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/dark/style.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enable.json +1 -0
- package/src/assets/lottie/breadcrumb/light/enableMainMenu.json +1 -0
- package/src/assets/lottie/breadcrumb/light/style.json +1 -0
- package/src/assets/lottie/layout/data-test.json +1 -0
- package/src/assets/lottie/layout/data.json +1 -0
- package/src/assets/lottie/menu/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/dark/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/dark/isRounded.json +1 -0
- package/src/assets/lottie/menu/dark/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/dark/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/menu/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/menu/light/enableSubMenuCollapseButton.json +1 -0
- package/src/assets/lottie/menu/light/isRounded.json +1 -0
- package/src/assets/lottie/menu/light/menuActiveStyle.json +1 -0
- package/src/assets/lottie/menu/light/subMenuCollapse.json +1 -0
- package/src/assets/lottie/menu/light/subMenuUniqueOpened.json +1 -0
- package/src/assets/lottie/other/dark/enableCopyright.json +1 -0
- package/src/assets/lottie/other/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/dark/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/other/light/enableCopyright.json +1 -0
- package/src/assets/lottie/other/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/other/light/switchTabbarAndToolbar.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/dark/fadeinout_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/dark/tobottom_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft.json +1 -0
- package/src/assets/lottie/page_animation/dark/toleft_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright.json +1 -0
- package/src/assets/lottie/page_animation/dark/toright_old.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop.json +1 -0
- package/src/assets/lottie/page_animation/dark/totop_old.json +1 -0
- package/src/assets/lottie/page_animation/light/fadeinout.json +1 -0
- package/src/assets/lottie/page_animation/light/tobottom.json +1 -0
- package/src/assets/lottie/page_animation/light/toleft.json +1 -0
- package/src/assets/lottie/page_animation/light/toright.json +1 -0
- package/src/assets/lottie/page_animation/light/totop.json +1 -0
- package/src/assets/lottie/tabbar/dark/enable.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/dark/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/dark/style.json +1 -0
- package/src/assets/lottie/tabbar/light/enable.json +1 -0
- package/src/assets/lottie/tabbar/light/enableHotkeys.json +1 -0
- package/src/assets/lottie/tabbar/light/enableIcon.json +1 -0
- package/src/assets/lottie/tabbar/light/enableMemory.json +1 -0
- package/src/assets/lottie/tabbar/light/style.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/dark/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/dark/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/dark/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/toolbar/light/enableColorScheme.json +1 -0
- package/src/assets/lottie/toolbar/light/enableFullscreen.json +1 -0
- package/src/assets/lottie/toolbar/light/enableI18n.json +1 -0
- package/src/assets/lottie/toolbar/light/enableNotification.json +1 -0
- package/src/assets/lottie/toolbar/light/enablePageReload.json +1 -0
- package/src/assets/lottie/toolbar/light/enableUserPreferences.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnable.json +1 -0
- package/src/assets/lottie/toolbar/light/navSearchEnableHotkeys.json +1 -0
- package/src/assets/lottie/watermark/dark/enableWatermark.json +1 -0
- package/src/assets/lottie/watermark/light/enableWatermark.json +1 -0
- package/src/assets/styles/vxe-table.css +13 -0
- package/src/components/GroupSelector/index.vue +311 -0
- package/src/components/OrgTree/index.vue +91 -0
- package/src/components/OrgUserSelector/OrgSelector.vue +135 -0
- package/src/components/OrgUserSelector/UserSelector.vue +164 -0
- package/src/components/OrgUserSelector/index.ts +47 -0
- package/src/components/OrgUserSelector/provider.ts +373 -0
- package/src/components/ResourceSelector/enum.ts +5 -0
- package/src/components/ResourceSelector/hooks/useAppAndResource.ts +96 -0
- package/src/components/ResourceSelector/index.vue +432 -0
- package/src/composables/useLottie.ts +65 -0
- package/src/index.ts +31 -0
- package/src/interface.ts +54 -0
- package/src/routes/index.ts +156 -0
- package/src/routes/modules/authority.manage.menu.ts +105 -0
- package/src/routes/modules/log.manage.menu.ts +45 -0
- package/src/routes/modules/safe.manage.menu.ts +71 -0
- package/src/routes/modules/stylesetting.manage.menu.ts +130 -0
- package/src/routes/modules/system.manage.menu.ts +92 -0
- package/src/stores/index.ts +1 -0
- package/src/views/blackWhiteList/components/drawerBlackWhiteList.vue +132 -0
- package/src/views/blackWhiteList/enum.ts +7 -0
- package/src/views/blackWhiteList/index.vue +309 -0
- package/src/views/blackWhiteList/types.ts +4 -0
- package/src/views/breadcrumb_setting/animationData.ts +15 -0
- package/src/views/breadcrumb_setting/index.vue +147 -0
- package/src/views/components/HCheckList.vue +47 -0
- package/src/views/components/animation_item.vue +37 -0
- package/src/views/components/setItem.vue +126 -0
- package/src/views/data-permission/components/createAndEditDataPermission.vue +354 -0
- package/src/views/data-permission/enum.ts +59 -0
- package/src/views/data-permission/index.vue +190 -0
- package/src/views/dictionary/components/drawerDictionary.vue +108 -0
- package/src/views/dictionary/components/drawerDictionaryItem.vue +115 -0
- package/src/views/dictionary/enum.ts +8 -0
- package/src/views/dictionary/index.vue +194 -0
- package/src/views/dictionary/itemlist.vue +164 -0
- package/src/views/group/components/drawerGroup.vue +177 -0
- package/src/views/group/enum.ts +25 -0
- package/src/views/group/index.vue +207 -0
- package/src/views/layout_setting/index.vue +306 -0
- package/src/views/log_center/components/browserType.vue +35 -0
- package/src/views/log_center/components/loginHistoryDetail.vue +71 -0
- package/src/views/log_center/components/operateHistoryDetail.vue +80 -0
- package/src/views/log_center/login_history.vue +239 -0
- package/src/views/log_center/operate_history.vue +233 -0
- package/src/views/menu_setting/animationData.ts +27 -0
- package/src/views/menu_setting/index.vue +207 -0
- package/src/views/organization/components/drawerOrganization.vue +161 -0
- package/src/views/organization/components/drawerRole.vue +159 -0
- package/src/views/organization/components/roleSelect.vue +258 -0
- package/src/views/organization/enum.ts +26 -0
- package/src/views/organization/index.vue +516 -0
- package/src/views/other_setting/animationData.ts +15 -0
- package/src/views/other_setting/index.vue +250 -0
- package/src/views/other_setting/interface.ts +26 -0
- package/src/views/page_animation_setting/animationData.ts +23 -0
- package/src/views/page_animation_setting/index.vue +200 -0
- package/src/views/page_w_setting/index.vue +238 -0
- package/src/views/position/components/drawerPosition.vue +131 -0
- package/src/views/position/enum.ts +8 -0
- package/src/views/position/index.vue +167 -0
- package/src/views/region/components/drawerRegion.vue +143 -0
- package/src/views/region/enum.ts +24 -0
- package/src/views/region/index.vue +246 -0
- package/src/views/resource/components/ResourceEdit.vue +209 -0
- package/src/views/resource/components/RoleRelation.vue +100 -0
- package/src/views/resource/enum.ts +35 -0
- package/src/views/resource/index.vue +237 -0
- package/src/views/resource/interface.ts +6 -0
- package/src/views/role/components/ResourceRelation.vue +113 -0
- package/src/views/role/components/drawerRole.vue +191 -0
- package/src/views/role/enum.ts +26 -0
- package/src/views/role/index.vue +183 -0
- package/src/views/role/interface.ts +6 -0
- package/src/views/role_group/components/ResourceRelation.vue +91 -0
- package/src/views/role_group/components/drawerRole.vue +153 -0
- package/src/views/role_group/components/roleSelect.vue +224 -0
- package/src/views/role_group/enum.ts +22 -0
- package/src/views/role_group/index.vue +170 -0
- package/src/views/role_group/interface.ts +6 -0
- package/src/views/safe_setting/index.vue +237 -0
- package/src/views/tabbar_setting/animationData.ts +23 -0
- package/src/views/tabbar_setting/index.vue +186 -0
- package/src/views/tenant/components/TenantEdit.vue +226 -0
- package/src/views/tenant/index.vue +192 -0
- package/src/views/tenant/interface.ts +4 -0
- package/src/views/theme_setting/index.vue +465 -0
- package/src/views/toolbar_setting/animationData.ts +42 -0
- package/src/views/toolbar_setting/index.vue +189 -0
- package/src/views/user/components/OrgAndPosition.vue +156 -0
- package/src/views/user/components/UserAuthorization.vue +260 -0
- package/src/views/user/components/UserEdit.vue +267 -0
- package/src/views/user/components/roleSelect.vue +258 -0
- package/src/views/user/enum.ts +13 -0
- package/src/views/user/index.vue +266 -0
- package/src/views/user/interface.ts +43 -0
- package/src/views/watermark_setting/animationData.ts +7 -0
- package/src/views/watermark_setting/index.vue +236 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { postSysconfigAddOrEidtSysThemeStyleConfig } from '@/api/modules/configData';
|
|
3
|
+
import { useSettingsStore } from '@/stores';
|
|
4
|
+
import { message } from 'ant-design-vue';
|
|
5
|
+
|
|
6
|
+
defineOptions({
|
|
7
|
+
name: 'LayoutSetting',
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
const settingsStore = useSettingsStore();
|
|
11
|
+
const menu = ref(settingsStore.globalSettings.menu.menuMode);
|
|
12
|
+
|
|
13
|
+
const modeSide = reactive<
|
|
14
|
+
{
|
|
15
|
+
describe: string
|
|
16
|
+
placement: string
|
|
17
|
+
active: Settings.menu['menuMode']
|
|
18
|
+
}[]
|
|
19
|
+
>([
|
|
20
|
+
{
|
|
21
|
+
describe: '顶部模式',
|
|
22
|
+
placement: 'bottom',
|
|
23
|
+
active: 'head',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
describe: '侧边栏模式 (含主导航)',
|
|
27
|
+
placement: 'bottom',
|
|
28
|
+
active: 'side',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
describe: '侧边栏模式 (不含主导航)',
|
|
32
|
+
placement: 'bottom',
|
|
33
|
+
active: 'single',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
describe: '侧边栏精简模式',
|
|
37
|
+
placement: 'bottom',
|
|
38
|
+
active: 'only-side',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
describe: '顶部精简模式',
|
|
42
|
+
placement: 'bottom',
|
|
43
|
+
active: 'only-head',
|
|
44
|
+
},
|
|
45
|
+
]);
|
|
46
|
+
|
|
47
|
+
function clickHandle(item: Settings.menu['menuMode']) {
|
|
48
|
+
if (item) {
|
|
49
|
+
menu.value = item;
|
|
50
|
+
settingsStore.globalSettings.menu.menuMode = item;
|
|
51
|
+
const jsonStr = JSON.stringify({
|
|
52
|
+
menu: {
|
|
53
|
+
menuMode: item,
|
|
54
|
+
},
|
|
55
|
+
});
|
|
56
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: jsonStr }).then((res: API.ResponseDataBoolean) => {
|
|
57
|
+
if (res.success) {
|
|
58
|
+
message.success('设置成功');
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
</script>
|
|
64
|
+
|
|
65
|
+
<template>
|
|
66
|
+
<div
|
|
67
|
+
w-full
|
|
68
|
+
h-full
|
|
69
|
+
p-10px
|
|
70
|
+
>
|
|
71
|
+
<div class="w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]">
|
|
72
|
+
<div class="bg-[#F0F4FF] h-[38px] pl-[16px] flex flex-row items-center dark:bg-[#32353B]">
|
|
73
|
+
<PubinfoIcon name="icon_layout" class="text-base mr-[6px]" :size="22" />
|
|
74
|
+
<span class="text-[16px] text-[#1d2129] dark:text-[#C9CDD4]">布局模式</span>
|
|
75
|
+
</div>
|
|
76
|
+
<div class="mt-[15px] flex-1 flex flex-row">
|
|
77
|
+
<div class="flex-none w-[110px] text-right font-400 text-[#4e5969] text-[14px] pt-10px dark:text-[#C9CDD4]">
|
|
78
|
+
模式选择
|
|
79
|
+
</div>
|
|
80
|
+
<div class="flex-auto grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px" aspect="[3/2]">
|
|
81
|
+
<div
|
|
82
|
+
v-for="mode in modeSide"
|
|
83
|
+
:key="mode.active"
|
|
84
|
+
class="item"
|
|
85
|
+
:class="[menu === mode.active ? 'active' : '', `item-${mode.active}`]"
|
|
86
|
+
aspect="[9/6]"
|
|
87
|
+
@click="clickHandle(mode.active)"
|
|
88
|
+
>
|
|
89
|
+
<div class="text-[#4E5969] text-[14px] dark:text-[#C9CDD4]">
|
|
90
|
+
{{ mode.describe }}
|
|
91
|
+
</div>
|
|
92
|
+
<div class="my-[6px] mode" :class="`mode-${mode.active}`">
|
|
93
|
+
<div class="mode-container" />
|
|
94
|
+
</div>
|
|
95
|
+
<div class="flex-1 w-[75%] rounded-[8px] jb py-[10px] flex justify-center">
|
|
96
|
+
<div class="layout-demo" />
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
</div>
|
|
102
|
+
</div>
|
|
103
|
+
</template>
|
|
104
|
+
|
|
105
|
+
<style lang="scss" scoped>
|
|
106
|
+
.item {
|
|
107
|
+
display: flex;
|
|
108
|
+
flex-direction: column;
|
|
109
|
+
place-items: center center;
|
|
110
|
+
padding-top: 26px;
|
|
111
|
+
cursor: pointer;
|
|
112
|
+
background: linear-gradient(180deg, var(--g-bg) 0%, var(--g-bg) 100%);
|
|
113
|
+
border: 1px solid var(--g-tabbar-tab-hover-bg);
|
|
114
|
+
border-radius: 8px;
|
|
115
|
+
|
|
116
|
+
.mode {
|
|
117
|
+
--at-apply: relative w-16 h-12 transition;
|
|
118
|
+
|
|
119
|
+
&::before,
|
|
120
|
+
&::after,
|
|
121
|
+
.mode-container {
|
|
122
|
+
--at-apply: absolute pointer-events-none;
|
|
123
|
+
|
|
124
|
+
border-width: 0.15rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&::before {
|
|
128
|
+
--at-apply: content-empty bg-ui-primary;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&::after {
|
|
132
|
+
--at-apply: content-empty bg-ui-primary/60;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.mode-container {
|
|
136
|
+
--at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
|
|
137
|
+
|
|
138
|
+
&::before {
|
|
139
|
+
--at-apply: content-empty absolute w-full h-full;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&-side {
|
|
144
|
+
&::before {
|
|
145
|
+
--at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&::after {
|
|
149
|
+
--at-apply: top-2 bottom-2 left-4.5 w-3;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.mode-container {
|
|
153
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
&-head {
|
|
158
|
+
&::before {
|
|
159
|
+
--at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&::after {
|
|
163
|
+
--at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.mode-container {
|
|
167
|
+
--at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
&-single {
|
|
172
|
+
&::after {
|
|
173
|
+
--at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.mode-container {
|
|
177
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
&-only-side {
|
|
182
|
+
&::before {
|
|
183
|
+
--at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.mode-container {
|
|
187
|
+
--at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
&-only-head {
|
|
192
|
+
&::before {
|
|
193
|
+
--at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.mode-container {
|
|
197
|
+
--at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.jb {
|
|
203
|
+
background: linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%);
|
|
204
|
+
|
|
205
|
+
.layout-demo {
|
|
206
|
+
width: 70%;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&-side {
|
|
211
|
+
.layout-demo {
|
|
212
|
+
background: url("@/assets/images/layout/item2.webp") no-repeat;
|
|
213
|
+
background-size: 100%;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
&-head {
|
|
218
|
+
.layout-demo {
|
|
219
|
+
background: url("@/assets/images/layout/item1.webp") no-repeat;
|
|
220
|
+
background-size: 100%;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&-single {
|
|
225
|
+
.layout-demo {
|
|
226
|
+
background: url("@/assets/images/layout/item3.webp") no-repeat;
|
|
227
|
+
background-size: 100%;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
&-only-side {
|
|
232
|
+
.layout-demo {
|
|
233
|
+
background: url("@/assets/images/layout/item4.webp") no-repeat;
|
|
234
|
+
background-size: 100%;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&-only-head {
|
|
239
|
+
.layout-demo {
|
|
240
|
+
background: url("@/assets/images/layout/item5.webp") no-repeat;
|
|
241
|
+
background-size: 100%;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&.active {
|
|
246
|
+
border: 2.6px solid rgb(var(--ui-primary));
|
|
247
|
+
border-radius: 8px;
|
|
248
|
+
box-shadow: 0 2.6px 13px 0 #59626940;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
[data-theme="dark"],
|
|
253
|
+
[data-theme="dracula"],
|
|
254
|
+
[data-theme="luxury"],
|
|
255
|
+
[data-theme="stone"],
|
|
256
|
+
[data-theme="night"],
|
|
257
|
+
[data-theme="synthwave"] {
|
|
258
|
+
.item {
|
|
259
|
+
background: #3a3e43;
|
|
260
|
+
border: 1px solid transparent;
|
|
261
|
+
// .jb {
|
|
262
|
+
// background: linear-gradient(180deg, #ffffff1a 0%, #ffffff00 100%);
|
|
263
|
+
// }
|
|
264
|
+
&-side {
|
|
265
|
+
.layout-demo {
|
|
266
|
+
background: url("@/assets/images/layout/item2_dark.webp") no-repeat;
|
|
267
|
+
background-size: 100%;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
&-head {
|
|
272
|
+
.layout-demo {
|
|
273
|
+
background: url("@/assets/images/layout/item1_dark.webp") no-repeat;
|
|
274
|
+
background-size: 100%;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&-single {
|
|
279
|
+
.layout-demo {
|
|
280
|
+
background: url("@/assets/images/layout/item3_dark.webp") no-repeat;
|
|
281
|
+
background-size: 100%;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&-only-side {
|
|
286
|
+
.layout-demo {
|
|
287
|
+
background: url("@/assets/images/layout/item4_dark.webp") no-repeat;
|
|
288
|
+
background-size: 100%;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
&-only-head {
|
|
293
|
+
.layout-demo {
|
|
294
|
+
background: url("@/assets/images/layout/item5_dark.webp") no-repeat;
|
|
295
|
+
background-size: 100%;
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
&.active {
|
|
300
|
+
border: 2.6px solid rgb(var(--ui-primary));
|
|
301
|
+
border-radius: 8px;
|
|
302
|
+
box-shadow: 0 2.6px 13px 0 #59626940;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
</style>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
defineProps({
|
|
3
|
+
browserName: {
|
|
4
|
+
type: String,
|
|
5
|
+
required: true,
|
|
6
|
+
},
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
function getBrowserType(browser: string) {
|
|
10
|
+
if (browser.includes('Chrome')) {
|
|
11
|
+
return 'chrome';
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
if (browser.includes('Edge')) {
|
|
15
|
+
return 'edge';
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
if (browser.includes('Safari')) {
|
|
19
|
+
return 'safari';
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
if (browser.includes('Internet Explorer')) {
|
|
23
|
+
return 'ie';
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return 'other';
|
|
27
|
+
}
|
|
28
|
+
</script>
|
|
29
|
+
|
|
30
|
+
<template>
|
|
31
|
+
<div flex items-center>
|
|
32
|
+
<PubinfoIcon :name="`browser-${getBrowserType(browserName)}`" class="text-20px mr-5px" />
|
|
33
|
+
<span>{{ browserName }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import BrowserType from './browserType.vue';
|
|
3
|
+
|
|
4
|
+
defineProps({
|
|
5
|
+
visible: Boolean,
|
|
6
|
+
data: Object,
|
|
7
|
+
});
|
|
8
|
+
const emit = defineEmits(['close']);
|
|
9
|
+
|
|
10
|
+
function notifyClose() {
|
|
11
|
+
emit('close');
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<a-drawer
|
|
17
|
+
:open="visible"
|
|
18
|
+
title="登录日志"
|
|
19
|
+
placement="right"
|
|
20
|
+
:width="900"
|
|
21
|
+
:footer-style="{ textAlign: 'right' }"
|
|
22
|
+
@close="notifyClose"
|
|
23
|
+
>
|
|
24
|
+
<div class="detail-info">
|
|
25
|
+
<a-descriptions :column="2">
|
|
26
|
+
<a-descriptions-item label="用户id">
|
|
27
|
+
{{ data?.userId }}
|
|
28
|
+
</a-descriptions-item>
|
|
29
|
+
<a-descriptions-item label="账号名">
|
|
30
|
+
{{ data?.loginName }}
|
|
31
|
+
</a-descriptions-item>
|
|
32
|
+
<a-descriptions-item label="用户姓名">
|
|
33
|
+
{{ data?.realName }}
|
|
34
|
+
</a-descriptions-item>
|
|
35
|
+
<a-descriptions-item label="登录组织名称">
|
|
36
|
+
{{ data?.orgName }}
|
|
37
|
+
</a-descriptions-item>
|
|
38
|
+
<a-descriptions-item label="登录IP">
|
|
39
|
+
{{ data?.loginIp }}
|
|
40
|
+
</a-descriptions-item>
|
|
41
|
+
<a-descriptions-item label="登录时间">
|
|
42
|
+
{{ data?.loginTime }}
|
|
43
|
+
</a-descriptions-item>
|
|
44
|
+
<a-descriptions-item label="登录类型">
|
|
45
|
+
{{ data?.loginType }}
|
|
46
|
+
</a-descriptions-item>
|
|
47
|
+
<a-descriptions-item label="操作设备/操作系统类型">
|
|
48
|
+
{{ data?.deviceType }}
|
|
49
|
+
</a-descriptions-item>
|
|
50
|
+
<a-descriptions-item label="登录浏览器">
|
|
51
|
+
<BrowserType :browser-name="data?.browserName" />
|
|
52
|
+
</a-descriptions-item>
|
|
53
|
+
<a-descriptions-item label="登录是否成功">
|
|
54
|
+
{{ data?.success ? '是' : '否' }}
|
|
55
|
+
</a-descriptions-item>
|
|
56
|
+
</a-descriptions>
|
|
57
|
+
</div>
|
|
58
|
+
</a-drawer>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<style lang="scss" scoped>
|
|
62
|
+
.detail-info {
|
|
63
|
+
:deep(.ant-descriptions-item-label) {
|
|
64
|
+
color: rgba($color: #000, $alpha: 60%);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:deep(.ant-descriptions-item-content) {
|
|
68
|
+
color: rgba($color: #000, $alpha: 100%);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
</style>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import BrowserType from './browserType.vue';
|
|
3
|
+
|
|
4
|
+
defineProps({
|
|
5
|
+
visible: Boolean,
|
|
6
|
+
data: Object,
|
|
7
|
+
});
|
|
8
|
+
const emit = defineEmits(['close']);
|
|
9
|
+
|
|
10
|
+
function notifyClose() {
|
|
11
|
+
emit('close');
|
|
12
|
+
}
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<a-drawer
|
|
17
|
+
:open="visible"
|
|
18
|
+
title="操作日志"
|
|
19
|
+
placement="right"
|
|
20
|
+
:width="900"
|
|
21
|
+
:footer-style="{ textAlign: 'right' }"
|
|
22
|
+
@close="notifyClose"
|
|
23
|
+
>
|
|
24
|
+
<div class="detail-info">
|
|
25
|
+
<a-descriptions :column="2">
|
|
26
|
+
<a-descriptions-item label="操作说明">
|
|
27
|
+
{{ data?.title }}
|
|
28
|
+
</a-descriptions-item>
|
|
29
|
+
<a-descriptions-item label="操作类型">
|
|
30
|
+
{{ data?.operateType }}
|
|
31
|
+
</a-descriptions-item>
|
|
32
|
+
<a-descriptions-item label="操作时间">
|
|
33
|
+
{{ data?.operateTime }}
|
|
34
|
+
</a-descriptions-item>
|
|
35
|
+
<a-descriptions-item label="操作模块">
|
|
36
|
+
{{ data?.moduleName }}
|
|
37
|
+
</a-descriptions-item>
|
|
38
|
+
<a-descriptions-item label="请求参数">
|
|
39
|
+
{{ data?.requestParams }}
|
|
40
|
+
</a-descriptions-item>
|
|
41
|
+
<a-descriptions-item label="请求方法">
|
|
42
|
+
{{ data?.requestMethod }}
|
|
43
|
+
</a-descriptions-item>
|
|
44
|
+
<a-descriptions-item label="请求地址">
|
|
45
|
+
{{ data?.requestUri }}
|
|
46
|
+
</a-descriptions-item>
|
|
47
|
+
<a-descriptions-item label="操作人IP">
|
|
48
|
+
{{ data?.remoteAddr }}
|
|
49
|
+
</a-descriptions-item>
|
|
50
|
+
<a-descriptions-item label="服务端IP">
|
|
51
|
+
{{ data?.serverAddr }}
|
|
52
|
+
</a-descriptions-item>
|
|
53
|
+
<a-descriptions-item label="是否异常">
|
|
54
|
+
{{ data?.success ? '否' : '是' }}
|
|
55
|
+
</a-descriptions-item>
|
|
56
|
+
<a-descriptions-item label="执行时间">
|
|
57
|
+
{{ data?.executeTime }}ms
|
|
58
|
+
</a-descriptions-item>
|
|
59
|
+
<a-descriptions-item label="操作设备/操作系统类型">
|
|
60
|
+
{{ data?.deviceType }}
|
|
61
|
+
</a-descriptions-item>
|
|
62
|
+
<a-descriptions-item label="浏览器名称">
|
|
63
|
+
<BrowserType :browser-name="data?.browserName" />
|
|
64
|
+
</a-descriptions-item>
|
|
65
|
+
</a-descriptions>
|
|
66
|
+
</div>
|
|
67
|
+
</a-drawer>
|
|
68
|
+
</template>
|
|
69
|
+
|
|
70
|
+
<style lang="scss" scoped>
|
|
71
|
+
.detail-info {
|
|
72
|
+
:deep(.ant-descriptions-item-label) {
|
|
73
|
+
color: rgba($color: #000, $alpha: 60%);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
:deep(.ant-descriptions-item-content) {
|
|
77
|
+
color: rgba($color: #000, $alpha: 100%);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
</style>
|