@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,239 @@
|
|
|
1
|
+
<script setup lang="tsx">
|
|
2
|
+
import type { ProColumns } from '@pubinfo/pro-components';
|
|
3
|
+
import { postLogLoginPage } from '@/api/modules/log';
|
|
4
|
+
import { ProTable } from '@pubinfo/pro-components';
|
|
5
|
+
import LoginHistoryDetail from './components/loginHistoryDetail.vue';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'LoginHistory',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const { auth } = useAuth();
|
|
12
|
+
const tableRef = ref();
|
|
13
|
+
const drawerVisible = ref(false);
|
|
14
|
+
const detailData = ref<API.PubLoginLogDto>();
|
|
15
|
+
|
|
16
|
+
const columns: ProColumns<API.PubLoginLogDto> = [
|
|
17
|
+
{
|
|
18
|
+
valueType: 'a-input',
|
|
19
|
+
hideInTable: true,
|
|
20
|
+
title: '人员账号',
|
|
21
|
+
dataIndex: 'loginName',
|
|
22
|
+
fieldProps: {
|
|
23
|
+
placeholder: '请输入',
|
|
24
|
+
allowClear: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
valueType: 'a-input',
|
|
29
|
+
hideInTable: true,
|
|
30
|
+
title: '人员姓名',
|
|
31
|
+
dataIndex: 'realName',
|
|
32
|
+
fieldProps: {
|
|
33
|
+
placeholder: '请输入',
|
|
34
|
+
allowClear: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
valueType: 'a-input',
|
|
39
|
+
hideInTable: true,
|
|
40
|
+
title: '部门',
|
|
41
|
+
dataIndex: 'orgName',
|
|
42
|
+
fieldProps: {
|
|
43
|
+
placeholder: '请输入',
|
|
44
|
+
allowClear: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
valueType: 'a-input',
|
|
49
|
+
hideInTable: true,
|
|
50
|
+
title: '登录IP',
|
|
51
|
+
dataIndex: 'loginIp',
|
|
52
|
+
fieldProps: {
|
|
53
|
+
placeholder: '请输入',
|
|
54
|
+
allowClear: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
valueType: 'a-range-picker',
|
|
59
|
+
hideInTable: true,
|
|
60
|
+
title: '登录时间',
|
|
61
|
+
dataIndex: 'loginTime',
|
|
62
|
+
fieldProps: {
|
|
63
|
+
placeholder: ['开始时间', '结束时间'],
|
|
64
|
+
showTime: true,
|
|
65
|
+
format: 'YYYY-MM-DD HH:mm:ss',
|
|
66
|
+
allowClear: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
hideInSearch: true,
|
|
71
|
+
width: 60,
|
|
72
|
+
title: '序号',
|
|
73
|
+
customRender: ({ index }) => index + 1,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
hideInSearch: true,
|
|
77
|
+
title: '人员账号',
|
|
78
|
+
dataIndex: 'loginName',
|
|
79
|
+
ellipsis: true,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hideInSearch: true,
|
|
83
|
+
title: '人员姓名',
|
|
84
|
+
dataIndex: 'realName',
|
|
85
|
+
ellipsis: true,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
hideInSearch: true,
|
|
89
|
+
title: '登录方式',
|
|
90
|
+
dataIndex: 'loginType',
|
|
91
|
+
ellipsis: true,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
hideInSearch: true,
|
|
95
|
+
title: '设备类型',
|
|
96
|
+
dataIndex: 'deviceType',
|
|
97
|
+
ellipsis: true,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
hideInSearch: true,
|
|
101
|
+
title: '登录时间',
|
|
102
|
+
dataIndex: 'loginTime',
|
|
103
|
+
ellipsis: true,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
hideInSearch: true,
|
|
107
|
+
title: '登录人部门',
|
|
108
|
+
dataIndex: 'orgName',
|
|
109
|
+
ellipsis: true,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
hideInSearch: true,
|
|
113
|
+
title: '登录IP',
|
|
114
|
+
dataIndex: 'loginIp',
|
|
115
|
+
ellipsis: true,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
hideInSearch: true,
|
|
119
|
+
title: '登录状态',
|
|
120
|
+
dataIndex: 'success',
|
|
121
|
+
ellipsis: true,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
hideInSearch: true,
|
|
125
|
+
title: '操作',
|
|
126
|
+
dataIndex: 'action',
|
|
127
|
+
width: 100,
|
|
128
|
+
fixed: 'right',
|
|
129
|
+
hideInTable() {
|
|
130
|
+
return !auth('login_history_view');
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
];
|
|
134
|
+
|
|
135
|
+
onMounted(getListData);
|
|
136
|
+
|
|
137
|
+
async function request(params: any) {
|
|
138
|
+
const { current, pageSize, loginName, loginTime, realName, orgName, loginIp } = params;
|
|
139
|
+
const ps: any = {
|
|
140
|
+
pageSize,
|
|
141
|
+
currentPage: current,
|
|
142
|
+
doSearchTotal: true,
|
|
143
|
+
};
|
|
144
|
+
if (loginName) {
|
|
145
|
+
Object.assign(ps, { loginName });
|
|
146
|
+
}
|
|
147
|
+
if (realName) {
|
|
148
|
+
Object.assign(ps, { realName });
|
|
149
|
+
}
|
|
150
|
+
if (orgName) {
|
|
151
|
+
Object.assign(ps, { orgName });
|
|
152
|
+
}
|
|
153
|
+
if (loginIp) {
|
|
154
|
+
Object.assign(ps, { loginIp });
|
|
155
|
+
}
|
|
156
|
+
if (loginTime && loginTime.length === 2) {
|
|
157
|
+
Object.assign(ps, {
|
|
158
|
+
loginStartTime: loginTime[0].format('YYYY-MM-DD HH:mm:ss'),
|
|
159
|
+
loginEndTime: loginTime[1].format('YYYY-MM-DD HH:mm:ss'),
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const res: API.ResponseDataPageDataPubLoginLogDto = await postLogLoginPage(ps);
|
|
164
|
+
return {
|
|
165
|
+
success: res.success,
|
|
166
|
+
data: res.data?.records ?? [],
|
|
167
|
+
total: res.data?.total ?? 0,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function getListData() {
|
|
172
|
+
tableRef.value.reload();
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function showDetailDrawer(record: API.PubLoginLogDto) {
|
|
176
|
+
drawerVisible.value = true;
|
|
177
|
+
detailData.value = record;
|
|
178
|
+
}
|
|
179
|
+
</script>
|
|
180
|
+
|
|
181
|
+
<template>
|
|
182
|
+
<div
|
|
183
|
+
w-full
|
|
184
|
+
h-full
|
|
185
|
+
py-10px
|
|
186
|
+
px-10px
|
|
187
|
+
flex
|
|
188
|
+
flex-col
|
|
189
|
+
>
|
|
190
|
+
<ProTable
|
|
191
|
+
ref="tableRef"
|
|
192
|
+
row-key="id"
|
|
193
|
+
:request="request"
|
|
194
|
+
:columns="columns"
|
|
195
|
+
auto-height
|
|
196
|
+
:scroll="{ x: 1000 }"
|
|
197
|
+
>
|
|
198
|
+
<template #bodyCell="{ column, record }">
|
|
199
|
+
<template v-if="column.dataIndex === 'success'">
|
|
200
|
+
<div class="flex items-center">
|
|
201
|
+
<i class="status-mark" :class="[{ active: record.success }]" />
|
|
202
|
+
<span class="ml-4px">{{ record.success ? '成功' : '失败' }}</span>
|
|
203
|
+
</div>
|
|
204
|
+
</template>
|
|
205
|
+
<template v-if="column.dataIndex === 'action'">
|
|
206
|
+
<a-space>
|
|
207
|
+
<a
|
|
208
|
+
class="flex items-center"
|
|
209
|
+
@click="() => showDetailDrawer(record)"
|
|
210
|
+
>
|
|
211
|
+
<PubinfoIcon name="view" class="text-20px" />
|
|
212
|
+
<span class="ml-4px">查看</span>
|
|
213
|
+
</a>
|
|
214
|
+
</a-space>
|
|
215
|
+
</template>
|
|
216
|
+
</template>
|
|
217
|
+
</ProTable>
|
|
218
|
+
<LoginHistoryDetail
|
|
219
|
+
:visible="drawerVisible"
|
|
220
|
+
:data="detailData"
|
|
221
|
+
@close="drawerVisible = false"
|
|
222
|
+
/>
|
|
223
|
+
</div>
|
|
224
|
+
</template>
|
|
225
|
+
|
|
226
|
+
<style lang="scss" scoped>
|
|
227
|
+
.status-mark {
|
|
228
|
+
display: inline-block;
|
|
229
|
+
width: 8px;
|
|
230
|
+
height: 8px;
|
|
231
|
+
margin-right: 4px;
|
|
232
|
+
background-color: #aeaeae;
|
|
233
|
+
border-radius: 50%;
|
|
234
|
+
|
|
235
|
+
&.active {
|
|
236
|
+
background: #01d689;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
</style>
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
<script setup lang="tsx">
|
|
2
|
+
import type { ProColumns } from '@pubinfo/pro-components';
|
|
3
|
+
import { postLogOperatePage } from '@/api/modules/log';
|
|
4
|
+
import { ProTable } from '@pubinfo/pro-components';
|
|
5
|
+
import OperateHistoryDetail from './components/operateHistoryDetail.vue';
|
|
6
|
+
|
|
7
|
+
defineOptions({
|
|
8
|
+
name: 'OperateHistory',
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
const { auth } = useAuth();
|
|
12
|
+
const tableRef = ref();
|
|
13
|
+
const drawerVisible = ref(false);
|
|
14
|
+
const detailData = ref<API.PubOperateLogDto>();
|
|
15
|
+
|
|
16
|
+
const columns: ProColumns<API.PubOperateLogDto> = [
|
|
17
|
+
{
|
|
18
|
+
valueType: 'a-input',
|
|
19
|
+
hideInTable: true,
|
|
20
|
+
title: '模块标题',
|
|
21
|
+
dataIndex: 'moduleName',
|
|
22
|
+
fieldProps: {
|
|
23
|
+
placeholder: '请输入',
|
|
24
|
+
allowClear: true,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
valueType: 'a-input',
|
|
29
|
+
hideInTable: true,
|
|
30
|
+
title: '操作人姓名 ',
|
|
31
|
+
dataIndex: 'realName',
|
|
32
|
+
fieldProps: {
|
|
33
|
+
placeholder: '请输入',
|
|
34
|
+
allowClear: true,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
valueType: 'a-input',
|
|
39
|
+
hideInTable: true,
|
|
40
|
+
title: '操作人账号 ',
|
|
41
|
+
dataIndex: 'loginName',
|
|
42
|
+
fieldProps: {
|
|
43
|
+
placeholder: '请输入',
|
|
44
|
+
allowClear: true,
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
valueType: 'a-input',
|
|
49
|
+
hideInTable: true,
|
|
50
|
+
title: '部门',
|
|
51
|
+
dataIndex: 'orgName',
|
|
52
|
+
fieldProps: {
|
|
53
|
+
placeholder: '请输入',
|
|
54
|
+
allowClear: true,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
valueType: 'a-range-picker',
|
|
59
|
+
hideInTable: true,
|
|
60
|
+
title: '操作时间',
|
|
61
|
+
dataIndex: 'operateTime',
|
|
62
|
+
fieldProps: {
|
|
63
|
+
placeholder: ['开始时间', '结束时间'],
|
|
64
|
+
showTime: true,
|
|
65
|
+
format: 'YYYY-MM-DD HH:mm:ss',
|
|
66
|
+
allowClear: true,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
hideInSearch: true,
|
|
71
|
+
width: 60,
|
|
72
|
+
title: '序号',
|
|
73
|
+
customRender: ({ index }) => index + 1,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
hideInSearch: true,
|
|
77
|
+
title: '模块标题',
|
|
78
|
+
dataIndex: 'moduleName',
|
|
79
|
+
ellipsis: true,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
hideInSearch: true,
|
|
83
|
+
width: 400,
|
|
84
|
+
title: '来源渠道',
|
|
85
|
+
dataIndex: 'requestUri',
|
|
86
|
+
ellipsis: true,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
hideInSearch: true,
|
|
90
|
+
title: '操作时间',
|
|
91
|
+
dataIndex: 'operateTime',
|
|
92
|
+
ellipsis: true,
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
hideInSearch: true,
|
|
96
|
+
title: '操作人姓名',
|
|
97
|
+
dataIndex: 'realName',
|
|
98
|
+
ellipsis: true,
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
hideInSearch: true,
|
|
102
|
+
title: '操作人账号',
|
|
103
|
+
dataIndex: 'loginName',
|
|
104
|
+
ellipsis: true,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
hideInSearch: true,
|
|
108
|
+
title: '操作人部门',
|
|
109
|
+
dataIndex: 'orgName',
|
|
110
|
+
ellipsis: true,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
hideInSearch: true,
|
|
114
|
+
title: '操作状态',
|
|
115
|
+
dataIndex: 'success',
|
|
116
|
+
ellipsis: true,
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
hideInSearch: true,
|
|
120
|
+
title: '操作',
|
|
121
|
+
dataIndex: 'action',
|
|
122
|
+
width: 100,
|
|
123
|
+
fixed: 'right',
|
|
124
|
+
hideInTable() {
|
|
125
|
+
return !auth('operate_history_view');
|
|
126
|
+
},
|
|
127
|
+
},
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
onMounted(getListData);
|
|
131
|
+
|
|
132
|
+
async function request(params: any) {
|
|
133
|
+
const { current, pageSize, moduleName, realName, loginName, orgName, operateTime } = params;
|
|
134
|
+
const ps: any = {
|
|
135
|
+
pageSize,
|
|
136
|
+
currentPage: current,
|
|
137
|
+
doSearchTotal: true,
|
|
138
|
+
};
|
|
139
|
+
if (moduleName) {
|
|
140
|
+
Object.assign(ps, { moduleName });
|
|
141
|
+
}
|
|
142
|
+
if (realName) {
|
|
143
|
+
Object.assign(ps, { realName });
|
|
144
|
+
}
|
|
145
|
+
if (orgName) {
|
|
146
|
+
Object.assign(ps, { orgName });
|
|
147
|
+
}
|
|
148
|
+
if (loginName) {
|
|
149
|
+
Object.assign(ps, { loginName });
|
|
150
|
+
}
|
|
151
|
+
if (operateTime && operateTime.length === 2) {
|
|
152
|
+
Object.assign(ps, {
|
|
153
|
+
operateStartTime: operateTime[0].format('YYYY-MM-DD HH:mm:ss'),
|
|
154
|
+
operateEndTime: operateTime[1].format('YYYY-MM-DD HH:mm:ss'),
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
const res: API.ResponseDataPageDataPubOperateLogDto = await postLogOperatePage(ps);
|
|
158
|
+
return {
|
|
159
|
+
success: res.success,
|
|
160
|
+
data: res.data?.records ?? [],
|
|
161
|
+
total: res.data?.total ?? 0,
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
function getListData() {
|
|
166
|
+
tableRef.value.reload();
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function showDetailDrawer(record: API.PubOperateLogDto) {
|
|
170
|
+
drawerVisible.value = true;
|
|
171
|
+
detailData.value = record;
|
|
172
|
+
}
|
|
173
|
+
</script>
|
|
174
|
+
|
|
175
|
+
<template>
|
|
176
|
+
<div
|
|
177
|
+
w-full
|
|
178
|
+
h-full
|
|
179
|
+
py-10px
|
|
180
|
+
px-10px
|
|
181
|
+
flex
|
|
182
|
+
flex-col
|
|
183
|
+
>
|
|
184
|
+
<ProTable
|
|
185
|
+
ref="tableRef"
|
|
186
|
+
row-key="id"
|
|
187
|
+
:request="request"
|
|
188
|
+
:columns="columns"
|
|
189
|
+
auto-height
|
|
190
|
+
:scroll="{ x: 1000 }"
|
|
191
|
+
>
|
|
192
|
+
<template #bodyCell="{ column, record }">
|
|
193
|
+
<template v-if="column.dataIndex === 'success'">
|
|
194
|
+
<div class="flex items-center">
|
|
195
|
+
<i class="status-mark" :class="[{ active: record.success }]" />
|
|
196
|
+
<span class="ml-4px">{{ record.success ? '正常' : '异常' }}</span>
|
|
197
|
+
</div>
|
|
198
|
+
</template>
|
|
199
|
+
<template v-if="column.dataIndex === 'action'">
|
|
200
|
+
<a-space>
|
|
201
|
+
<a
|
|
202
|
+
class="flex items-center"
|
|
203
|
+
@click="() => showDetailDrawer(record)"
|
|
204
|
+
>
|
|
205
|
+
<PubinfoIcon name="view" class="text-20px" />
|
|
206
|
+
<span class="ml-4px">查看</span>
|
|
207
|
+
</a>
|
|
208
|
+
</a-space>
|
|
209
|
+
</template>
|
|
210
|
+
</template>
|
|
211
|
+
</ProTable>
|
|
212
|
+
<OperateHistoryDetail
|
|
213
|
+
:visible="drawerVisible"
|
|
214
|
+
:data="detailData"
|
|
215
|
+
@close="drawerVisible = false"
|
|
216
|
+
/>
|
|
217
|
+
</div>
|
|
218
|
+
</template>
|
|
219
|
+
|
|
220
|
+
<style lang="scss" scoped>
|
|
221
|
+
.status-mark {
|
|
222
|
+
display: inline-block;
|
|
223
|
+
width: 8px;
|
|
224
|
+
height: 8px;
|
|
225
|
+
margin-right: 4px;
|
|
226
|
+
background-color: #aeaeae;
|
|
227
|
+
border-radius: 50%;
|
|
228
|
+
|
|
229
|
+
&.active {
|
|
230
|
+
background: #01d689;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import darkEnableHotkeysData from '@/assets/lottie/menu/dark/enableHotkeys.json?url';
|
|
2
|
+
import darkEnableSubMenuCollapseButtonData from '@/assets/lottie/menu/dark/enableSubMenuCollapseButton.json?url';
|
|
3
|
+
import darkIsRoundedData from '@/assets/lottie/menu/dark/isRounded.json?url';
|
|
4
|
+
import darkMenuActiveStyleData from '@/assets/lottie/menu/dark/menuActiveStyle.json?url';
|
|
5
|
+
import darkSubMenuCollapseData from '@/assets/lottie/menu/dark/subMenuCollapse.json?url';
|
|
6
|
+
import darkSubMenuUniqueOpenedData from '@/assets/lottie/menu/dark/subMenuUniqueOpened.json?url';
|
|
7
|
+
import lightEnableHotkeysData from '@/assets/lottie/menu/light/enableHotkeys.json?url';
|
|
8
|
+
import lightEnableSubMenuCollapseButtonData from '@/assets/lottie/menu/light/enableSubMenuCollapseButton.json?url';
|
|
9
|
+
import lightIsRoundedData from '@/assets/lottie/menu/light/isRounded.json?url';
|
|
10
|
+
import lightMenuActiveStyleData from '@/assets/lottie/menu/light/menuActiveStyle.json?url';
|
|
11
|
+
import lightSubMenuCollapseData from '@/assets/lottie/menu/light/subMenuCollapse.json?url';
|
|
12
|
+
import lightSubMenuUniqueOpenedData from '@/assets/lottie/menu/light/subMenuUniqueOpened.json?url';
|
|
13
|
+
|
|
14
|
+
export {
|
|
15
|
+
darkEnableHotkeysData,
|
|
16
|
+
darkEnableSubMenuCollapseButtonData,
|
|
17
|
+
darkIsRoundedData,
|
|
18
|
+
darkMenuActiveStyleData,
|
|
19
|
+
darkSubMenuCollapseData,
|
|
20
|
+
darkSubMenuUniqueOpenedData,
|
|
21
|
+
lightEnableHotkeysData,
|
|
22
|
+
lightEnableSubMenuCollapseButtonData,
|
|
23
|
+
lightIsRoundedData,
|
|
24
|
+
lightMenuActiveStyleData,
|
|
25
|
+
lightSubMenuCollapseData,
|
|
26
|
+
lightSubMenuUniqueOpenedData,
|
|
27
|
+
};
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { postSysconfigAddOrEidtSysThemeStyleConfig } from '@/api/modules/configData';
|
|
3
|
+
import { useSettingsStore } from '@/stores';
|
|
4
|
+
|
|
5
|
+
import { message } from 'ant-design-vue';
|
|
6
|
+
import SetItem from '../components/setItem.vue';
|
|
7
|
+
import {
|
|
8
|
+
darkEnableHotkeysData,
|
|
9
|
+
darkEnableSubMenuCollapseButtonData,
|
|
10
|
+
darkIsRoundedData,
|
|
11
|
+
darkMenuActiveStyleData,
|
|
12
|
+
darkSubMenuCollapseData,
|
|
13
|
+
darkSubMenuUniqueOpenedData,
|
|
14
|
+
lightEnableHotkeysData,
|
|
15
|
+
lightEnableSubMenuCollapseButtonData,
|
|
16
|
+
lightIsRoundedData,
|
|
17
|
+
lightMenuActiveStyleData,
|
|
18
|
+
lightSubMenuCollapseData,
|
|
19
|
+
lightSubMenuUniqueOpenedData,
|
|
20
|
+
} from './animationData.ts';
|
|
21
|
+
|
|
22
|
+
defineOptions({
|
|
23
|
+
name: 'MenuAnimationSetting',
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
const settingsStore = useSettingsStore();
|
|
27
|
+
const menuMode = toRef(settingsStore.globalSettings.menu, 'menuMode');
|
|
28
|
+
|
|
29
|
+
const styleOptions = [
|
|
30
|
+
{ icon: 'i-jam-stop-sign', value: '' },
|
|
31
|
+
{ icon: ['head', 'only-head'].includes(menuMode.value) ? 'i-ep-caret-top' : 'i-ep-caret-left', value: 'arrow' },
|
|
32
|
+
{ icon: ['side', 'only-side'].includes(menuMode.value) ? 'i-tabler-minus-vertical' : 'i-tabler-minus', value: 'line' },
|
|
33
|
+
{ icon: 'i-icon-park-outline-dot', value: 'dot' },
|
|
34
|
+
];
|
|
35
|
+
|
|
36
|
+
type Val = Exclude<Settings.menu['menuActiveStyle'], undefined>;
|
|
37
|
+
|
|
38
|
+
const menuAnimationList = reactive<
|
|
39
|
+
{
|
|
40
|
+
type: string
|
|
41
|
+
name: string
|
|
42
|
+
descripe: string
|
|
43
|
+
open: boolean
|
|
44
|
+
activeStyle: Val
|
|
45
|
+
styleOptions?: typeof styleOptions
|
|
46
|
+
lightData: string
|
|
47
|
+
darkData: string
|
|
48
|
+
}[]
|
|
49
|
+
>([
|
|
50
|
+
{
|
|
51
|
+
type: 'switch',
|
|
52
|
+
name: '次导航保持展开一个',
|
|
53
|
+
descripe: '开启该功能后,次导航只保持单个菜单的展开',
|
|
54
|
+
open: settingsStore.globalSettings.menu.subMenuUniqueOpened,
|
|
55
|
+
activeStyle: '',
|
|
56
|
+
lightData: lightSubMenuUniqueOpenedData,
|
|
57
|
+
darkData: darkSubMenuUniqueOpenedData,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'switch',
|
|
61
|
+
name: '次导航是否折叠',
|
|
62
|
+
descripe: '',
|
|
63
|
+
open: settingsStore.globalSettings.menu.subMenuCollapse,
|
|
64
|
+
activeStyle: '',
|
|
65
|
+
lightData: lightSubMenuCollapseData,
|
|
66
|
+
darkData: darkSubMenuCollapseData,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'switch',
|
|
70
|
+
name: '显示次导航折叠按钮',
|
|
71
|
+
descripe: '',
|
|
72
|
+
open: settingsStore.globalSettings.menu.enableSubMenuCollapseButton,
|
|
73
|
+
activeStyle: '',
|
|
74
|
+
lightData: lightEnableSubMenuCollapseButtonData,
|
|
75
|
+
darkData: darkEnableSubMenuCollapseButtonData,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
type: 'switch',
|
|
79
|
+
name: '是否圆角',
|
|
80
|
+
descripe: '',
|
|
81
|
+
open: settingsStore.globalSettings.menu.isRounded,
|
|
82
|
+
activeStyle: '',
|
|
83
|
+
lightData: lightIsRoundedData,
|
|
84
|
+
darkData: darkIsRoundedData,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
type: 'check',
|
|
88
|
+
name: '激活风格',
|
|
89
|
+
descripe: '',
|
|
90
|
+
open: true,
|
|
91
|
+
activeStyle: settingsStore.globalSettings.menu.menuActiveStyle,
|
|
92
|
+
styleOptions,
|
|
93
|
+
lightData: lightMenuActiveStyleData,
|
|
94
|
+
darkData: darkMenuActiveStyleData,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
type: 'switch',
|
|
98
|
+
name: '是否启用快捷键',
|
|
99
|
+
descripe: '',
|
|
100
|
+
open: settingsStore.globalSettings.menu.enableHotkeys,
|
|
101
|
+
activeStyle: '',
|
|
102
|
+
lightData: lightEnableHotkeysData,
|
|
103
|
+
darkData: darkEnableHotkeysData,
|
|
104
|
+
},
|
|
105
|
+
]);
|
|
106
|
+
|
|
107
|
+
let jsonStr = '';
|
|
108
|
+
function onChange(index: number, ck: boolean | Val) {
|
|
109
|
+
switch (index) {
|
|
110
|
+
case 0:
|
|
111
|
+
settingsStore.globalSettings.menu.subMenuUniqueOpened = ck as boolean;
|
|
112
|
+
jsonStr = JSON.stringify({
|
|
113
|
+
menu: {
|
|
114
|
+
subMenuUniqueOpened: ck,
|
|
115
|
+
},
|
|
116
|
+
});
|
|
117
|
+
break;
|
|
118
|
+
case 1:
|
|
119
|
+
settingsStore.globalSettings.menu.subMenuCollapse = ck as boolean;
|
|
120
|
+
jsonStr = JSON.stringify({
|
|
121
|
+
menu: {
|
|
122
|
+
subMenuCollapse: ck,
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
break;
|
|
126
|
+
case 2:
|
|
127
|
+
settingsStore.globalSettings.menu.enableSubMenuCollapseButton = ck as boolean;
|
|
128
|
+
jsonStr = JSON.stringify({
|
|
129
|
+
menu: {
|
|
130
|
+
enableSubMenuCollapseButton: ck,
|
|
131
|
+
},
|
|
132
|
+
});
|
|
133
|
+
break;
|
|
134
|
+
case 3:
|
|
135
|
+
settingsStore.globalSettings.menu.isRounded = ck as boolean;
|
|
136
|
+
jsonStr = JSON.stringify({
|
|
137
|
+
menu: {
|
|
138
|
+
isRounded: ck,
|
|
139
|
+
},
|
|
140
|
+
});
|
|
141
|
+
break;
|
|
142
|
+
case 4:
|
|
143
|
+
settingsStore.globalSettings.menu.menuActiveStyle = ck as Val;
|
|
144
|
+
jsonStr = JSON.stringify({
|
|
145
|
+
menu: {
|
|
146
|
+
menuActiveStyle: ck,
|
|
147
|
+
},
|
|
148
|
+
});
|
|
149
|
+
break;
|
|
150
|
+
case 5:
|
|
151
|
+
settingsStore.globalSettings.menu.enableHotkeys = ck as boolean;
|
|
152
|
+
jsonStr = JSON.stringify({
|
|
153
|
+
menu: {
|
|
154
|
+
enableHotkeys: ck,
|
|
155
|
+
},
|
|
156
|
+
});
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
setStyle(jsonStr);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
function setStyle(jsonStr: string) {
|
|
163
|
+
postSysconfigAddOrEidtSysThemeStyleConfig({ content: jsonStr }).then((res: API.ResponseDataBoolean) => {
|
|
164
|
+
if (res.success) {
|
|
165
|
+
message.success('设置成功');
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
</script>
|
|
170
|
+
|
|
171
|
+
<template>
|
|
172
|
+
<div
|
|
173
|
+
w-full
|
|
174
|
+
h-full
|
|
175
|
+
p-10px
|
|
176
|
+
>
|
|
177
|
+
<div class="w-full h-full bg-white overflow-y-auto p-10px flex flex-col box-border dark:bg-[#141414]">
|
|
178
|
+
<div class="h-[38px] pl-[16px] flex flex-row items-center bar-header">
|
|
179
|
+
<PubinfoIcon name="icon_menu" class="text-base mr-[6px]" :size="22" />
|
|
180
|
+
<span class="text-[16px] text-[#1d2129] dark:text-[#C9CDD4]">导航栏</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="mt-[22px] grid grid-cols-3 gap-[20px] px-30px w-full h-0 max-w-1500px" aspect="[3/2] ">
|
|
183
|
+
<SetItem
|
|
184
|
+
v-for="(item, index) in menuAnimationList"
|
|
185
|
+
:key="item.name"
|
|
186
|
+
class="mb-20px"
|
|
187
|
+
aspect="[9/6]"
|
|
188
|
+
:name="item.name"
|
|
189
|
+
:descripe="item.descripe"
|
|
190
|
+
:open="item.open"
|
|
191
|
+
:type="item.type"
|
|
192
|
+
:active-style="item.activeStyle"
|
|
193
|
+
:style-options="item.styleOptions"
|
|
194
|
+
:light-animation-data="item.lightData"
|
|
195
|
+
:dark-animation-data="item.darkData"
|
|
196
|
+
@change="(val: Val) => onChange(index, val)"
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
</div>
|
|
200
|
+
</div>
|
|
201
|
+
</template>
|
|
202
|
+
|
|
203
|
+
<style lang="scss" scoped>
|
|
204
|
+
.bar-header {
|
|
205
|
+
background: var(--g-bg);
|
|
206
|
+
}
|
|
207
|
+
</style>
|