@yeeyoon/library 3.5.7 → 3.6.0

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.
@@ -7,7 +7,7 @@ import ls from 'local-storage';
7
7
  import styles from './index.less';
8
8
  import { fetchSystemToken } from '../../service';
9
9
  import { IconWodechanpin, IconTuijianchanpin } from '../../../Icons';
10
- import { HOST_MMS } from '../../../../config/env';
10
+ import { HOST_WMS } from '../../../../config/env';
11
11
 
12
12
  const { SubMenu } = Menu;
13
13
 
@@ -25,7 +25,7 @@ const ProductListMenu = (props) => {
25
25
  let link = document.body.appendChild(_link);
26
26
  link.setAttribute('target', '_blank');
27
27
  if (item.code === 200000724) {
28
- url = HOST_MMS;
28
+ url = HOST_WMS;
29
29
  link.setAttribute(
30
30
  'href',
31
31
  `${url}?token=${ls.get('X-Auth-Token')}&tenantId=${tenantId}`
@@ -41,7 +41,7 @@ import {
41
41
  import LogoProfile from './assets/profile.svg';
42
42
  import LogoCollab from './assets/collab.svg';
43
43
  import LogoBpm from './assets/bpm.svg';
44
- import LogoMms from './assets/mms.svg';
44
+ import LogoWms from './assets/mms.svg';
45
45
 
46
46
  import styles from './index.less';
47
47
 
@@ -233,9 +233,9 @@ const Header = (props) => {
233
233
  logo: LogoBpm,
234
234
  name: '周转物资协同管理平台',
235
235
  };
236
- case 'mms':
236
+ case 'wms':
237
237
  return {
238
- logo: LogoMms,
238
+ logo: LogoWms,
239
239
  name: '智慧仓储',
240
240
  };
241
241
  }
@@ -255,7 +255,9 @@ const Header = (props) => {
255
255
  />
256
256
  </Tooltip>
257
257
  )}
258
- <div className={styles['comp-header__slot']}>{prefixSlot}</div>
258
+ {isSharePlatform && (
259
+ <div className={styles['comp-header__slot']}>{prefixSlot}</div>
260
+ )}
259
261
  <span
260
262
  className={styles['comp-header__logo']}
261
263
  onClick={() => {
@@ -304,7 +306,7 @@ const Header = (props) => {
304
306
  <IconTodo style={IconStyle} />
305
307
  任务中心
306
308
  </span>
307
- {(productName === 'bpm' || productName === 'mms') && (
309
+ {(productName === 'bpm' || productName === 'wms') && (
308
310
  <span
309
311
  className={styles['comp-header__icon']}
310
312
  onClick={() => {
@@ -313,7 +315,7 @@ const Header = (props) => {
313
315
  case 'bpm':
314
316
  system = 'bpm';
315
317
  break;
316
- case 'mms':
318
+ case 'wms':
317
319
  system = 'wms';
318
320
  break;
319
321
  }
package/lib/config/env.js CHANGED
@@ -112,7 +112,7 @@ export const HOST_OFFICIAL = getEnvHost('official');
112
112
  export const HOST_IAM = getEnvHost('iam', '/login');
113
113
  export const HOST_COLLAB = getEnvHost('collab');
114
114
  export const HOST_BPM = getEnvHost('bpm');
115
- export const HOST_MMS = getEnvHost('mms');
115
+ export const HOST_WMS = getEnvHost('wms');
116
116
  export const HOST_PORTRAIT = getEnvHost('portrait');
117
117
  export const HOST_PROFILE_TASK = getEnvHost(
118
118
  'profile',
@@ -154,7 +154,7 @@ console.log(
154
154
  `HOST_IAM: ${HOST_IAM}\n`,
155
155
  `HOST_COLLAB: ${HOST_COLLAB}\n`,
156
156
  `HOST_BPM: ${HOST_BPM}\n`,
157
- `HOST_MMS: ${HOST_MMS}\n`,
157
+ `HOST_WMS: ${HOST_WMS}\n`,
158
158
  `HOST_PORTRAIT: ${HOST_PORTRAIT}\n`,
159
159
  `HOST_PROFILE_TASK: ${HOST_PROFILE_TASK}\n`,
160
160
  `HOST_PROFILE_DASH_BOARD: ${HOST_PROFILE_DASH_BOARD}\n`,
@@ -4,7 +4,7 @@ import qs from 'qs';
4
4
  import ls from 'local-storage';
5
5
  import { notification } from 'antd';
6
6
 
7
- import { HOST_IAM } from '../config/env';
7
+ import { HOST_IAM, HOST_HUASHAN_BPM, HOST_HUASHAN_LOGIN } from '../config/env';
8
8
 
9
9
  const TOKEN_KEY = 'X-Auth-Token';
10
10
  const ID_KEY = 'X-Auth-Id';
@@ -44,8 +44,8 @@ rest && ls.set(REST_KEY, JSON.stringify(rest));
44
44
 
45
45
  const backToIam = () => {
46
46
  const { origin, pathname } = window.location;
47
- if (origin.indexOf('huashan') > -1) {
48
- window.location.href = 'https://testing-huashan-login.yeeyoon.com/login';
47
+ if (origin.indexOf(HOST_HUASHAN_BPM) > -1) {
48
+ window.location.href = HOST_HUASHAN_LOGIN;
49
49
  } else {
50
50
  window.location.href = `${HOST_IAM}?redirect=${origin}${pathname}`;
51
51
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.5.7",
3
+ "version": "3.6.0",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {