From b5c1614fe473330ceca8b7cff0f1802e19bd5039 Mon Sep 17 00:00:00 2001
From: Sanakey <714737083@qq.com>
Date: 星期一, 30 九月 2024 13:39:08 +0800
Subject: [PATCH] feat:添加部分线索接口,完善客户相关页面

---
 src/settings/projectSetting.ts |  125 ++++++++++++++++++++++++++++++++++-------
 1 files changed, 104 insertions(+), 21 deletions(-)

diff --git a/src/settings/projectSetting.ts b/src/settings/projectSetting.ts
index db87780..bb30f0c 100644
--- a/src/settings/projectSetting.ts
+++ b/src/settings/projectSetting.ts
@@ -1,175 +1,258 @@
-import type { ProjectConfig } from '/#/config';
-import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '/@/enums/menuEnum';
-import { CacheTypeEnum } from '/@/enums/cacheEnum';
+import type { ProjectConfig } from '#/config';
+import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '@/enums/menuEnum';
+import { CacheTypeEnum } from '@/enums/cacheEnum';
 import {
   ContentEnum,
   PermissionModeEnum,
   ThemeEnum,
   RouterTransitionEnum,
   SettingButtonPositionEnum,
-} from '/@/enums/appEnum';
-import { primaryColor, themeMode } from '../../build/config/themeConfig';
+  SessionTimeoutProcessingEnum,
+} from '@/enums/appEnum';
+import {
+  SIDE_BAR_BG_COLOR_LIST,
+  HEADER_PRESET_BG_COLOR_LIST,
+  APP_PRESET_COLOR_LIST,
+} from './designSetting';
 
 // ! You need to clear the browser cache after the change
