module-menu 0.2.29 → 0.2.31

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.
Files changed (37) hide show
  1. package/package.json +1 -1
  2. package/src/.umi/.cache/babel-loader/029b66babcccf51e6c03449b38c5114c.json.gz +0 -0
  3. package/src/.umi/.cache/babel-loader/091506a9308f845da21d823df4c563b4.json.gz +0 -0
  4. package/src/.umi/.cache/babel-loader/1caf9cdb15ae743ef3fa95e332cf5168.json.gz +0 -0
  5. package/src/.umi/.cache/babel-loader/1f4c918e960675c261a250994a362775.json.gz +0 -0
  6. package/src/.umi/.cache/babel-loader/21dba2004817f425a10d830532f43cff.json.gz +0 -0
  7. package/src/.umi/.cache/babel-loader/2bbfef952e807167b8aa10a4944537de.json.gz +0 -0
  8. package/src/.umi/.cache/babel-loader/32496ab6e4b9a3f2d36e9d5d28e3b151.json.gz +0 -0
  9. package/src/.umi/.cache/babel-loader/47c5ed0ee9932e2119727dc76d6a9f31.json.gz +0 -0
  10. package/src/.umi/.cache/babel-loader/50066e24f511a53d00c3c8031b009ab6.json.gz +0 -0
  11. package/src/.umi/.cache/babel-loader/5efeb8c843fdcc5df0104f375a49f218.json.gz +0 -0
  12. package/src/.umi/.cache/babel-loader/632168bc73024fc630d467a769533943.json.gz +0 -0
  13. package/src/.umi/.cache/babel-loader/7b922ed7fc2ad5e1023842945c75d686.json.gz +0 -0
  14. package/src/.umi/.cache/babel-loader/7dc5ac3b8b51e6a9e367b412162576b3.json.gz +0 -0
  15. package/src/.umi/.cache/babel-loader/990a0a4668af92cc85beb32218c34a21.json.gz +0 -0
  16. package/src/.umi/.cache/babel-loader/9b799053a5c6d630a295109da0cd0c26.json.gz +0 -0
  17. package/src/.umi/.cache/babel-loader/9c6410317ba2371d7baf8ab48761d977.json.gz +0 -0
  18. package/src/.umi/.cache/babel-loader/9e702cae7c864965d3bc03d49485e56d.json.gz +0 -0
  19. package/src/.umi/.cache/babel-loader/a759d26797535ae077c449a0636addd2.json.gz +0 -0
  20. package/src/.umi/.cache/babel-loader/bd4294313ea103762e0b9c972fe9751f.json.gz +0 -0
  21. package/src/.umi/.cache/babel-loader/cb8259dc91fdcb73fff22d2f6708f8fc.json.gz +0 -0
  22. package/src/.umi/.cache/babel-loader/d5189b97a28bcb55af23249b66a6cc53.json.gz +0 -0
  23. package/src/.umi/.cache/babel-loader/d8a66b82f19ff25f14b2f012166fcaca.json.gz +0 -0
  24. package/src/.umi/.cache/babel-loader/d8e01c256ff4537b246b041cffe86ba5.json.gz +0 -0
  25. package/src/.umi/.cache/babel-loader/ea8054ce1f7c548a27fa64566aef02d5.json.gz +0 -0
  26. package/src/.umi/core/history.ts +1 -1
  27. package/src/.umi/core/plugin.ts +1 -1
  28. package/src/.umi/core/routes.ts +1 -1
  29. package/src/.umi/plugin-helmet/exports.ts +1 -1
  30. package/src/.umi/plugin-model/Provider.tsx +1 -1
  31. package/src/.umi/plugin-model/useModel.tsx +1 -1
  32. package/src/.umi/plugin-request/request.ts +4 -4
  33. package/src/.umi/umi.ts +2 -2
  34. package/src/pages/ModuleMenu/index.jsx +0 -1
  35. package/src/pages/ModuleUser/index.jsx +15 -14
  36. package/src/pages/ModuleUser/index.less +14 -0
  37. package/src/pages/index.jsx +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "module-menu",
3
- "version": "0.2.29",
3
+ "version": "0.2.31",
4
4
  "description": "城市大数据平台公共头部及尾部",
