@yeeyoon/library 3.5.8 → 3.6.1
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 {
|
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 =
|
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
|
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 '
|
236
|
+
case 'wms':
|
237
237
|
return {
|
238
|
-
logo:
|
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
|
-
|
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,9 @@ const Header = (props) => {
|
|
304
306
|
<IconTodo style={IconStyle} />
|
305
307
|
任务中心
|
306
308
|
</span>
|
307
|
-
{(productName === 'bpm' ||
|
309
|
+
{(productName === 'bpm' ||
|
310
|
+
productName === 'wms' ||
|
311
|
+
productName === 'profile') && (
|
308
312
|
<span
|
309
313
|
className={styles['comp-header__icon']}
|
310
314
|
onClick={() => {
|
@@ -313,7 +317,7 @@ const Header = (props) => {
|
|
313
317
|
case 'bpm':
|
314
318
|
system = 'bpm';
|
315
319
|
break;
|
316
|
-
case '
|
320
|
+
case 'wms':
|
317
321
|
system = 'wms';
|
318
322
|
break;
|
319
323
|
}
|
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
|
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
|
-
`
|
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`,
|