+// ! 鏀瑰姩鍚庨渶瑕佹竻绌烘祻瑙堝櫒缂撳瓨
 const setting: ProjectConfig = {
   // Whether to show the configuration button
+  // 鏄惁鏄剧ずSettingButton
   showSettingButton: true,
 
+  // Whether to show the theme switch button
+  // 鏄惁鏄剧ず涓婚鍒囨崲鎸夐挳
+  showDarkModeToggle: true,
+
   // `Settings` button position
+  // 璁剧疆鎸夐挳浣嶇疆 鍙�夐」
+  // SettingButtonPositionEnum.AUTO: 鑷姩閫夋嫨
+  // SettingButtonPositionEnum.HEADER: 浣嶄簬澶撮儴
+  // SettingButtonPositionEnum.FIXED: 鍥哄畾鍦ㄥ彸渚�
   settingButtonPosition: SettingButtonPositionEnum.AUTO,
 
   // Permission mode
-  permissionMode: PermissionModeEnum.ROLE,
+  // 鏉冮檺妯″紡,榛樿鍓嶇瑙掕壊鏉冮檺妯″紡
+  // ROUTE_MAPPING: 鍓嶇妯″紡锛堣彍鍗曠敱璺敱鐢熸垚锛岄粯璁わ級
+  // ROLE锛氬墠绔ā寮忥紙鑿滃崟璺敱鍒嗗紑锛�
+  permissionMode: PermissionModeEnum.ROUTE_MAPPING,
 
   // Permission-related cache is stored in sessionStorage or localStorage
-  permissionCacheType: CacheTypeEnum.SESSION,
+  // 鏉冮檺缂撳瓨瀛樻斁浣嶇疆銆傞粯璁ゅ瓨鏀句簬localStorage
+  permissionCacheType: CacheTypeEnum.LOCAL,
+
+  // Session timeout processing
+  // 浼氳瘽瓒呮椂澶勭悊鏂规
+  // SessionTimeoutProcessingEnum.ROUTE_JUMP: 璺敱璺宠浆鍒扮櫥褰曢〉
+  // SessionTimeoutProcessingEnum.PAGE_COVERAGE: 鐢熸垚鐧诲綍寮圭獥锛岃鐩栧綋鍓嶉〉闈�
+  sessionTimeoutProcessing: SessionTimeoutProcessingEnum.ROUTE_JUMP,
 
   // color
-  themeColor: primaryColor,
-
-  // TODO dark theme
-  themeMode: themeMode,
+  // 椤圭洰涓婚鑹�
+  themeColor: APP_PRESET_COLOR_LIST[1],
 
   // Website gray mode, open for possible mourning dates
+  // 缃戠珯鐏拌壊妯″紡锛岀敤浜庡彲鑳芥偧蹇电殑鏃ユ湡寮�鍚�
   grayMode: false,
 
   // Color Weakness Mode
+  // 鑹插急妯″紡
   colorWeak: false,
 
   // Whether to cancel the menu, the top, the multi-tab page display, for possible embedded in other systems
+  // 鏄惁鍙栨秷鑿滃崟,椤堕儴,澶氭爣绛鹃〉鏄剧ず, 鐢ㄤ簬鍙兘鍐呭祵鍦ㄥ埆鐨勭郴缁熷唴
   fullContent: false,
 
   // content mode
+  // 涓婚鍐呭瀹藉害
   contentMode: ContentEnum.FULL,
 
   // Whether to display the logo
+  // 鏄惁鏄剧ずlogo
   showLogo: true,
 
   // Whether to show footer
+  // 鏄惁鏄剧ず搴曢儴淇℃伅 copyright
   showFooter: false,
 
   // Header configuration
+  // 澶撮儴閰嶇疆
   headerSetting: {
     // header bg color
-    bgColor: '#ffffff',
+    // 鑳屾櫙鑹�
+    bgColor: HEADER_PRESET_BG_COLOR_LIST[0],
     // Fixed at the top
+    // 鏄惁鍥哄畾澶撮儴
     fixed: true,
     // Whether to show top
+    // 鏄惁鏄剧ず椤堕儴
     show: true,
     // theme
+    // 涓婚
     theme: ThemeEnum.LIGHT,
     // Whether to enable the lock screen function
+    // 寮�鍚攣灞忓姛鑳�
     useLockPage: true,
-
     // Whether to show the full screen button
+    // 鏄剧ず鍏ㄥ睆鎸夐挳
     showFullScreen: true,
     // Whether to show the document button
+    // 鏄剧ず鏂囨。鎸夐挳
     showDoc: true,
     // Whether to show the notification button
+    // 鏄剧ず娑堟伅涓績鎸夐挳
     showNotice: true,
     // Whether to display the menu search
+    // 鏄剧ず鑿滃崟鎼滅储鎸夐挳
     showSearch: true,
+    showApi: true,
   },
 
   // Menu configuration
+  // 鑿滃崟閰嶇疆
   menuSetting: {
     // sidebar menu bg color
-    bgColor: '#001529',
+    // 鑳屾櫙鑹�
+    bgColor: SIDE_BAR_BG_COLOR_LIST[3],
     //  Whether to fix the left menu
+    // 鏄惁鍥哄畾浣忚彍鍗�
     fixed: true,
     // Menu collapse
+    // 鏄惁鑿滃崟鎶樺彔
     collapsed: false,
+    // When sider hide because of the responsive layout
+    siderHidden: false,
     // Whether to display the menu name when folding the menu
+    // 鎶樺彔鑿滃崟鏃跺�欐槸鍚︽樉绀鸿彍鍗曞悕
     collapsedShowTitle: false,
     // Whether it can be dragged
     // Only limited to the opening of the left menu, the mouse has a drag bar on the right side of the menu
+    // 鏄惁鍙嫋鎷�
     canDrag: false,
     // Whether to show no dom
+    // 鏄惁鏄剧ず
     show: true,
     // Whether to show dom
     hidden: false,
     // Menu width
-    menuWidth: 210,
+    // 鑿滃崟瀹藉害
+    menuWidth: 150,
     // Menu mode
+    // 鑿滃崟妯″紡
     mode: MenuModeEnum.INLINE,
     // Menu type
-    type: MenuTypeEnum.SIDEBAR,
+    // 鑿滃崟绫诲瀷
+    type: MenuTypeEnum.MIX_SIDEBAR,
     // Menu theme
-    theme: ThemeEnum.DARK,
+    // 鑿滃崟涓婚
+    theme: ThemeEnum.LIGHT,
     // Split menu
+    // 鍒嗗壊鑿滃崟
     split: false,
     // Top menu layout
+    // 椤堕儴鑿滃崟甯冨眬
     topMenuAlign: 'center',
     // Fold trigger position
+    // 鎶樺彔瑙﹀彂鍣ㄧ殑浣嶇疆
     trigger: TriggerEnum.HEADER,
     // Turn on accordion mode, only show a menu
+    // 鎵嬮鐞存ā寮忥紝鍙睍绀轰竴涓彍鍗�
     accordion: true,
     // Switch page to close menu
+    // 鍦ㄨ矾鐢卞垏鎹㈢殑鏃跺�欏叧闂乏渚ф贩鍚堣彍鍗曞睍寮�鑿滃崟
     closeMixSidebarOnChange: false,
     // Module opening method 鈥榗lick鈥� |'hover'
+    // 宸︿晶娣峰悎鑿滃崟妯″潡鍒囨崲瑙﹀彂鏂瑰紡
     mixSideTrigger: MixSidebarTriggerEnum.CLICK,
     // Fixed expanded menu
-    mixSideFixed: false,
+    // 鏄惁鍥哄畾宸︿晶娣峰悎鑿滃崟
+    mixSideFixed: true,
   },
 
   // Multi-label
+  // 澶氭爣绛鹃〉璁剧疆
   multiTabsSetting: {
+    // 鍒锋柊鍚庢槸鍚︿繚鐣欏凡缁忔墦寮�鐨勬爣绛鹃〉
+    cache: false,
     // Turn on
+    // 寮�鍚�
     show: true,
     // Is it possible to drag and drop sorting tabs
+    // 鏄惁鍙互鎷栨嫿
     canDrag: true,
     // Turn on quick actions
+    // 寮�鍚揩閫熸搷浣�
     showQuick: true,
-
     // Whether to show the refresh button
+    // 鏄惁鏄剧ず鍒锋柊鎸夐挳
     showRedo: true,
     // Whether to show the collapse button
+    // 鏄惁鏄剧ず鎶樺彔鎸夐挳
     showFold: true,
+    // Auto collapsed
+    autoCollapse: false,
   },
 
   // Transition Setting
+  // 鍔ㄧ敾閰嶇疆
   transitionSetting: {
     //  Whether to open the page switching animation
-    // The disabled state will also disable pageLoadinng
+    // The disabled state will also disable pageLoading
+    //  鏄惁寮�鍚垏鎹㈠姩鐢�
     enable: true,
 
     // Route basic switching animation
+    // 鍔ㄧ敾鍚�
     basicTransition: RouterTransitionEnum.FADE_SIDE,
 
     // Whether to open page switching loading
     // Only open when enable=true
+    // 鏄惁鎵撳紑椤甸潰鍒囨崲loading
     openPageLoading: true,
 
     // Whether to open the top progress bar
-    openNProgress: false,
+    // 鏄惁鎵撳紑椤甸潰鍒囨崲椤堕儴杩涘害鏉�
+    openNProgress: true,
   },
 
   // Whether to enable KeepAlive cache is best to close during development, otherwise the cache needs to be cleared every time
+  // 鏄惁寮�鍚疜eepAlive缂撳瓨  寮�鍙戞椂鍊欐渶濂藉叧闂�,涓嶇劧姣忔閮介渶瑕佹竻闄ょ紦瀛�
   openKeepAlive: true,
 
   // Automatic screen lock time, 0 does not lock the screen. Unit minute default 0
+  // 鑷姩閿佸睆鏃堕棿锛屼负0涓嶉攣灞忋�� 鍗曚綅鍒嗛挓 榛樿1涓皬鏃�
   lockTime: 0,
 
   // Whether to show breadcrumbs
+  // 鏄剧ず闈㈠寘灞�
   showBreadCrumb: true,
 
   // Whether to show the breadcrumb icon
+  // 鏄剧ず闈㈠寘灞戝浘鏍�
   showBreadCrumbIcon: false,
 
   // Use error-handler-plugin
+  // 鏄惁浣跨敤鍏ㄥ眬閿欒鎹曡幏
   useErrorHandle: false,
 
   // Whether to open back to top
+  // 鏄惁寮�鍚洖鍒伴《閮�
   useOpenBackTop: true,
 
   //  Is it possible to embed iframe pages
+  //  鏄惁鍙互宓屽叆iframe椤甸潰
   canEmbedIFramePage: true,
 
   // Whether to delete unclosed messages and notify when switching the interface
+  // 鍒囨崲鐣岄潰鐨勬椂鍊欐槸鍚﹀垹闄ゆ湭鍏抽棴鐨刴essage鍙妌otify
   closeMessageOnSwitch: true,
 
   // Whether to cancel the http request that has been sent but not responded when switching the interface.
   // If it is enabled, I want to overwrite a single interface. Can be set in a separate interface
+  // 鍒囨崲鐣岄潰鐨勬椂鍊欐槸鍚﹀彇娑堝凡缁忓彂閫佷絾鏄湭鍝嶅簲鐨刪ttp璇锋眰銆�
+  // 濡傛灉寮�鍚�,鎯冲鍗曠嫭鎺ュ彛瑕嗙洊銆傚彲浠ュ湪鍗曠嫭鎺ュ彛璁剧疆
   removeAllHttpPending: false,
 };
 

--
Gitblit v1.8.0