@zgfe/modules-settings 1.2.1 → 1.2.2-alpha.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.
- package/es/constants/icons/demo.css +0 -0
- package/es/constants/icons/demo_index.html +0 -0
- package/es/constants/icons/iconfont.css +0 -0
- package/es/constants/icons/iconfont.js +0 -0
- package/es/constants/icons/iconfont.json +0 -0
- package/es/constants/icons/iconfont.ttf +0 -0
- package/es/constants/icons/iconfont.woff +0 -0
- package/es/constants/icons/iconfont.woff2 +0 -0
- package/es/modules/appSettings/member/index.js +3 -3
- package/es/modules/companySetting/cost/index.less +0 -0
- package/es/modules/companySetting/demo.d.ts +3 -0
- package/es/modules/companySetting/demo.js +21 -0
- package/es/modules/companySetting/edit/authConfig.js +23 -21
- package/es/modules/companySetting/edit/authConfigCEP.js +7 -5
- package/es/modules/companySetting/index.js +3 -3
- package/es/modules/companySetting/userGroup/authConfigDetail.js +14 -14
- package/es/modules/companySetting/wechatBinding/index.less +0 -0
- package/es/utils/functionalPermissions.d.ts +2 -5
- package/es/utils/functionalPermissions.js +7 -4
- package/es/utils/util.js +2 -1
- package/package.json +2 -2
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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],
|
|
@@ -141,7 +141,7 @@ var AppMember = function AppMember() {
|
|
|
141
141
|
var menus = (res === null || res === void 0 ? void 0 : res.leftMenus) || [];
|
|
142
142
|
var formatMenus = function formatMenus(menus) {
|
|
143
143
|
menus.forEach(function (item) {
|
|
144
|
-
item.routeName =
|
|
144
|
+
item.routeName = getMenuRouterByName(item.name);
|
|
145
145
|
if (item.childrens) {
|
|
146
146
|
formatMenus(item.childrens);
|
|
147
147
|
}
|
|
File without changes
|
|
@@ -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,16 +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 Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
13
13
|
var config = props.config,
|
|
14
14
|
appList = props.appList,
|
|
15
|
-
isMarsUi = props.isMarsUi,
|
|
16
15
|
leftMenus = props.leftMenus;
|
|
16
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
17
|
+
menusName = _useContext.menusName,
|
|
18
|
+
funPermissions = _useContext.funPermissions;
|
|
17
19
|
var _useState = useState({}),
|
|
18
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
19
21
|
dataPermissions = _useState2[0],
|
|
@@ -59,7 +61,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
59
61
|
console.log('functionalPermissions');
|
|
60
62
|
if (functionalPermissions.checked) {
|
|
61
63
|
funAuth.push({
|
|
62
|
-
resource: funPermissions
|
|
64
|
+
resource: funPermissions.all.key,
|
|
63
65
|
opts: [constants.functionOpts.all]
|
|
64
66
|
});
|
|
65
67
|
functionalPermissions.children && functionalPermissions.children.forEach(function (item) {
|
|
@@ -201,7 +203,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
201
203
|
console.log(map);
|
|
202
204
|
// 顶部菜单功能权限
|
|
203
205
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu, checkAll) {
|
|
204
|
-
var menuFunPerConstants = funPermissions[
|
|
206
|
+
var menuFunPerConstants = funPermissions[topMenu.name];
|
|
205
207
|
// 菜单不在权限配置中
|
|
206
208
|
if (!menuFunPerConstants) {
|
|
207
209
|
return null;
|
|
@@ -238,7 +240,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
238
240
|
indeterminate: !(checkState || !childrenCheckArr.length && !indeterminateArr.length),
|
|
239
241
|
children: childrens
|
|
240
242
|
};
|
|
241
|
-
if (topMenu.name ===
|
|
243
|
+
if (topMenu.name === (menusName === null || menusName === void 0 ? void 0 : menusName.market)) {
|
|
242
244
|
formatMenu.radio = true;
|
|
243
245
|
formatMenu.children = [{
|
|
244
246
|
describe: '管理员角色',
|
|
@@ -259,7 +261,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
259
261
|
return formatMenu;
|
|
260
262
|
};
|
|
261
263
|
var menuFun = [];
|
|
262
|
-
var isAll = !!map[funPermissions
|
|
264
|
+
var isAll = !!map[funPermissions.all.key];
|
|
263
265
|
console.log('dskfhk', leftMenus);
|
|
264
266
|
leftMenus.forEach(function (menu) {
|
|
265
267
|
var topMenuFun = loopFormatTopMenu(menu, isAll);
|
|
@@ -270,29 +272,29 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
270
272
|
menuFun.push(topMenuFun);
|
|
271
273
|
}
|
|
272
274
|
});
|
|
273
|
-
var settingIsAll = !!map[funPermissions
|
|
275
|
+
var settingIsAll = !!map[funPermissions.setting.default.key];
|
|
274
276
|
menuFun.push({
|
|
275
|
-
describe: funPermissions
|
|
276
|
-
key: funPermissions
|
|
277
|
-
checked: isAll || !!map[funPermissions
|
|
277
|
+
describe: funPermissions.setting.default.describe,
|
|
278
|
+
key: funPermissions.setting.default.key,
|
|
279
|
+
checked: isAll || !!map[funPermissions.setting.default.key],
|
|
278
280
|
indeterminate: false,
|
|
279
281
|
disable: false,
|
|
280
282
|
supportVirtualApp: true,
|
|
281
283
|
children: [{
|
|
282
|
-
// ...funPermissions
|
|
283
|
-
describe: funPermissions
|
|
284
|
-
key: funPermissions
|
|
284
|
+
// ...funPermissions.setting.company,
|
|
285
|
+
describe: funPermissions.setting.company.describe,
|
|
286
|
+
key: funPermissions.setting.company.key,
|
|
285
287
|
disable: false,
|
|
286
288
|
supportVirtualApp: true,
|
|
287
|
-
checked: isAll || settingIsAll || !!map[funPermissions
|
|
289
|
+
checked: isAll || settingIsAll || !!map[funPermissions.setting.company.key],
|
|
288
290
|
children: []
|
|
289
291
|
}, {
|
|
290
|
-
// ...funPermissions
|
|
291
|
-
describe: funPermissions
|
|
292
|
-
key: funPermissions
|
|
292
|
+
// ...funPermissions.setting.app,
|
|
293
|
+
describe: funPermissions.setting.app.describe,
|
|
294
|
+
key: funPermissions.setting.app.key,
|
|
293
295
|
disable: false,
|
|
294
296
|
supportVirtualApp: true,
|
|
295
|
-
checked: isAll || settingIsAll || !!map[funPermissions
|
|
297
|
+
checked: isAll || settingIsAll || !!map[funPermissions.setting.app.key],
|
|
296
298
|
children: []
|
|
297
299
|
}]
|
|
298
300
|
});
|
|
@@ -305,8 +307,8 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
305
307
|
console.log(menuFun);
|
|
306
308
|
setFunctionalPermissions({
|
|
307
309
|
describe: '功能权限',
|
|
308
|
-
key: funPermissions
|
|
309
|
-
// checked: !!map[funPermissions
|
|
310
|
+
key: funPermissions.all.key,
|
|
311
|
+
// checked: !!map[funPermissions.all.key],
|
|
310
312
|
checked: checkedArr.length === menuFun.length,
|
|
311
313
|
disable: false,
|
|
312
314
|
supportVirtualApp: true,
|
|
@@ -10,14 +10,16 @@ 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 isMarsUi = props.isMarsUi,
|
|
20
20
|
CEPData = props.CEPData;
|
|
21
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
22
|
+
funPermissions = _useContext.funPermissions;
|
|
21
23
|
var _useState = useState({}),
|
|
22
24
|
_useState2 = _slicedToArray(_useState, 2),
|
|
23
25
|
dataPermissions = _useState2[0],
|
|
@@ -169,8 +171,8 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
169
171
|
});
|
|
170
172
|
setFunctionalPermissions({
|
|
171
173
|
describe: '功能权限',
|
|
172
|
-
key: funPermissions
|
|
173
|
-
// checked: !!map[funPermissions
|
|
174
|
+
key: funPermissions.all.key,
|
|
175
|
+
// checked: !!map[funPermissions.all.key],
|
|
174
176
|
checked: checkedFunArr.length === dealFunConfigList.length,
|
|
175
177
|
disable: false,
|
|
176
178
|
supportVirtualApp: true,
|
|
@@ -187,7 +189,7 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
187
189
|
setDataPermissions({
|
|
188
190
|
key: 1,
|
|
189
191
|
describe: '数据权限',
|
|
190
|
-
// checked: !!map[funPermissions
|
|
192
|
+
// checked: !!map[funPermissions.all.key],
|
|
191
193
|
checked: checkedAppArr.length === dealAppConfigList.length,
|
|
192
194
|
indeterminate: !(checkedAppArr.length === dealAppConfigList.length || !checkedAppArr.length && !indeterminateAppArr.length),
|
|
193
195
|
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';
|
|
@@ -33,7 +32,8 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
33
32
|
// #todo 需要修改主应用传入参数和business-lib数据仓库
|
|
34
33
|
var apisOkNum = 0;
|
|
35
34
|
var _useContext = useContext(BizGlobalDataContext),
|
|
36
|
-
envs = _useContext.envs
|
|
35
|
+
envs = _useContext.envs,
|
|
36
|
+
getMenuRouterByName = _useContext.getMenuRouterByName;
|
|
37
37
|
var _ref = envs || {},
|
|
38
38
|
zgText = _ref.zgText,
|
|
39
39
|
isMarsUi = _ref.isMarsUi,
|
|
@@ -216,7 +216,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
216
216
|
var menusNameMap = {};
|
|
217
217
|
var formatMenus = function formatMenus(menus) {
|
|
218
218
|
menus.forEach(function (item) {
|
|
219
|
-
item.routeName =
|
|
219
|
+
item.routeName = getMenuRouterByName(item.name);
|
|
220
220
|
menusNameMap[item.name] = item;
|
|
221
221
|
if (item.childrens) {
|
|
222
222
|
formatMenus(item.childrens);
|
|
@@ -11,24 +11,25 @@ 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,
|
|
25
24
|
companyAppList = props.companyAppList,
|
|
26
25
|
leftMenus = props.leftMenus,
|
|
27
|
-
isMarsUi = props.isMarsUi,
|
|
28
26
|
id = props.id,
|
|
29
27
|
groupId = props.groupId,
|
|
30
28
|
type = props.type,
|
|
31
29
|
serviceType = props.serviceType;
|
|
30
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
31
|
+
menusName = _useContext.menusName,
|
|
32
|
+
funPermissions = _useContext.funPermissions;
|
|
32
33
|
var _useState = useState([]),
|
|
33
34
|
_useState2 = _slicedToArray(_useState, 2),
|
|
34
35
|
dataAuth = _useState2[0],
|
|
@@ -46,7 +47,6 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
46
47
|
cepFunConfig = _useState8[0],
|
|
47
48
|
setCepFunConfig = _useState8[1];
|
|
48
49
|
// #todo isAdmin 需要添加
|
|
49
|
-
// console.log('dsfdsfsdfdsfdsfdsf');
|
|
50
50
|
useEffect(function () {
|
|
51
51
|
reworkAppList();
|
|
52
52
|
reworkFunAuth();
|
|
@@ -141,7 +141,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
141
141
|
};
|
|
142
142
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu) {
|
|
143
143
|
// 菜单不在权限配置中
|
|
144
|
-
if (!
|
|
144
|
+
if (!funPermissions[topMenu.name]) {
|
|
145
145
|
return null;
|
|
146
146
|
}
|
|
147
147
|
var childrenArr = [];
|
|
@@ -154,7 +154,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
// 智能触达
|
|
157
|
-
if (topMenu.name ===
|
|
157
|
+
if (topMenu.name === (menusName === null || menusName === void 0 ? void 0 : menusName.market)) {
|
|
158
158
|
childrenArr = [{
|
|
159
159
|
name: {
|
|
160
160
|
describe: '管理员角色',
|
|
@@ -174,7 +174,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
174
174
|
var formatMenu = {
|
|
175
175
|
name: {
|
|
176
176
|
describe: topMenu.nametext,
|
|
177
|
-
key:
|
|
177
|
+
key: funPermissions[topMenu.name].key
|
|
178
178
|
},
|
|
179
179
|
show: false,
|
|
180
180
|
children: childrenArr
|
|
@@ -184,21 +184,21 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
184
184
|
var checkFunPermission = function checkFunPermission(key) {
|
|
185
185
|
// 检查功能模块权限配置,true为有权限,false无权限
|
|
186
186
|
if (!key) return false;
|
|
187
|
-
if (key ===
|
|
187
|
+
if (key === funPermissions.default.key) return true;
|
|
188
188
|
var funAuthConfig = authConfig.funAuth;
|
|
189
189
|
var funAuthKeyArr = funAuthConfig ? funAuthConfig.map(function (item) {
|
|
190
190
|
return item.resource;
|
|
191
191
|
}) : [];
|
|
192
192
|
// 智能触达:管理员、运营人员
|
|
193
193
|
if (['mkt_admin', 'mkt_ops'].includes(key)) {
|
|
194
|
-
var mktKey =
|
|
194
|
+
var mktKey = funPermissions.market.key;
|
|
195
195
|
var mktConfig = funAuthConfig && funAuthConfig.find(function (item) {
|
|
196
196
|
return item.resource === mktKey;
|
|
197
197
|
});
|
|
198
198
|
if (!mktConfig) return false;
|
|
199
199
|
return mktConfig.opts[0] === key;
|
|
200
200
|
}
|
|
201
|
-
if (funAuthKeyArr.includes(
|
|
201
|
+
if (funAuthKeyArr.includes(funPermissions.all.key)) {
|
|
202
202
|
// 功能权限:全选
|
|
203
203
|
return true;
|
|
204
204
|
}
|
|
@@ -235,14 +235,14 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
235
235
|
});
|
|
236
236
|
// 设置菜单
|
|
237
237
|
var setting = {
|
|
238
|
-
name:
|
|
238
|
+
name: funPermissions.setting.default,
|
|
239
239
|
show: false,
|
|
240
240
|
children: [{
|
|
241
|
-
name:
|
|
241
|
+
name: funPermissions.setting.company,
|
|
242
242
|
show: false,
|
|
243
243
|
children: []
|
|
244
244
|
}, {
|
|
245
|
-
name:
|
|
245
|
+
name: funPermissions.setting.app,
|
|
246
246
|
show: false,
|
|
247
247
|
children: []
|
|
248
248
|
}]
|
|
File without changes
|
|
@@ -163,6 +163,9 @@ var standard = _objectSpread({
|
|
|
163
163
|
userPortrait: {
|
|
164
164
|
key: '/user/userPortrait'
|
|
165
165
|
},
|
|
166
|
+
userJourney: {
|
|
167
|
+
key: '/cxp/userJourney'
|
|
168
|
+
},
|
|
166
169
|
userTags: {
|
|
167
170
|
key: '/user/userTags'
|
|
168
171
|
},
|
|
@@ -315,6 +318,9 @@ var mars = {
|
|
|
315
318
|
userPortrait: {
|
|
316
319
|
key: '/analysis/user/userPortrait'
|
|
317
320
|
},
|
|
321
|
+
userJourney: {
|
|
322
|
+
key: '/cxp/userJourney'
|
|
323
|
+
},
|
|
318
324
|
custom: {
|
|
319
325
|
key: '/analysis/custom'
|
|
320
326
|
},
|
|
@@ -420,7 +426,4 @@ var mars = {
|
|
|
420
426
|
}
|
|
421
427
|
}
|
|
422
428
|
};
|
|
423
|
-
export default
|
|
424
|
-
mars: mars,
|
|
425
|
-
standard: standard
|
|
426
|
-
};
|
|
429
|
+
export default standard;
|
package/es/utils/util.js
CHANGED
|
@@ -641,7 +641,8 @@ var util = {
|
|
|
641
641
|
adChannel: 'router-dataAccess-advanced',
|
|
642
642
|
debug: 'router-dataAccess-debug',
|
|
643
643
|
dataset: 'router-cdp-dataset',
|
|
644
|
-
idmapping: 'router-idMapping-list'
|
|
644
|
+
idmapping: 'router-idMapping-list',
|
|
645
|
+
userJourney: 'router-appUserJourney'
|
|
645
646
|
};
|
|
646
647
|
return hash[name] ? hash[name] : 'router-' + name;
|
|
647
648
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2-alpha.0",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"umi-request": "^1.4.0",
|
|
52
52
|
"yorkie": "^2.0.0"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "60639a4953c7e71faf6a1bf31092f0a02dfe5776",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|