@zgfe/modules-settings 1.2.6 → 1.2.7-config.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.
- package/es/constants/api.js +1 -1
- package/es/modules/appSettings/member/index.js +7 -7
- package/es/modules/companySetting/demo.d.ts +3 -0
- package/es/modules/companySetting/demo.js +21 -0
- package/es/modules/companySetting/edit/authConfig.js +21 -18
- package/es/modules/companySetting/edit/authConfigCEP.js +7 -5
- package/es/modules/companySetting/index.js +6 -6
- package/es/modules/companySetting/userGroup/authConfigDetail.js +14 -12
- package/es/utils/functionalPermissions.d.ts +2 -4
- package/es/utils/functionalPermissions.js +4 -3
- package/es/utils/util.js +2 -1
- package/package.json +3 -3
package/es/constants/api.js
CHANGED
|
@@ -5,7 +5,7 @@ var apis = {
|
|
|
5
5
|
getCurrentUser: '/zg/web/v2/company/currentUser'
|
|
6
6
|
},
|
|
7
7
|
app: {
|
|
8
|
-
queryLeftMenus:
|
|
8
|
+
queryLeftMenus: '/zg/web/v2/index/menuList',
|
|
9
9
|
deleteApp: apiPrefix + '/common/proxy/user/deleteApp.jsp',
|
|
10
10
|
createApp: apiPrefix + '/system/createApp',
|
|
11
11
|
queryAppList: '/zg/web/v2/data/v2ajaxGetDataByApp',
|
|
@@ -10,13 +10,13 @@ import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
|
10
10
|
import request from '../../../utils/ajax';
|
|
11
11
|
import apis from '../../../constants/api';
|
|
12
12
|
import { useState } from 'react';
|
|
13
|
-
import util from '../../../utils/util';
|
|
14
13
|
import { EyeOutlined } from '@ant-design/icons';
|
|
15
14
|
import SetingModal from './modal';
|
|
16
15
|
var AppMember = function AppMember() {
|
|
17
16
|
var _useContext = useContext(BizGlobalDataContext),
|
|
18
17
|
currentApp = _useContext.currentApp,
|
|
19
|
-
currentUser = _useContext.currentUser
|
|
18
|
+
currentUser = _useContext.currentUser,
|
|
19
|
+
getMenuRouterByName = _useContext.getMenuRouterByName;
|
|
20
20
|
var _useState = useState([]),
|
|
21
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
22
|
memberList = _useState2[0],
|
|
@@ -130,15 +130,15 @@ var AppMember = function AppMember() {
|
|
|
130
130
|
});
|
|
131
131
|
// 请求左侧菜单
|
|
132
132
|
request(apis.app.queryLeftMenus, {
|
|
133
|
-
method: '
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
method: 'get',
|
|
134
|
+
params: {
|
|
135
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
136
136
|
}
|
|
137
137
|
}).then(function (res) {
|
|
138
|
-
var menus = (res === null || res === void 0 ? void 0 : res.
|
|
138
|
+
var menus = (res === null || res === void 0 ? void 0 : res.data) || [];
|
|
139
139
|
var formatMenus = function formatMenus(menus) {
|
|
140
140
|
menus.forEach(function (item) {
|
|
141
|
-
item.routeName =
|
|
141
|
+
item.routeName = getMenuRouterByName(item.name);
|
|
142
142
|
if (item.childrens) {
|
|
143
143
|
formatMenus(item.childrens);
|
|
144
144
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BizGlobalDataContext, DemoWrapper } from '@zgfe/business-lib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import funPermissions from '../../utils/functionalPermissions';
|
|
4
|
+
import constants from '../../utils/constants';
|
|
5
|
+
import util from '../../utils/util';
|
|
6
|
+
import { CompanySetting } from '../..';
|
|
7
|
+
export default (function () {
|
|
8
|
+
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
9
|
+
needMeta: true
|
|
10
|
+
}, /*#__PURE__*/React.createElement(BizGlobalDataContext.Provider, {
|
|
11
|
+
value: {
|
|
12
|
+
funPermissions: funPermissions,
|
|
13
|
+
menusName: constants.menusName,
|
|
14
|
+
getMenuRouterByName: util.getMenuRouterByName
|
|
15
|
+
}
|
|
16
|
+
}, /*#__PURE__*/React.createElement(CompanySetting, {
|
|
17
|
+
showWeChatMenu: true,
|
|
18
|
+
showMarketMenu: true,
|
|
19
|
+
action: ''
|
|
20
|
+
})));
|
|
21
|
+
});
|
|
@@ -4,15 +4,18 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
5
5
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
|
-
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
7
|
+
import React, { useEffect, useState, forwardRef, useImperativeHandle, useContext } from 'react';
|
|
8
8
|
import './styles/authConfig.less';
|
|
9
9
|
import constants from './../../../utils/constants';
|
|
10
|
-
import funPermissions from './../../../utils/functionalPermissions';
|
|
11
10
|
import AuthGroup from './authGroup';
|
|
11
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
12
12
|
var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
13
|
var config = props.config,
|
|
14
14
|
appList = props.appList,
|
|
15
15
|
leftMenus = props.leftMenus;
|
|
16
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
17
|
+
menusName = _useContext.menusName,
|
|
18
|
+
funPermissions = _useContext.funPermissions;
|
|
16
19
|
var _useState = useState({}),
|
|
17
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
18
21
|
dataPermissions = _useState2[0],
|
|
@@ -57,7 +60,7 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
57
60
|
}
|
|
58
61
|
if (functionalPermissions.checked) {
|
|
59
62
|
funAuth.push({
|
|
60
|
-
resource: funPermissions
|
|
63
|
+
resource: funPermissions.all.key,
|
|
61
64
|
opts: [constants.functionOpts.all]
|
|
62
65
|
});
|
|
63
66
|
functionalPermissions.children && functionalPermissions.children.forEach(function (item) {
|
|
@@ -198,7 +201,7 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
198
201
|
});
|
|
199
202
|
// 顶部菜单功能权限
|
|
200
203
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu, checkAll) {
|
|
201
|
-
var menuFunPerConstants = funPermissions[
|
|
204
|
+
var menuFunPerConstants = funPermissions[topMenu.name];
|
|
202
205
|
// 菜单不在权限配置中
|
|
203
206
|
if (!menuFunPerConstants) {
|
|
204
207
|
return null;
|
|
@@ -235,7 +238,7 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
235
238
|
indeterminate: !(checkState || !childrenCheckArr.length && !indeterminateArr.length),
|
|
236
239
|
children: childrens
|
|
237
240
|
};
|
|
238
|
-
if (topMenu.name ===
|
|
241
|
+
if (topMenu.name === (menusName === null || menusName === void 0 ? void 0 : menusName.market)) {
|
|
239
242
|
formatMenu.radio = true;
|
|
240
243
|
formatMenu.children = [{
|
|
241
244
|
describe: '管理员角色',
|
|
@@ -256,7 +259,7 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
256
259
|
return formatMenu;
|
|
257
260
|
};
|
|
258
261
|
var menuFun = [];
|
|
259
|
-
var isAll = !!map[funPermissions
|
|
262
|
+
var isAll = !!map[funPermissions.all.key];
|
|
260
263
|
leftMenus.forEach(function (menu) {
|
|
261
264
|
var topMenuFun = loopFormatTopMenu(menu, isAll);
|
|
262
265
|
if (topMenuFun) {
|
|
@@ -266,28 +269,28 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
266
269
|
menuFun.push(topMenuFun);
|
|
267
270
|
}
|
|
268
271
|
});
|
|
269
|
-
var settingIsAll = !!map[funPermissions
|
|
272
|
+
var settingIsAll = !!map[funPermissions.setting.default.key];
|
|
270
273
|
var settingChildren = [{
|
|
271
274
|
// ...funPermissions['standard'].setting.company,
|
|
272
|
-
describe: funPermissions
|
|
273
|
-
key: funPermissions
|
|
275
|
+
describe: funPermissions.setting.company.describe,
|
|
276
|
+
key: funPermissions.setting.company.key,
|
|
274
277
|
disable: false,
|
|
275
278
|
supportVirtualApp: true,
|
|
276
|
-
checked: isAll || settingIsAll || !!map[funPermissions
|
|
279
|
+
checked: isAll || settingIsAll || !!map[funPermissions.setting.company.key],
|
|
277
280
|
children: []
|
|
278
281
|
}, {
|
|
279
282
|
// ...funPermissions['standard'].setting.app,
|
|
280
|
-
describe: funPermissions
|
|
281
|
-
key: funPermissions
|
|
283
|
+
describe: funPermissions.setting.app.describe,
|
|
284
|
+
key: funPermissions.setting.app.key,
|
|
282
285
|
disable: false,
|
|
283
286
|
supportVirtualApp: true,
|
|
284
|
-
checked: isAll || settingIsAll || !!map[funPermissions
|
|
287
|
+
checked: isAll || settingIsAll || !!map[funPermissions.setting.app.key],
|
|
285
288
|
children: []
|
|
286
289
|
}];
|
|
287
290
|
menuFun.push({
|
|
288
|
-
describe: funPermissions
|
|
289
|
-
key: funPermissions
|
|
290
|
-
checked: isAll || !!map[funPermissions
|
|
291
|
+
describe: funPermissions.setting.default.describe,
|
|
292
|
+
key: funPermissions.setting.default.key,
|
|
293
|
+
checked: isAll || !!map[funPermissions.setting.default.key],
|
|
291
294
|
indeterminate: settingChildren.some(function (item) {
|
|
292
295
|
return item.checked;
|
|
293
296
|
}),
|
|
@@ -303,8 +306,8 @@ var AuthConfig = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
303
306
|
});
|
|
304
307
|
setFunctionalPermissions({
|
|
305
308
|
describe: '功能权限',
|
|
306
|
-
key: funPermissions
|
|
307
|
-
// checked: !!map[funPermissions
|
|
309
|
+
key: funPermissions.all.key,
|
|
310
|
+
// checked: !!map[funPermissions.all.key],
|
|
308
311
|
checked: checkedArr.length === menuFun.length,
|
|
309
312
|
disable: false,
|
|
310
313
|
supportVirtualApp: true,
|
|
@@ -10,13 +10,15 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
10
10
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
11
11
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
13
|
+
import React, { useEffect, useState, forwardRef, useImperativeHandle, useContext } from 'react';
|
|
14
14
|
import './styles/authConfig.less';
|
|
15
15
|
import constants from './../../../utils/constants';
|
|
16
|
-
import funPermissions from './../../../utils/functionalPermissions';
|
|
17
16
|
import AuthGroup from './authGroup';
|
|
17
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
18
18
|
var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
19
|
var CEPData = props.CEPData;
|
|
20
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
21
|
+
funPermissions = _useContext.funPermissions;
|
|
20
22
|
var _useState = useState({}),
|
|
21
23
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
24
|
dataPermissions = _useState2[0],
|
|
@@ -164,8 +166,8 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
164
166
|
});
|
|
165
167
|
setFunctionalPermissions({
|
|
166
168
|
describe: '功能权限',
|
|
167
|
-
key: funPermissions
|
|
168
|
-
// checked: !!map[funPermissions
|
|
169
|
+
key: funPermissions.all.key,
|
|
170
|
+
// checked: !!map[funPermissions.all.key],
|
|
169
171
|
checked: checkedFunArr.length === dealFunConfigList.length,
|
|
170
172
|
disable: false,
|
|
171
173
|
supportVirtualApp: true,
|
|
@@ -182,7 +184,7 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
182
184
|
setDataPermissions({
|
|
183
185
|
key: 1,
|
|
184
186
|
describe: '数据权限',
|
|
185
|
-
// checked: !!map[funPermissions
|
|
187
|
+
// checked: !!map[funPermissions.all.key],
|
|
186
188
|
checked: checkedAppArr.length === dealAppConfigList.length,
|
|
187
189
|
indeterminate: !(checkedAppArr.length === dealAppConfigList.length || !checkedAppArr.length && !indeterminateAppArr.length),
|
|
188
190
|
children: dealAppConfigList
|
|
@@ -13,7 +13,6 @@ import React, { useContext, useEffect, useState } from 'react';
|
|
|
13
13
|
import './index.less';
|
|
14
14
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
15
15
|
import request from './../../utils/ajax';
|
|
16
|
-
import util from './../../utils/util';
|
|
17
16
|
import api from './../../constants/api';
|
|
18
17
|
import PageLoading from '../../components/pageLoading';
|
|
19
18
|
import { notification } from 'antd';
|
|
@@ -34,7 +33,8 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
34
33
|
// #todo 需要修改主应用传入参数和business-lib数据仓库
|
|
35
34
|
var apisOkNum = 0;
|
|
36
35
|
var _useContext = useContext(BizGlobalDataContext),
|
|
37
|
-
envs = _useContext.envs
|
|
36
|
+
envs = _useContext.envs,
|
|
37
|
+
getMenuRouterByName = _useContext.getMenuRouterByName;
|
|
38
38
|
var _ref = envs || {},
|
|
39
39
|
zgText = _ref.zgText,
|
|
40
40
|
showVirtualApp = _ref.showVirtualApp,
|
|
@@ -208,16 +208,16 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
208
208
|
});
|
|
209
209
|
});
|
|
210
210
|
request(api.app.queryLeftMenus, {
|
|
211
|
-
method: '
|
|
211
|
+
method: 'get',
|
|
212
212
|
params: {
|
|
213
|
-
|
|
213
|
+
appId: data.id
|
|
214
214
|
}
|
|
215
215
|
}).then(function (res) {
|
|
216
|
-
var menus = res && res.
|
|
216
|
+
var menus = res && res.data || [];
|
|
217
217
|
var menusNameMap = {};
|
|
218
218
|
var formatMenus = function formatMenus(menus) {
|
|
219
219
|
menus.forEach(function (item) {
|
|
220
|
-
item.routeName =
|
|
220
|
+
item.routeName = getMenuRouterByName(item.name);
|
|
221
221
|
menusNameMap[item.name] = item;
|
|
222
222
|
if (item.childrens) {
|
|
223
223
|
formatMenus(item.childrens);
|
|
@@ -11,14 +11,13 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
11
11
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
12
12
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
13
13
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
14
|
-
import React, { useEffect, useState } from 'react';
|
|
14
|
+
import React, { useContext, useEffect, useState } from 'react';
|
|
15
15
|
import './style/authConfigDetail.less';
|
|
16
16
|
import constants from './../../../utils/constants';
|
|
17
|
-
import functionalPermissions from './../../../utils/functionalPermissions';
|
|
18
17
|
import { notification } from 'antd';
|
|
19
18
|
import request from './../../../utils/ajax';
|
|
20
19
|
import apis from './../../../constants/api';
|
|
21
|
-
|
|
20
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
22
21
|
var authConfigDetail = function authConfigDetail(props) {
|
|
23
22
|
var name = props.name,
|
|
24
23
|
authConfig = props.authConfig,
|
|
@@ -28,6 +27,9 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
28
27
|
groupId = props.groupId,
|
|
29
28
|
type = props.type,
|
|
30
29
|
serviceType = props.serviceType;
|
|
30
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
31
|
+
menusName = _useContext.menusName,
|
|
32
|
+
funPermissions = _useContext.funPermissions;
|
|
31
33
|
var _useState = useState([]),
|
|
32
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
33
35
|
dataAuth = _useState2[0],
|
|
@@ -137,7 +139,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
137
139
|
};
|
|
138
140
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu) {
|
|
139
141
|
// 菜单不在权限配置中
|
|
140
|
-
if (!
|
|
142
|
+
if (!funPermissions[topMenu.name]) {
|
|
141
143
|
return null;
|
|
142
144
|
}
|
|
143
145
|
var childrenArr = [];
|
|
@@ -150,7 +152,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
150
152
|
});
|
|
151
153
|
}
|
|
152
154
|
// 智能触达
|
|
153
|
-
if (topMenu.name ===
|
|
155
|
+
if (topMenu.name === (menusName === null || menusName === void 0 ? void 0 : menusName.market)) {
|
|
154
156
|
childrenArr = [{
|
|
155
157
|
name: {
|
|
156
158
|
describe: '管理员角色',
|
|
@@ -170,7 +172,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
170
172
|
var formatMenu = {
|
|
171
173
|
name: {
|
|
172
174
|
describe: topMenu.nametext,
|
|
173
|
-
key:
|
|
175
|
+
key: funPermissions[topMenu.name].key
|
|
174
176
|
},
|
|
175
177
|
show: false,
|
|
176
178
|
children: childrenArr
|
|
@@ -180,21 +182,21 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
180
182
|
var checkFunPermission = function checkFunPermission(key) {
|
|
181
183
|
// 检查功能模块权限配置,true为有权限,false无权限
|
|
182
184
|
if (!key) return false;
|
|
183
|
-
if (key ===
|
|
185
|
+
if (key === funPermissions.default.key) return true;
|
|
184
186
|
var funAuthConfig = authConfig.funAuth;
|
|
185
187
|
var funAuthKeyArr = funAuthConfig ? funAuthConfig.map(function (item) {
|
|
186
188
|
return item.resource;
|
|
187
189
|
}) : [];
|
|
188
190
|
// 智能触达:管理员、运营人员
|
|
189
191
|
if (['mkt_admin', 'mkt_ops'].includes(key)) {
|
|
190
|
-
var mktKey =
|
|
192
|
+
var mktKey = funPermissions.market.key;
|
|
191
193
|
var mktConfig = funAuthConfig && funAuthConfig.find(function (item) {
|
|
192
194
|
return item.resource === mktKey;
|
|
193
195
|
});
|
|
194
196
|
if (!mktConfig) return false;
|
|
195
197
|
return mktConfig.opts[0] === key;
|
|
196
198
|
}
|
|
197
|
-
if (funAuthKeyArr.includes(
|
|
199
|
+
if (funAuthKeyArr.includes(funPermissions.all.key)) {
|
|
198
200
|
// 功能权限:全选
|
|
199
201
|
return true;
|
|
200
202
|
}
|
|
@@ -231,14 +233,14 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
231
233
|
});
|
|
232
234
|
// 设置菜单
|
|
233
235
|
var setting = {
|
|
234
|
-
name:
|
|
236
|
+
name: funPermissions.setting.default,
|
|
235
237
|
show: false,
|
|
236
238
|
children: [{
|
|
237
|
-
name:
|
|
239
|
+
name: funPermissions.setting.company,
|
|
238
240
|
show: false,
|
|
239
241
|
children: []
|
|
240
242
|
}, {
|
|
241
|
-
name:
|
|
243
|
+
name: funPermissions.setting.app,
|
|
242
244
|
show: false,
|
|
243
245
|
children: []
|
|
244
246
|
}]
|
|
@@ -160,6 +160,9 @@ var standard = _objectSpread({
|
|
|
160
160
|
userPortrait: {
|
|
161
161
|
key: '/analysis/user/userPortrait'
|
|
162
162
|
},
|
|
163
|
+
userJourney: {
|
|
164
|
+
key: '/cxp/userJourney'
|
|
165
|
+
},
|
|
163
166
|
userTags: {
|
|
164
167
|
key: '/analysis/user/userTags'
|
|
165
168
|
},
|
|
@@ -219,6 +222,4 @@ var standard = _objectSpread({
|
|
|
219
222
|
key: '/cxp/userJourney'
|
|
220
223
|
}
|
|
221
224
|
} : {});
|
|
222
|
-
export default
|
|
223
|
-
standard: standard
|
|
224
|
-
};
|
|
225
|
+
export default standard;
|
package/es/utils/util.js
CHANGED
|
@@ -640,7 +640,8 @@ var util = {
|
|
|
640
640
|
adChannel: 'router-dataAccess-advanced',
|
|
641
641
|
debug: 'router-dataAccess-debug',
|
|
642
642
|
dataset: 'router-cdp-dataset',
|
|
643
|
-
idmapping: 'router-idMapping-list'
|
|
643
|
+
idmapping: 'router-idMapping-list',
|
|
644
|
+
userJourney: 'router-appUserJourney'
|
|
644
645
|
};
|
|
645
646
|
return hash[name] ? hash[name] : 'router-' + name;
|
|
646
647
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7-config.1",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/lodash": "^4.14.182",
|
|
39
39
|
"@umijs/fabric": "^2.8.1",
|
|
40
40
|
"@umijs/test": "^3.0.5",
|
|
41
|
-
"@zgfe/business-lib": "
|
|
41
|
+
"@zgfe/business-lib": "1.1.62-journey.0",
|
|
42
42
|
"@zgfe/modules-demo-manage": "^1.0.1",
|
|
43
43
|
"antd": "4.22.6",
|
|
44
44
|
"dumi": "^1.1.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "ba8370be39823bca2360bf9bf446f787ce506d84",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|