5
5
  "main": "src/pages/index.jsx",
6
6
  "scripts": {
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { createBrowserHistory, History } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/umi/node_modules/@umijs/runtime';
2
+ import { createBrowserHistory, History } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi/node_modules/@umijs/runtime';
3
3
 
4
4
  let options = {
5
5
  "basename": "/"
@@ -1,5 +1,5 @@
1
1
  // @ts-nocheck
2
- import { Plugin } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/umi/node_modules/@umijs/runtime';
2
+ import { Plugin } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi/node_modules/@umijs/runtime';
3
3
 
4
4
  const plugin = new Plugin({
5
5
  validKeys: ['modifyClientRenderOpts','patchRoutes','rootContainer','render','onRouteChange','__mfsu','getInitialState','initialStateConfig','request',],
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import React from 'react';
3
- import { ApplyPluginsType } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/umi/node_modules/@umijs/runtime';
3
+ import { ApplyPluginsType } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi/node_modules/@umijs/runtime';
4
4
  import * as umiExports from './umiExports';
5
5
  import { plugin } from './plugin';
6
6
 
@@ -1,3 +1,3 @@
1
1
  // @ts-nocheck
2
2
  // @ts-ignore
3
- export { Helmet } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/react-helmet';
3
+ export { Helmet } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/react-helmet';
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  import React from 'react';
3
- import initialState from 'D:/chinamobile/compact-bigdata/module-menu/src/.umi/plugin-initial-state/models/initialState';
3
+ import initialState from 'D:/chinamobile/compact-bigdata/module-menu1/src/.umi/plugin-initial-state/models/initialState';
4
4
 
5
5
  // @ts-ignore
6
6
  import Dispatcher from './helpers/dispatcher';
@@ -1,7 +1,7 @@
1
1
  // @ts-nocheck
2
2
  import { useState, useEffect, useContext, useRef } from 'react';
3
3
  // @ts-ignore
4
- import isEqual from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/@umijs/plugin-model/node_modules/fast-deep-equal/index.js';
4
+ import isEqual from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/@umijs/plugin-model/node_modules/fast-deep-equal/index.js';
5
5
  // @ts-ignore
6
6
  import { UmiContext } from './helpers/constant';
7
7
  import { Model, models } from './Provider';
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
  /**
3
- * Base on https://github.com/umijs/D:/chinamobile/compact-bigdata/module-menu/node_modules/umi-request
3
+ * Base on https://github.com/umijs/D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi-request
4
4
  */
5
5
  import {
6
6
  extend,
@@ -13,7 +13,7 @@ import {
13
13
  RequestResponse,
14
14
  RequestInterceptor,
15
15
  ResponseInterceptor,
16
- } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/umi-request';
16
+ } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi-request';
17
17
  // @ts-ignore
18
18
 
19
19
  import { ApplyPluginsType } from 'umi';
@@ -22,7 +22,7 @@ import { history, plugin } from '../core/umiExports';
22
22
  // decoupling with antd UI library, you can using `alias` modify the ui methods
23
23
  // @ts-ignore
24
24
  import { message, notification } from '@umijs/plugin-request/lib/ui';
25
- import useUmiRequest, { UseRequestProvider } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/@ahooksjs/use-request';
25
+ import useUmiRequest, { UseRequestProvider } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/@ahooksjs/use-request';
26
26
  import {
27
27
  BaseOptions,
28
28
  BasePaginatedOptions,
@@ -38,7 +38,7 @@ import {
38
38
  PaginatedOptionsWithFormat,
39
39
  PaginatedParams,
40
40
  PaginatedResult,
41
- } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/@ahooksjs/use-request/lib/types';
41
+ } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/@ahooksjs/use-request/lib/types';
42
42
 
43
43
  type ResultWithData<T = any> = { data?: T; [key: string]: any };
44
44
 
package/src/.umi/umi.ts CHANGED
@@ -4,8 +4,8 @@ import '@@/core/devScripts';
4
4
  import { plugin } from './core/plugin';
5
5
  import './core/pluginRegister';
6
6
  import { createHistory } from './core/history';
7
- import { ApplyPluginsType } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/umi/node_modules/@umijs/runtime';
8
- import { renderClient } from 'D:/chinamobile/compact-bigdata/module-menu/node_modules/@umijs/renderer-react/dist/index.js';
7
+ import { ApplyPluginsType } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/umi/node_modules/@umijs/runtime';
8
+ import { renderClient } from 'D:/chinamobile/compact-bigdata/module-menu1/node_modules/@umijs/renderer-react/dist/index.js';
9
9
  import { getRoutes } from './core/routes';
10
10
 
11
11
 
@@ -86,7 +86,6 @@ const ModuleMenu = ({ sysName, stash = '' }) => {
86
86
 
87
87
  // 获取系统logo及title
88
88
  const getLogoAndTitle = () => {
89
- sysName = 'datacollection'
90
89
  let sysInfo = sysNameMap(stash).find((item) => item.sysName === sysName);
91
90
  let logoAndTitle = { logoSrc: '', title: '' };
92
91
  if (sysInfo) {
@@ -19,7 +19,7 @@ const ModuleUser = ({ stash = '' }) => {
19
19
  const [haveAppSystemPermission, setHaveAppSystemPermission] = useState(false);
20
20
  useEffect(() => {
21
21
  localStorage.setItem('stash', stash)
22
- if (stash === 'integration') {
22
+ if (['integration', 'LNRD'].includes(stash)) {
23
23
  getTenantList();
24
24
  allSystemList();
25
25
  }
@@ -28,7 +28,7 @@ const ModuleUser = ({ stash = '' }) => {
28
28
  window.location.href = url;
29
29
  };
30
30
  const handleClickSysManage = () => {
31
- if(stash === 'integration'){
31
+ if(['integration', 'LNRD'].includes(stash)){
32
32
  Axios('get', '/admin-api/system/auth/homePage', '', {})
33
33
  .then((res) => {
34
34
  if (res.data.code === 0) {
@@ -52,20 +52,20 @@ const ModuleUser = ({ stash = '' }) => {
52
52
  AppSystemSrc,
53
53
  } = userMenuIcon;
54
54
 
55
- const isHaveSystemManagementPermission = (stash === 'integration')
55
+ const isHaveSystemManagementPermission = (['integration', 'LNRD'].includes(stash))
56
56
  ? true
57
57
  : getStore({ name: 'isHaveSystemManagementPermission' });
58
- const DEFAULT_LOGOUT_URL = (stash === 'integration') ? '/admin-ui/login' : (stash === 'GZW'? '/data-platform/#/login' : '/#/login');
58
+ const DEFAULT_LOGOUT_URL = (['integration', 'LNRD'].includes(stash)) ? '/admin-ui/login' : (stash === 'GZW'? '/data-platform/#/login' : '/#/login');
59
59
 
60
60
  // 跳转服务门户
61
61
  const jumpToExterHome = () => {
62
62
  handleClickmenu('/admin-ui/data-share-portal/homePage');
63
63
  };
64
64
 
65
- const curTenantId = stash === 'integration'
65
+ const curTenantId = ['integration', 'LNRD'].includes(stash)
66
66
  ? getStore({ name: 'tenantId' }) && parseInt(getStore({ name: 'tenantId' }))
67
67
  : '';
68
- const curTenantName = stash === 'integration' ? getStore({ name: 'tenantName' }) : '';
68
+ const curTenantName = ['integration', 'LNRD'].includes(stash) ? getStore({ name: 'tenantName' }) : '';
69
69
 
70
70
  const getTenantList = () => {
71
71
  Axios('get', '/admin-api/system/user/getUserTenant', '', {})
@@ -113,10 +113,10 @@ const ModuleUser = ({ stash = '' }) => {
113
113
 
114
114
  // 退出登录
115
115
  const logout = () => {
116
- const logoutUrl = (stash === 'integration')
116
+ const logoutUrl = (['integration', 'LNRD'].includes(stash))
117
117
  ? '/admin-api/system/auth/logout'
118
118
  : (stash === 'GZW' ? '/data-platform/auth/token/logout' : '/auth/token/logout');
119
- const logouType = (stash === 'integration') ? 'post' : 'delete';
119
+ const logouType = (['integration', 'LNRD'].includes(stash)) ? 'post' : 'delete';
120
120
  Axios(logouType, logoutUrl, '', {})
121
121
  .then(() => {
122
122
  console.log('退出登录接口调用成功');
@@ -158,7 +158,7 @@ const ModuleUser = ({ stash = '' }) => {
158
158
  key="personalCenter"
159
159
  onClick={() =>
160
160
  handleClickmenu(
161
- stash === 'integration' ?
161
+ ['integration', 'LNRD'].includes(stash) ?
162
162
  '/admin-ui/data-share-portal/personal/info':
163
163
  (stash === 'GZW'? '/data-platform/#/info/index' : '/#/info/index')
164
164
  )
@@ -169,7 +169,7 @@ const ModuleUser = ({ stash = '' }) => {
169
169
  alt=""
170
170
  style={{ marginRight: '10px', marginTop: '-3px' }}
171
171
  />
172
- <span>{stash === 'integration' ? '用户中心' : '个人中心'}</span>
172
+ <span>{['integration', 'LNRD'].includes(stash) ? '用户中心' : '个人中心'}</span>
173
173
  </Menu.Item>
174
174
  {isHaveSystemManagementPermission && (
175
175
  <Menu.Item key="systemManage" onClick={handleClickSysManage}>
@@ -207,13 +207,13 @@ const ModuleUser = ({ stash = '' }) => {
207
207
 
208
208
  return (
209
209
  <div className={cn(stash !== 'LNRD'? 'right_size':'right_size_LNRD', 'right')}>
210
- {stash === 'integration' && [
211
- <Button type="link" onClick={jumpToExterHome}>
210
+ {['integration', 'LNRD'].includes(stash) && [
211
+ <Button type="link" onClick={jumpToExterHome} className={cn(stash !== 'LNRD'? null:'fwmh_color_LNRD')}>
212
212
  服务门户
213
213
  </Button>,
214
214
  <Select
215
215
  defaultValue={curTenantId}
216
- className="right-select"
216
+ className={stash !== 'LNRD'? 'right-select':'right-select_LNRD'}
217
217
  style={{
218
218
  width: 150,
219
219
  border: 'none',
@@ -232,12 +232,13 @@ const ModuleUser = ({ stash = '' }) => {
232
232
  verticalAlign: '-2px',
233
233
  fontSize: '16px',
234
234
  fontWeight: '500',
235
+ color: stash !== 'LNRD'? null: '#FFFFFF'
235
236
  }}
236
237
  >
237
238
  {getUserName()}
238
239
  </span>
239
240
  <CaretDownOutlined
240
- style={{ marginLeft: '10px', fontSize: '8px', color: '#333333' }}
241
+ style={{ marginLeft: '10px', fontSize: '8px', color: stash !== 'LNRD'? '#333333': '#FFFFFF'}}
241
242
  />
242
243
  </span>
243
244
  </HeaderDropdown>
@@ -51,6 +51,13 @@
51
51
  :global(.right-select> .ant-select-arrow>.anticon) {
52
52
  color: #000000 !important;
53
53
  }
54
+ :global(.right-select_LNRD> .ant-select-selector) {
55
+ border: none !important;
56
+ box-shadow: none !important;
57
+ }
58
+ :global(.right-select_LNRD> .ant-select-arrow>.anticon) {
59
+ color: #FFFFFF !important;
60
+ }
54
61
 
55
62
  .menu {
56
63
  :global(.anticon) {
@@ -61,3 +68,10 @@
61
68
  min-width: 160px;
62
69
  }
63
70
  }
71
+ .fwmh_color_LNRD{
72
+ color: #FFE347 ;
73
+ }
74
+ .right_size_LNRD > .ant-btn-link:hover,
75
+ .right_size_LNRD > .ant-btn-link:focus{
76
+ color:#FFE347
77
+ }
@@ -2,4 +2,4 @@ import ModuleMenu from './ModuleMenu';
2
2
  import ModuleUser from './ModuleUser';
3
3
  import Footer from './Footer';
4
4
  export { ModuleMenu, ModuleUser, Footer };
5
- // export default ModuleMenu;
5
+ // export default ModuleUser;