settings.js 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. let globalSettings = {
  2. // 应用
  3. app: {
  4. /**
  5. * 主题
  6. * default 默认
  7. * vue-cli Vue CLI 风格
  8. * gitee 码云风格
  9. * freshness 清新
  10. * elegant 素雅
  11. * pure-white 纯白
  12. */
  13. theme: 'default',
  14. // elementUI 组件默认尺寸,支持:large、default、small
  15. componentSize: 'default',
  16. // TODO 默认语言,留空则跟随系统(未实现,有空再说)
  17. defaultLang: '',
  18. /**
  19. * 是否开启权限功能,权限功能提供以下鉴权支持:
  20. * 1、路由鉴权
  21. * 2、鉴权组件:<Auth></Auth>、<AuthAll></AuthAll>
  22. * 3、鉴权指令:v-auth、v-auth-all
  23. * 4、鉴权函数:this.$auth()、this.$authAll()
  24. */
  25. enablePermission: true,
  26. // 是否开启后端返回路由数据
  27. enableBackendReturnRoute: false,
  28. // 是否开启载入进度条
  29. enableProgress: true,
  30. // 是否开启动态标题
  31. enableDynamicTitle: true,
  32. // localStorage sessionStorage 前缀
  33. storagePrefix: 'monitoring',
  34. // 是否开启页面水印
  35. enableWatermark: false,
  36. // 是否在非开发环境开启错误日志功能,具体业务代码在 ./util/error.log.js
  37. enableErrorLog: false
  38. },
  39. // 控制台
  40. dashboard: {
  41. // 是否开启
  42. enable: false,
  43. // 控制台名称
  44. title: '控制台'
  45. },
  46. // 布局
  47. layout: {
  48. /**
  49. * 页宽模式,当设置为非 adaption 时,请去 ./src/assets/styles/resources/layout.scss 里设置 $g-app-width
  50. * adaption 自适应
  51. * adaption-min-width 自适应(有最小宽度)
  52. * center 定宽居中
  53. * center-max-width 定宽居中(有最大宽度)
  54. */
  55. widthMode: 'adaption',
  56. // 是否开启移动端适配,开启后当页面宽度小于 992px 时自动切换为移动端展示
  57. enableMobileAdaptation: true
  58. },
  59. // 导航栏
  60. menu: {
  61. /**
  62. * 导航栏模式
  63. * side 侧边栏模式(含主导航)
  64. * head 顶部模式
  65. * single 侧边栏模式(无主导航)
  66. * only-side 侧边栏精简模式
  67. * only-head 顶部精简模式
  68. */
  69. menuMode: 'single',
  70. /**
  71. * 导航栏风格
  72. * card 卡片
  73. * radius 圆角
  74. * arrow 箭头
  75. */
  76. menuStyle: 'card',
  77. // 切换主导航同时跳转页面
  78. switchMainMenuAndPageJump: true,
  79. // 次导航只保持一个子项的展开
  80. subMenuUniqueOpened: true,
  81. // 次导航只有一个导航时自动隐藏
  82. subMenuOnylOneHide: true,
  83. // 次导航是否收起
  84. subMenuCollapse: false
  85. },
  86. iconStyle: {
  87. // 图标大小
  88. size: 20,
  89. // 图标线框粗细
  90. strokeWidth: 4,
  91. // 端点类型
  92. strokeLinecap: 'round',
  93. // 拐点类型
  94. strokeLinejoin: 'round',
  95. // icon class(不要动这里)
  96. prefix: 'park',
  97. /**
  98. * 图标主题
  99. * outline 线性主题
  100. * filled 填充主题
  101. * two-tone 双色主题
  102. * multi-color 多色主题
  103. */
  104. theme: 'outline',
  105. colors: {
  106. // 线性主题
  107. outline: {
  108. fill: '#333',
  109. background: 'transparent'
  110. },
  111. // 填充主题
  112. filled: {
  113. fill: '#333',
  114. background: 'transparent'
  115. },
  116. // 双色主题
  117. twoTone: {
  118. fill: '#333',
  119. twoTone: '#409EFF'
  120. },
  121. // 多色主题
  122. multiColor: {
  123. outStrokeColor: '#333',
  124. outFillColor: '#409EFF',
  125. innerStrokeColor: '#FFF',
  126. innerFillColor: '#43CCF8'
  127. }
  128. }
  129. },
  130. // 顶栏
  131. topbar: {
  132. // 是否固定
  133. fixed: true,
  134. // 是否切换显示标签栏和工具栏的显示位置,设置为 false 标签栏在工具栏上面,设置为 true 工具栏在标签栏上面
  135. switchTabbarAndToolbar: false
  136. },
  137. // 标签栏
  138. tabbar: {
  139. // 是否开启
  140. enable: false,
  141. /**
  142. * 标签栏风格
  143. * fashion 时尚
  144. * card 卡片
  145. * square 方块
  146. */
  147. style: 'square',
  148. // 是否合并标签页,设置为 true 时,会将设置过 activeMenu 的路由与 activeMenu 指向的目标路由合并为一个
  149. mergeTabs: true
  150. },
  151. // 工具栏
  152. toolbar: {
  153. // 是否开启侧边栏展开收起按钮
  154. enableSidebarCollapse: true,
  155. // 是否开启面包屑导航
  156. enableBreadcrumb: true,
  157. // 是否开启导航搜索
  158. enableNavSearch: true,
  159. // 是否开启通知中心
  160. enableNotification: true,
  161. // 是否开启全屏
  162. enableFullscreen: true,
  163. // 是否开启页面刷新
  164. enablePageReload: true,
  165. // 是否开启应用配置(建议在生产环境关闭)
  166. enableAppSetting: true
  167. },
  168. // 底部版权
  169. copyright: {
  170. // 是否开启,同时在路由 meta 对象里可以单独设置某个路由是否显示底部版权信息
  171. enable: false,
  172. // 版权信息配置,格式为:Copyright © [dates] <company>, All Rights Reserved
  173. dates: '2020-2022',
  174. company: '应急管理',
  175. website: ''
  176. }
  177. }
  178. import settingsCustom from './settings.custom.json'
  179. Object.assign(globalSettings, settingsCustom || {})
  180. export default globalSettings