@zgfe/modules-settings 1.2.2-alpha.0 → 1.2.2-alpha.3
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 +8 -13
- package/es/modules/appSettings/member/modal.d.ts +0 -1
- package/es/modules/appSettings/member/modal.js +0 -4
- package/es/modules/companySetting/cost/index.less +0 -0
- package/es/modules/companySetting/edit/authConfig.d.ts +0 -1
- package/es/modules/companySetting/edit/authConfig.js +20 -23
- package/es/modules/companySetting/edit/authConfigCEP.d.ts +0 -1
- package/es/modules/companySetting/edit/authConfigCEP.js +6 -9
- package/es/modules/companySetting/edit/user.d.ts +0 -1
- package/es/modules/companySetting/edit/user.js +1 -4
- package/es/modules/companySetting/edit/userGroup.d.ts +0 -1
- package/es/modules/companySetting/edit/userGroup.js +1 -6
- package/es/modules/companySetting/index.js +9 -12
- package/es/modules/companySetting/user/index.d.ts +0 -1
- package/es/modules/companySetting/user/index.js +0 -5
- package/es/modules/companySetting/userGroup/authConfigDetail.d.ts +0 -1
- package/es/modules/companySetting/userGroup/authConfigDetail.js +13 -14
- package/es/modules/companySetting/userGroup/groupItem.d.ts +0 -1
- package/es/modules/companySetting/userGroup/groupItem.js +0 -2
- package/es/modules/companySetting/userGroup/index.d.ts +0 -1
- package/es/modules/companySetting/userGroup/index.js +0 -3
- package/es/modules/companySetting/wechatBinding/index.less +0 -0
- package/es/utils/functionalPermissions.d.ts +4 -2
- package/es/utils/functionalPermissions.js +4 -209
- package/es/utils/util.js +1 -2
- package/package.json +2 -2
- package/es/modules/companySetting/demo.d.ts +0 -3
- package/es/modules/companySetting/demo.js +0 -21
|
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';
|
|
13
14
|
import { EyeOutlined } from '@ant-design/icons';
|
|
14
15
|
import SetingModal from './modal';
|
|
15
16
|
var AppMember = function AppMember() {
|
|
16
17
|
var _useContext = useContext(BizGlobalDataContext),
|
|
17
18
|
currentApp = _useContext.currentApp,
|
|
18
|
-
currentUser = _useContext.currentUser
|
|
19
|
-
getMenuRouterByName = _useContext.getMenuRouterByName;
|
|
19
|
+
currentUser = _useContext.currentUser;
|
|
20
20
|
var _useState = useState([]),
|
|
21
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
22
22
|
memberList = _useState2[0],
|
|
@@ -39,16 +39,12 @@ var AppMember = function AppMember() {
|
|
|
39
39
|
setLeftMenus = _useState10[1];
|
|
40
40
|
var _useState11 = useState(false),
|
|
41
41
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var _useState13 = useState(
|
|
42
|
+
isModalOpen = _useState12[0],
|
|
43
|
+
setIsModalOpen = _useState12[1];
|
|
44
|
+
var _useState13 = useState({}),
|
|
45
45
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
var _useState15 = useState({}),
|
|
49
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
50
|
-
modalData = _useState16[0],
|
|
51
|
-
setModalData = _useState16[1];
|
|
46
|
+
modalData = _useState14[0],
|
|
47
|
+
setModalData = _useState14[1];
|
|
52
48
|
var setingModalhandle = function setingModalhandle(data, dealArr) {
|
|
53
49
|
setModalData({
|
|
54
50
|
data: data,
|
|
@@ -141,7 +137,7 @@ var AppMember = function AppMember() {
|
|
|
141
137
|
var menus = (res === null || res === void 0 ? void 0 : res.leftMenus) || [];
|
|
142
138
|
var formatMenus = function formatMenus(menus) {
|
|
143
139
|
menus.forEach(function (item) {
|
|
144
|
-
item.routeName = getMenuRouterByName(item.name);
|
|
140
|
+
item.routeName = util.getMenuRouterByName(item.name);
|
|
145
141
|
if (item.childrens) {
|
|
146
142
|
formatMenus(item.childrens);
|
|
147
143
|
}
|
|
@@ -196,7 +192,6 @@ var AppMember = function AppMember() {
|
|
|
196
192
|
setIsModalOpen: setIsModalOpen,
|
|
197
193
|
companyAppList: companyAppList,
|
|
198
194
|
leftMenus: leftMenus,
|
|
199
|
-
isMarsUi: isMarsUi,
|
|
200
195
|
data: modalData.data,
|
|
201
196
|
dealArr: modalData.dealArr
|
|
202
197
|
}));
|
|
@@ -11,7 +11,6 @@ var SetingModal = function SetingModal(props) {
|
|
|
11
11
|
data = props.data,
|
|
12
12
|
companyAppList = props.companyAppList,
|
|
13
13
|
leftMenus = props.leftMenus,
|
|
14
|
-
isMarsUi = props.isMarsUi,
|
|
15
14
|
dealArr = props.dealArr;
|
|
16
15
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
17
16
|
className: "seting-modal-box",
|
|
@@ -30,7 +29,6 @@ var SetingModal = function SetingModal(props) {
|
|
|
30
29
|
authConfig: data.authConfig.defaultAuth,
|
|
31
30
|
companyAppList: companyAppList,
|
|
32
31
|
leftMenus: leftMenus,
|
|
33
|
-
isMarsUi: isMarsUi,
|
|
34
32
|
id: data.id,
|
|
35
33
|
type: 1,
|
|
36
34
|
serviceType: currentUser === null || currentUser === void 0 ? void 0 : currentUser.serviceType
|
|
@@ -44,7 +42,6 @@ var SetingModal = function SetingModal(props) {
|
|
|
44
42
|
key: item.id,
|
|
45
43
|
authConfig: item.authConfig,
|
|
46
44
|
leftMenus: leftMenus,
|
|
47
|
-
isMarsUi: isMarsUi,
|
|
48
45
|
companyAppList: companyAppList,
|
|
49
46
|
name: item === null || item === void 0 ? void 0 : item.groupName,
|
|
50
47
|
groupId: item.id,
|
|
@@ -57,7 +54,6 @@ var SetingModal = function SetingModal(props) {
|
|
|
57
54
|
funAuth: []
|
|
58
55
|
},
|
|
59
56
|
leftMenus: leftMenus,
|
|
60
|
-
isMarsUi: isMarsUi,
|
|
61
57
|
companyAppList: companyAppList,
|
|
62
58
|
name: '',
|
|
63
59
|
type: 2,
|
|
File without changes
|
|
@@ -4,18 +4,15 @@ 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
|
|
7
|
+
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
8
8
|
import './styles/authConfig.less';
|
|
9
9
|
import constants from './../../../utils/constants';
|
|
10
|
+
import funPermissions from './../../../utils/functionalPermissions';
|
|
10
11
|
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
15
|
leftMenus = props.leftMenus;
|
|
16
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
17
|
-
menusName = _useContext.menusName,
|
|
18
|
-
funPermissions = _useContext.funPermissions;
|
|
19
16
|
var _useState = useState({}),
|
|
20
17
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21
18
|
dataPermissions = _useState2[0],
|
|
@@ -61,7 +58,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
61
58
|
console.log('functionalPermissions');
|
|
62
59
|
if (functionalPermissions.checked) {
|
|
63
60
|
funAuth.push({
|
|
64
|
-
resource: funPermissions.all.key,
|
|
61
|
+
resource: funPermissions['standard'].all.key,
|
|
65
62
|
opts: [constants.functionOpts.all]
|
|
66
63
|
});
|
|
67
64
|
functionalPermissions.children && functionalPermissions.children.forEach(function (item) {
|
|
@@ -203,7 +200,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
203
200
|
console.log(map);
|
|
204
201
|
// 顶部菜单功能权限
|
|
205
202
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu, checkAll) {
|
|
206
|
-
var menuFunPerConstants = funPermissions[topMenu.name];
|
|
203
|
+
var menuFunPerConstants = funPermissions['standard'][topMenu.name];
|
|
207
204
|
// 菜单不在权限配置中
|
|
208
205
|
if (!menuFunPerConstants) {
|
|
209
206
|
return null;
|
|
@@ -240,7 +237,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
240
237
|
indeterminate: !(checkState || !childrenCheckArr.length && !indeterminateArr.length),
|
|
241
238
|
children: childrens
|
|
242
239
|
};
|
|
243
|
-
if (topMenu.name ===
|
|
240
|
+
if (topMenu.name === constants.menusName.market) {
|
|
244
241
|
formatMenu.radio = true;
|
|
245
242
|
formatMenu.children = [{
|
|
246
243
|
describe: '管理员角色',
|
|
@@ -261,7 +258,7 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
261
258
|
return formatMenu;
|
|
262
259
|
};
|
|
263
260
|
var menuFun = [];
|
|
264
|
-
var isAll = !!map[funPermissions.all.key];
|
|
261
|
+
var isAll = !!map[funPermissions['standard'].all.key];
|
|
265
262
|
console.log('dskfhk', leftMenus);
|
|
266
263
|
leftMenus.forEach(function (menu) {
|
|
267
264
|
var topMenuFun = loopFormatTopMenu(menu, isAll);
|
|
@@ -272,29 +269,29 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
272
269
|
menuFun.push(topMenuFun);
|
|
273
270
|
}
|
|
274
271
|
});
|
|
275
|
-
var settingIsAll = !!map[funPermissions.setting.default.key];
|
|
272
|
+
var settingIsAll = !!map[funPermissions['standard'].setting.default.key];
|
|
276
273
|
menuFun.push({
|
|
277
|
-
describe: funPermissions.setting.default.describe,
|
|
278
|
-
key: funPermissions.setting.default.key,
|
|
279
|
-
checked: isAll || !!map[funPermissions.setting.default.key],
|
|
274
|
+
describe: funPermissions['standard'].setting.default.describe,
|
|
275
|
+
key: funPermissions['standard'].setting.default.key,
|
|
276
|
+
checked: isAll || !!map[funPermissions['standard'].setting.default.key],
|
|
280
277
|
indeterminate: false,
|
|
281
278
|
disable: false,
|
|
282
279
|
supportVirtualApp: true,
|
|
283
280
|
children: [{
|
|
284
|
-
// ...funPermissions.setting.company,
|
|
285
|
-
describe: funPermissions.setting.company.describe,
|
|
286
|
-
key: funPermissions.setting.company.key,
|
|
281
|
+
// ...funPermissions['standard'].setting.company,
|
|
282
|
+
describe: funPermissions['standard'].setting.company.describe,
|
|
283
|
+
key: funPermissions['standard'].setting.company.key,
|
|
287
284
|
disable: false,
|
|
288
285
|
supportVirtualApp: true,
|
|
289
|
-
checked: isAll || settingIsAll || !!map[funPermissions.setting.company.key],
|
|
286
|
+
checked: isAll || settingIsAll || !!map[funPermissions['standard'].setting.company.key],
|
|
290
287
|
children: []
|
|
291
288
|
}, {
|
|
292
|
-
// ...funPermissions.setting.app,
|
|
293
|
-
describe: funPermissions.setting.app.describe,
|
|
294
|
-
key: funPermissions.setting.app.key,
|
|
289
|
+
// ...funPermissions['standard'].setting.app,
|
|
290
|
+
describe: funPermissions['standard'].setting.app.describe,
|
|
291
|
+
key: funPermissions['standard'].setting.app.key,
|
|
295
292
|
disable: false,
|
|
296
293
|
supportVirtualApp: true,
|
|
297
|
-
checked: isAll || settingIsAll || !!map[funPermissions.setting.app.key],
|
|
294
|
+
checked: isAll || settingIsAll || !!map[funPermissions['standard'].setting.app.key],
|
|
298
295
|
children: []
|
|
299
296
|
}]
|
|
300
297
|
});
|
|
@@ -307,8 +304,8 @@ var Info = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
307
304
|
console.log(menuFun);
|
|
308
305
|
setFunctionalPermissions({
|
|
309
306
|
describe: '功能权限',
|
|
310
|
-
key: funPermissions.all.key,
|
|
311
|
-
// checked: !!map[funPermissions.all.key],
|
|
307
|
+
key: funPermissions['standard'].all.key,
|
|
308
|
+
// checked: !!map[funPermissions['standard'].all.key],
|
|
312
309
|
checked: checkedArr.length === menuFun.length,
|
|
313
310
|
disable: false,
|
|
314
311
|
supportVirtualApp: true,
|
|
@@ -10,16 +10,13 @@ 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
|
|
13
|
+
import React, { useEffect, useState, forwardRef, useImperativeHandle } from 'react';
|
|
14
14
|
import './styles/authConfig.less';
|
|
15
15
|
import constants from './../../../utils/constants';
|
|
16
|
+
import funPermissions from './../../../utils/functionalPermissions';
|
|
16
17
|
import AuthGroup from './authGroup';
|
|
17
|
-
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
18
18
|
var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
19
|
-
var
|
|
20
|
-
CEPData = props.CEPData;
|
|
21
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
22
|
-
funPermissions = _useContext.funPermissions;
|
|
19
|
+
var CEPData = props.CEPData;
|
|
23
20
|
var _useState = useState({}),
|
|
24
21
|
_useState2 = _slicedToArray(_useState, 2),
|
|
25
22
|
dataPermissions = _useState2[0],
|
|
@@ -171,8 +168,8 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
171
168
|
});
|
|
172
169
|
setFunctionalPermissions({
|
|
173
170
|
describe: '功能权限',
|
|
174
|
-
key: funPermissions.all.key,
|
|
175
|
-
// checked: !!map[funPermissions.all.key],
|
|
171
|
+
key: funPermissions['standard'].all.key,
|
|
172
|
+
// checked: !!map[funPermissions['standard'].all.key],
|
|
176
173
|
checked: checkedFunArr.length === dealFunConfigList.length,
|
|
177
174
|
disable: false,
|
|
178
175
|
supportVirtualApp: true,
|
|
@@ -189,7 +186,7 @@ var AuthConfigCEP = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
189
186
|
setDataPermissions({
|
|
190
187
|
key: 1,
|
|
191
188
|
describe: '数据权限',
|
|
192
|
-
// checked: !!map[funPermissions.all.key],
|
|
189
|
+
// checked: !!map[funPermissions['standard'].all.key],
|
|
193
190
|
checked: checkedAppArr.length === dealAppConfigList.length,
|
|
194
191
|
indeterminate: !(checkedAppArr.length === dealAppConfigList.length || !checkedAppArr.length && !indeterminateAppArr.length),
|
|
195
192
|
children: dealAppConfigList
|
|
@@ -23,7 +23,6 @@ var Info = function Info(props) {
|
|
|
23
23
|
data = props.data,
|
|
24
24
|
allGroupInfos = props.allGroupInfos,
|
|
25
25
|
companyAppList = props.companyAppList,
|
|
26
|
-
isMarsUi = props.isMarsUi,
|
|
27
26
|
leftMenus = props.leftMenus,
|
|
28
27
|
serviceType = props.serviceType,
|
|
29
28
|
onCancel = props.onCancel,
|
|
@@ -277,15 +276,13 @@ var Info = function Info(props) {
|
|
|
277
276
|
ref: refAuthConfig,
|
|
278
277
|
config: data.authConfig ? data.authConfig.defaultAuth : {},
|
|
279
278
|
appList: companyAppList,
|
|
280
|
-
isMarsUi: isMarsUi,
|
|
281
279
|
leftMenus: leftMenus
|
|
282
280
|
})) : null, !serviceType || serviceType === 2 ? /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
283
281
|
tab: "CEP",
|
|
284
282
|
key: "cep"
|
|
285
283
|
}, /*#__PURE__*/React.createElement(AuthConfigCEP, {
|
|
286
284
|
ref: refAuthCEPConfig,
|
|
287
|
-
CEPData: CEPData
|
|
288
|
-
isMarsUi: isMarsUi
|
|
285
|
+
CEPData: CEPData
|
|
289
286
|
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
290
287
|
className: "company-setting-footer"
|
|
291
288
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -24,7 +24,6 @@ var CompanySettingUserGroup = function CompanySettingUserGroup(props) {
|
|
|
24
24
|
data = props.data,
|
|
25
25
|
allGroupInfos = props.allGroupInfos,
|
|
26
26
|
companyAppList = props.companyAppList,
|
|
27
|
-
isMarsUi = props.isMarsUi,
|
|
28
27
|
leftMenus = props.leftMenus,
|
|
29
28
|
isAdmin = props.isAdmin,
|
|
30
29
|
serviceType = props.serviceType,
|
|
@@ -353,17 +352,13 @@ var CompanySettingUserGroup = function CompanySettingUserGroup(props) {
|
|
|
353
352
|
ref: refAuthConfig,
|
|
354
353
|
config: data && data.authConfig || {},
|
|
355
354
|
appList: companyAppList,
|
|
356
|
-
isMarsUi: isMarsUi,
|
|
357
355
|
leftMenus: leftMenus
|
|
358
356
|
})) : null, !serviceType || serviceType === 2 ? /*#__PURE__*/React.createElement(Tabs.TabPane, {
|
|
359
357
|
tab: "CEP",
|
|
360
358
|
key: "cep"
|
|
361
359
|
}, /*#__PURE__*/React.createElement(AuthConfigCEP, {
|
|
362
360
|
ref: refAuthCEPConfig,
|
|
363
|
-
CEPData: CEPData
|
|
364
|
-
// config={data.authConfig}
|
|
365
|
-
// appList={companyAppList}
|
|
366
|
-
isMarsUi: isMarsUi
|
|
361
|
+
CEPData: CEPData
|
|
367
362
|
})) : null), /*#__PURE__*/React.createElement("div", {
|
|
368
363
|
className: "company-setting-footer"
|
|
369
364
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -13,6 +13,7 @@ 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';
|
|
16
17
|
import api from './../../constants/api';
|
|
17
18
|
import PageLoading from '../../components/pageLoading';
|
|
18
19
|
import { notification } from 'antd';
|
|
@@ -32,11 +33,9 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
32
33
|
// #todo 需要修改主应用传入参数和business-lib数据仓库
|
|
33
34
|
var apisOkNum = 0;
|
|
34
35
|
var _useContext = useContext(BizGlobalDataContext),
|
|
35
|
-
envs = _useContext.envs
|
|
36
|
-
getMenuRouterByName = _useContext.getMenuRouterByName;
|
|
36
|
+
envs = _useContext.envs;
|
|
37
37
|
var _ref = envs || {},
|
|
38
38
|
zgText = _ref.zgText,
|
|
39
|
-
isMarsUi = _ref.isMarsUi,
|
|
40
39
|
showVirtualApp = _ref.showVirtualApp,
|
|
41
40
|
showDataDaily = _ref.showDataDaily,
|
|
42
41
|
ENVIRONMENT = _ref.ENVIRONMENT;
|
|
@@ -216,7 +215,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
216
215
|
var menusNameMap = {};
|
|
217
216
|
var formatMenus = function formatMenus(menus) {
|
|
218
217
|
menus.forEach(function (item) {
|
|
219
|
-
item.routeName = getMenuRouterByName(item.name);
|
|
218
|
+
item.routeName = util.getMenuRouterByName(item.name);
|
|
220
219
|
menusNameMap[item.name] = item;
|
|
221
220
|
if (item.childrens) {
|
|
222
221
|
formatMenus(item.childrens);
|
|
@@ -640,7 +639,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
640
639
|
companyName: companyName,
|
|
641
640
|
changeCompanyNameCallback: changeCompanyNameCallback
|
|
642
641
|
}),
|
|
643
|
-
hidden:
|
|
642
|
+
hidden: false
|
|
644
643
|
}, {
|
|
645
644
|
key: 'userGroup',
|
|
646
645
|
label: '用户组',
|
|
@@ -649,13 +648,12 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
649
648
|
companyAppList: companyAppList,
|
|
650
649
|
allGroupInfos: allGroupInfos,
|
|
651
650
|
leftMenus: leftMenus,
|
|
652
|
-
isMarsUi: isMarsUi,
|
|
653
651
|
isAdmin: isAdmin,
|
|
654
652
|
delGroupCallback: delGroupCallback,
|
|
655
653
|
updateGroupAuthCallback: updateGroupAuthCallback,
|
|
656
654
|
serviceType: serviceType
|
|
657
655
|
}),
|
|
658
|
-
hidden:
|
|
656
|
+
hidden: false
|
|
659
657
|
}, {
|
|
660
658
|
key: 'user',
|
|
661
659
|
label: '用户',
|
|
@@ -667,7 +665,6 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
667
665
|
companyAppList: companyAppList,
|
|
668
666
|
allGroupInfos: allGroupInfos,
|
|
669
667
|
leftMenus: leftMenus,
|
|
670
|
-
isMarsUi: isMarsUi,
|
|
671
668
|
removeUserCallback: removeUserCallback,
|
|
672
669
|
changeUserAuthCallback: changeUserAuthCallback,
|
|
673
670
|
createMembersCallback: createMembersCallback,
|
|
@@ -675,7 +672,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
675
672
|
isAdmin: isAdmin,
|
|
676
673
|
serviceType: serviceType
|
|
677
674
|
}),
|
|
678
|
-
hidden:
|
|
675
|
+
hidden: false
|
|
679
676
|
}, {
|
|
680
677
|
key: 'appList',
|
|
681
678
|
label: '应用',
|
|
@@ -696,7 +693,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
696
693
|
gotoAppPanel: gotoAppPanel,
|
|
697
694
|
closeCreateCallback: closeCreateCallback
|
|
698
695
|
}),
|
|
699
|
-
hidden:
|
|
696
|
+
hidden: false
|
|
700
697
|
}, {
|
|
701
698
|
key: 'virtualApp',
|
|
702
699
|
label: '虚拟应用',
|
|
@@ -709,7 +706,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
709
706
|
delVirtualAppCallback: delVirtualAppCallback,
|
|
710
707
|
editVirtualAppCallback: editVirtualAppCallback
|
|
711
708
|
}),
|
|
712
|
-
hidden: !showVirtualApp
|
|
709
|
+
hidden: !showVirtualApp
|
|
713
710
|
}, {
|
|
714
711
|
key: 'cost',
|
|
715
712
|
label: '套餐',
|
|
@@ -718,7 +715,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
718
715
|
companyAppList: companyAppList,
|
|
719
716
|
companyId: companyId
|
|
720
717
|
}),
|
|
721
|
-
hidden:
|
|
718
|
+
hidden: false
|
|
722
719
|
}, {
|
|
723
720
|
key: 'weChatBinding',
|
|
724
721
|
label: '微信账号绑定',
|
|
@@ -28,7 +28,6 @@ var User = function User(props) {
|
|
|
28
28
|
groupHashList = props.groupHashList,
|
|
29
29
|
companyAppList = props.companyAppList,
|
|
30
30
|
leftMenus = props.leftMenus,
|
|
31
|
-
isMarsUi = props.isMarsUi,
|
|
32
31
|
isAdmin = props.isAdmin,
|
|
33
32
|
serviceType = props.serviceType,
|
|
34
33
|
removeUserCallback = props.removeUserCallback,
|
|
@@ -385,7 +384,6 @@ var User = function User(props) {
|
|
|
385
384
|
authConfig: data.authConfig ? data.authConfig.defaultAuth : {},
|
|
386
385
|
companyAppList: companyAppList,
|
|
387
386
|
leftMenus: leftMenus,
|
|
388
|
-
isMarsUi: isMarsUi,
|
|
389
387
|
id: data.id,
|
|
390
388
|
type: 1,
|
|
391
389
|
serviceType: serviceType
|
|
@@ -402,7 +400,6 @@ var User = function User(props) {
|
|
|
402
400
|
key: item.id,
|
|
403
401
|
authConfig: item.authConfig ? item.authConfig : {},
|
|
404
402
|
leftMenus: leftMenus,
|
|
405
|
-
isMarsUi: isMarsUi,
|
|
406
403
|
companyAppList: companyAppList,
|
|
407
404
|
name: item.groupName,
|
|
408
405
|
groupId: item.id,
|
|
@@ -415,7 +412,6 @@ var User = function User(props) {
|
|
|
415
412
|
funAuth: []
|
|
416
413
|
},
|
|
417
414
|
leftMenus: leftMenus,
|
|
418
|
-
isMarsUi: isMarsUi,
|
|
419
415
|
companyAppList: companyAppList,
|
|
420
416
|
name: '',
|
|
421
417
|
type: 2,
|
|
@@ -471,7 +467,6 @@ var User = function User(props) {
|
|
|
471
467
|
onCancel: function onCancel() {
|
|
472
468
|
return setUserEditAuthState(false);
|
|
473
469
|
},
|
|
474
|
-
isMarsUi: isMarsUi,
|
|
475
470
|
leftMenus: leftMenus,
|
|
476
471
|
changeUserAuthCallback: function changeUserAuthCallback(id) {
|
|
477
472
|
getMenbers();
|
|
@@ -11,13 +11,14 @@ 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, {
|
|
14
|
+
import React, { useEffect, useState } from 'react';
|
|
15
15
|
import './style/authConfigDetail.less';
|
|
16
16
|
import constants from './../../../utils/constants';
|
|
17
|
+
import functionalPermissions from './../../../utils/functionalPermissions';
|
|
17
18
|
import { notification } from 'antd';
|
|
18
19
|
import request from './../../../utils/ajax';
|
|
19
20
|
import apis from './../../../constants/api';
|
|
20
|
-
|
|
21
|
+
// const { TextArea } = Input;
|
|
21
22
|
var authConfigDetail = function authConfigDetail(props) {
|
|
22
23
|
var name = props.name,
|
|
23
24
|
authConfig = props.authConfig,
|
|
@@ -27,9 +28,6 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
27
28
|
groupId = props.groupId,
|
|
28
29
|
type = props.type,
|
|
29
30
|
serviceType = props.serviceType;
|
|
30
|
-
var _useContext = useContext(BizGlobalDataContext),
|
|
31
|
-
menusName = _useContext.menusName,
|
|
32
|
-
funPermissions = _useContext.funPermissions;
|
|
33
31
|
var _useState = useState([]),
|
|
34
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35
33
|
dataAuth = _useState2[0],
|
|
@@ -47,6 +45,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
47
45
|
cepFunConfig = _useState8[0],
|
|
48
46
|
setCepFunConfig = _useState8[1];
|
|
49
47
|
// #todo isAdmin 需要添加
|
|
48
|
+
// console.log('dsfdsfsdfdsfdsfdsf');
|
|
50
49
|
useEffect(function () {
|
|
51
50
|
reworkAppList();
|
|
52
51
|
reworkFunAuth();
|
|
@@ -141,7 +140,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
141
140
|
};
|
|
142
141
|
var loopFormatTopMenu = function loopFormatTopMenu(topMenu) {
|
|
143
142
|
// 菜单不在权限配置中
|
|
144
|
-
if (!
|
|
143
|
+
if (!functionalPermissions['standard'][topMenu.name]) {
|
|
145
144
|
return null;
|
|
146
145
|
}
|
|
147
146
|
var childrenArr = [];
|
|
@@ -154,7 +153,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
154
153
|
});
|
|
155
154
|
}
|
|
156
155
|
// 智能触达
|
|
157
|
-
if (topMenu.name ===
|
|
156
|
+
if (topMenu.name === constants.menusName.market) {
|
|
158
157
|
childrenArr = [{
|
|
159
158
|
name: {
|
|
160
159
|
describe: '管理员角色',
|
|
@@ -174,7 +173,7 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
174
173
|
var formatMenu = {
|
|
175
174
|
name: {
|
|
176
175
|
describe: topMenu.nametext,
|
|
177
|
-
key:
|
|
176
|
+
key: functionalPermissions['standard'][topMenu.name].key
|
|
178
177
|
},
|
|
179
178
|
show: false,
|
|
180
179
|
children: childrenArr
|
|
@@ -184,21 +183,21 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
184
183
|
var checkFunPermission = function checkFunPermission(key) {
|
|
185
184
|
// 检查功能模块权限配置,true为有权限,false无权限
|
|
186
185
|
if (!key) return false;
|
|
187
|
-
if (key ===
|
|
186
|
+
if (key === functionalPermissions['standard'].default.key) return true;
|
|
188
187
|
var funAuthConfig = authConfig.funAuth;
|
|
189
188
|
var funAuthKeyArr = funAuthConfig ? funAuthConfig.map(function (item) {
|
|
190
189
|
return item.resource;
|
|
191
190
|
}) : [];
|
|
192
191
|
// 智能触达:管理员、运营人员
|
|
193
192
|
if (['mkt_admin', 'mkt_ops'].includes(key)) {
|
|
194
|
-
var mktKey =
|
|
193
|
+
var mktKey = functionalPermissions['standard'].market.key;
|
|
195
194
|
var mktConfig = funAuthConfig && funAuthConfig.find(function (item) {
|
|
196
195
|
return item.resource === mktKey;
|
|
197
196
|
});
|
|
198
197
|
if (!mktConfig) return false;
|
|
199
198
|
return mktConfig.opts[0] === key;
|
|
200
199
|
}
|
|
201
|
-
if (funAuthKeyArr.includes(
|
|
200
|
+
if (funAuthKeyArr.includes(functionalPermissions['standard'].all.key)) {
|
|
202
201
|
// 功能权限:全选
|
|
203
202
|
return true;
|
|
204
203
|
}
|
|
@@ -235,14 +234,14 @@ var authConfigDetail = function authConfigDetail(props) {
|
|
|
235
234
|
});
|
|
236
235
|
// 设置菜单
|
|
237
236
|
var setting = {
|
|
238
|
-
name:
|
|
237
|
+
name: functionalPermissions['standard'].setting.default,
|
|
239
238
|
show: false,
|
|
240
239
|
children: [{
|
|
241
|
-
name:
|
|
240
|
+
name: functionalPermissions['standard'].setting.company,
|
|
242
241
|
show: false,
|
|
243
242
|
children: []
|
|
244
243
|
}, {
|
|
245
|
-
name:
|
|
244
|
+
name: functionalPermissions['standard'].setting.app,
|
|
246
245
|
show: false,
|
|
247
246
|
children: []
|
|
248
247
|
}]
|
|
@@ -5,7 +5,6 @@ declare const GroupItem: React.FC<{
|
|
|
5
5
|
groupData: AllGroupInfosItem;
|
|
6
6
|
companyAppList: AppListItem[];
|
|
7
7
|
leftMenus: LeftMenusItem[];
|
|
8
|
-
isMarsUi: boolean;
|
|
9
8
|
serviceType: number;
|
|
10
9
|
showGroupEditAuthEvent: (data: AllGroupInfosItem) => void;
|
|
11
10
|
delGroupCallback: (id: number) => void;
|
|
@@ -19,7 +19,6 @@ var GroupItem = function GroupItem(props) {
|
|
|
19
19
|
var groupData = props.groupData,
|
|
20
20
|
companyAppList = props.companyAppList,
|
|
21
21
|
leftMenus = props.leftMenus,
|
|
22
|
-
isMarsUi = props.isMarsUi,
|
|
23
22
|
serviceType = props.serviceType,
|
|
24
23
|
showGroupEditAuthEvent = props.showGroupEditAuthEvent,
|
|
25
24
|
delGroupCallback = props.delGroupCallback;
|
|
@@ -93,7 +92,6 @@ var GroupItem = function GroupItem(props) {
|
|
|
93
92
|
authConfig: groupData.authConfig || {},
|
|
94
93
|
companyAppList: companyAppList,
|
|
95
94
|
leftMenus: leftMenus,
|
|
96
|
-
isMarsUi: isMarsUi,
|
|
97
95
|
groupId: groupData.id,
|
|
98
96
|
type: 2,
|
|
99
97
|
serviceType: serviceType
|
|
@@ -17,7 +17,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
17
17
|
allGroupInfos = props.allGroupInfos,
|
|
18
18
|
companyAppList = props.companyAppList,
|
|
19
19
|
leftMenus = props.leftMenus,
|
|
20
|
-
isMarsUi = props.isMarsUi,
|
|
21
20
|
isAdmin = props.isAdmin,
|
|
22
21
|
serviceType = props.serviceType,
|
|
23
22
|
delGroupCallback = props.delGroupCallback,
|
|
@@ -100,7 +99,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
100
99
|
leftMenus: leftMenus,
|
|
101
100
|
isAdmin: isAdmin,
|
|
102
101
|
id: id,
|
|
103
|
-
isMarsUi: isMarsUi,
|
|
104
102
|
onCancel: function onCancel() {
|
|
105
103
|
return setGroupEditAuthState(false);
|
|
106
104
|
},
|
|
@@ -137,7 +135,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
137
135
|
showGroupEditAuthEvent: showGroupEditAuthEvent,
|
|
138
136
|
companyAppList: companyAppList,
|
|
139
137
|
leftMenus: leftMenus,
|
|
140
|
-
isMarsUi: isMarsUi,
|
|
141
138
|
delGroupCallback: delGroupCallback,
|
|
142
139
|
serviceType: serviceType
|
|
143
140
|
});
|
|
File without changes
|
|
@@ -149,11 +149,8 @@ var standard = _objectSpread({
|
|
|
149
149
|
key: '/diypage'
|
|
150
150
|
},
|
|
151
151
|
user: {
|
|
152
|
-
key: '/user'
|
|
152
|
+
key: '/analysis/user'
|
|
153
153
|
},
|
|
154
|
-
// cep: {
|
|
155
|
-
// key: '/cep',
|
|
156
|
-
// },
|
|
157
154
|
userList: {
|
|
158
155
|
key: '/user/userList'
|
|
159
156
|
},
|
|
@@ -163,9 +160,6 @@ var standard = _objectSpread({
|
|
|
163
160
|
userPortrait: {
|
|
164
161
|
key: '/user/userPortrait'
|
|
165
162
|
},
|
|
166
|
-
userJourney: {
|
|
167
|
-
key: '/cxp/userJourney'
|
|
168
|
-
},
|
|
169
163
|
userTags: {
|
|
170
164
|
key: '/user/userTags'
|
|
171
165
|
},
|
|
@@ -225,205 +219,6 @@ var standard = _objectSpread({
|
|
|
225
219
|
key: '/cxp/userJourney'
|
|
226
220
|
}
|
|
227
221
|
} : {});
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
|
|
233
|
-
all: {
|
|
234
|
-
key: '/' // 功能权限
|
|
235
|
-
},
|
|
236
|
-
|
|
237
|
-
panel: {
|
|
238
|
-
key: '/panel'
|
|
239
|
-
},
|
|
240
|
-
dataPanel: {
|
|
241
|
-
key: '/panel/dataPanel'
|
|
242
|
-
},
|
|
243
|
-
dataview: {
|
|
244
|
-
key: '/panel/dataview'
|
|
245
|
-
},
|
|
246
|
-
analysis: {
|
|
247
|
-
key: '/analysis'
|
|
248
|
-
},
|
|
249
|
-
dataV: {
|
|
250
|
-
key: '/panel/dataV'
|
|
251
|
-
},
|
|
252
|
-
crossScreen: {
|
|
253
|
-
key: '/panel/crossScreen'
|
|
254
|
-
},
|
|
255
|
-
scene: {
|
|
256
|
-
key: '/scene'
|
|
257
|
-
},
|
|
258
|
-
customScene: {
|
|
259
|
-
key: '/scene/customScene'
|
|
260
|
-
},
|
|
261
|
-
userGrowth: {
|
|
262
|
-
key: '/scene/userGrowth'
|
|
263
|
-
},
|
|
264
|
-
basic: {
|
|
265
|
-
key: '/analysis/basic'
|
|
266
|
-
},
|
|
267
|
-
wholeAnalysis: {
|
|
268
|
-
key: '/analysis/basic/wholeAnalysis'
|
|
269
|
-
},
|
|
270
|
-
retention: {
|
|
271
|
-
key: '/analysis/basic/retention'
|
|
272
|
-
},
|
|
273
|
-
source: {
|
|
274
|
-
key: '/analysis/source'
|
|
275
|
-
},
|
|
276
|
-
channel: {
|
|
277
|
-
key: '/analysis/source/channel'
|
|
278
|
-
},
|
|
279
|
-
behavior: {
|
|
280
|
-
key: '/analysis/behavior'
|
|
281
|
-
},
|
|
282
|
-
eventAnalysis: {
|
|
283
|
-
key: '/analysis/behavior/eventAnalysis'
|
|
284
|
-
},
|
|
285
|
-
page: {
|
|
286
|
-
key: '/analysis/behavior/page'
|
|
287
|
-
},
|
|
288
|
-
zgSee: {
|
|
289
|
-
key: '/analysis/behavior/zgSee'
|
|
290
|
-
},
|
|
291
|
-
conversion: {
|
|
292
|
-
key: '/analysis/conversion'
|
|
293
|
-
},
|
|
294
|
-
funnel: {
|
|
295
|
-
key: '/analysis/conversion/funnel'
|
|
296
|
-
},
|
|
297
|
-
pathAnalysis: {
|
|
298
|
-
key: '/analysis/conversion/pathAnalysis'
|
|
299
|
-
},
|
|
300
|
-
revenue: {
|
|
301
|
-
key: '/analysis/conversion/revenue'
|
|
302
|
-
},
|
|
303
|
-
stickiness: {
|
|
304
|
-
key: '/analysis/conversion/stickiness'
|
|
305
|
-
},
|
|
306
|
-
user: {
|
|
307
|
-
key: '/analysis/user'
|
|
308
|
-
},
|
|
309
|
-
cep: {
|
|
310
|
-
key: '/analysis/cep'
|
|
311
|
-
},
|
|
312
|
-
userList: {
|
|
313
|
-
key: '/analysis/user/userList'
|
|
314
|
-
},
|
|
315
|
-
userGroup: {
|
|
316
|
-
key: '/analysis/user/userGroup'
|
|
317
|
-
},
|
|
318
|
-
userPortrait: {
|
|
319
|
-
key: '/analysis/user/userPortrait'
|
|
320
|
-
},
|
|
321
|
-
userJourney: {
|
|
322
|
-
key: '/cxp/userJourney'
|
|
323
|
-
},
|
|
324
|
-
custom: {
|
|
325
|
-
key: '/analysis/custom'
|
|
326
|
-
},
|
|
327
|
-
diy: {
|
|
328
|
-
key: '/analysis/custom/diy'
|
|
329
|
-
},
|
|
330
|
-
sqlQuery: {
|
|
331
|
-
key: '/analysis/custom/sqlQuery'
|
|
332
|
-
},
|
|
333
|
-
advertisement: {
|
|
334
|
-
key: '/advertisement'
|
|
335
|
-
},
|
|
336
|
-
sem: {
|
|
337
|
-
key: '/advertisement/sem'
|
|
338
|
-
},
|
|
339
|
-
digital: {
|
|
340
|
-
key: '/advertisement/digital'
|
|
341
|
-
},
|
|
342
|
-
landing: {
|
|
343
|
-
key: '/advertisement/landing'
|
|
344
|
-
},
|
|
345
|
-
wechat: {
|
|
346
|
-
key: '/wechat'
|
|
347
|
-
},
|
|
348
|
-
wxWhole: {
|
|
349
|
-
key: '/wechat/wxWhole'
|
|
350
|
-
},
|
|
351
|
-
wxMini: {
|
|
352
|
-
key: '/wechat/wxMini'
|
|
353
|
-
},
|
|
354
|
-
wxMarketing: {
|
|
355
|
-
key: '/wechat/wxMarketing'
|
|
356
|
-
},
|
|
357
|
-
wxFlow: {
|
|
358
|
-
key: '/wechat/wxFlow'
|
|
359
|
-
},
|
|
360
|
-
market: {
|
|
361
|
-
key: '/market'
|
|
362
|
-
},
|
|
363
|
-
manage: {
|
|
364
|
-
key: '/manage'
|
|
365
|
-
},
|
|
366
|
-
dataAccess: {
|
|
367
|
-
key: '/manage/dataAccess'
|
|
368
|
-
},
|
|
369
|
-
guide: {
|
|
370
|
-
key: '/manage/dataAccess/guide'
|
|
371
|
-
},
|
|
372
|
-
adChannel: {
|
|
373
|
-
key: '/manage/dataAccess/adChannel'
|
|
374
|
-
},
|
|
375
|
-
eventTracking: {
|
|
376
|
-
key: '/manage/eventTracking'
|
|
377
|
-
},
|
|
378
|
-
iteration: {
|
|
379
|
-
key: '/manage/iteration'
|
|
380
|
-
},
|
|
381
|
-
debug: {
|
|
382
|
-
key: '/manage/iteration/debug'
|
|
383
|
-
},
|
|
384
|
-
crash: {
|
|
385
|
-
key: '/manage/iteration/crash'
|
|
386
|
-
},
|
|
387
|
-
version: {
|
|
388
|
-
key: '/manage/iteration/version'
|
|
389
|
-
},
|
|
390
|
-
// 开始:zhuge 模块
|
|
391
|
-
warning: {
|
|
392
|
-
key: '/manage/warning'
|
|
393
|
-
},
|
|
394
|
-
diypage: {
|
|
395
|
-
key: '/diypage'
|
|
396
|
-
},
|
|
397
|
-
// crossScreen: {
|
|
398
|
-
// key: '/panel/crossScreen'
|
|
399
|
-
// },
|
|
400
|
-
// scene: {
|
|
401
|
-
// key: '/scene'
|
|
402
|
-
// },
|
|
403
|
-
// userGrowth: {
|
|
404
|
-
// key: '/scene/userGrowth'
|
|
405
|
-
// },
|
|
406
|
-
// 结束 :zhuge 模块
|
|
407
|
-
config: {
|
|
408
|
-
key: '/manage/config'
|
|
409
|
-
},
|
|
410
|
-
setting: {
|
|
411
|
-
default: {
|
|
412
|
-
describe: '设置',
|
|
413
|
-
key: '/setting'
|
|
414
|
-
},
|
|
415
|
-
company: {
|
|
416
|
-
describe: '公司设置',
|
|
417
|
-
key: '/setting/company'
|
|
418
|
-
},
|
|
419
|
-
app: {
|
|
420
|
-
describe: '应用设置',
|
|
421
|
-
key: '/setting/app'
|
|
422
|
-
},
|
|
423
|
-
system: {
|
|
424
|
-
describe: '系统设置',
|
|
425
|
-
key: '/setting/system'
|
|
426
|
-
}
|
|
427
|
-
}
|
|
428
|
-
};
|
|
429
|
-
export default standard;
|
|
222
|
+
export default {
|
|
223
|
+
standard: standard
|
|
224
|
+
};
|
package/es/utils/util.js
CHANGED
|
@@ -641,8 +641,7 @@ 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'
|
|
645
|
-
userJourney: 'router-appUserJourney'
|
|
644
|
+
idmapping: 'router-idMapping-list'
|
|
646
645
|
};
|
|
647
646
|
return hash[name] ? hash[name] : 'router-' + name;
|
|
648
647
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "1.2.2-alpha.
|
|
3
|
+
"version": "1.2.2-alpha.3",
|
|
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": "c867bfd1f442594fa928f34119aab5fc3dc24da7",
|
|
55
55
|
"gitHooks": {
|
|
56
56
|
"pre-commit": "lint-staged"
|
|
57
57
|
}
|
|
@@ -1,21 +0,0 @@
|
|
|
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
|
-
});
|