@zgfe/modules-settings 2.1.0-zhongyuan.18 → 2.1.0-zhongyuan.20
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.
|
@@ -18,13 +18,10 @@ import React, { useContext, useEffect, useState } from 'react';
|
|
|
18
18
|
import './index.less';
|
|
19
19
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
20
20
|
import { Tabs } from 'antd';
|
|
21
|
-
import Info from './info';
|
|
22
21
|
import User from './user';
|
|
23
22
|
import VirtualApp from './virtualApp';
|
|
24
|
-
import Cost from './cost';
|
|
25
23
|
import WechatBinding from './wechatBinding';
|
|
26
24
|
import OperationLog from './operationLog';
|
|
27
|
-
import DepartmentList from './department';
|
|
28
25
|
import RoleList from './role';
|
|
29
26
|
import Business from './business';
|
|
30
27
|
import Application from './application';
|
|
@@ -59,7 +56,7 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
59
56
|
var _useState7 = useState(false),
|
|
60
57
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
61
58
|
setIsShowCreateApp = _useState8[1];
|
|
62
|
-
var _useState9 = useState(currentPath ? currentPath : '
|
|
59
|
+
var _useState9 = useState(currentPath ? currentPath : 'user'),
|
|
63
60
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
64
61
|
activeKey = _useState10[0],
|
|
65
62
|
setActiveKey = _useState10[1]; // 默认值
|
|
@@ -157,17 +154,21 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
157
154
|
}
|
|
158
155
|
}));
|
|
159
156
|
};
|
|
160
|
-
var items = [
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
157
|
+
var items = [
|
|
158
|
+
// {
|
|
159
|
+
// key: 'info',
|
|
160
|
+
// label: '公司信息',
|
|
161
|
+
// children: (
|
|
162
|
+
// <Info
|
|
163
|
+
// ENVIRONMENT={ENVIRONMENT}
|
|
164
|
+
// companyId={currentUser!.companyId as number}
|
|
165
|
+
// companyName={currentUser!.companyName}
|
|
166
|
+
// changeCompanyNameCallback={changeCompanyNameCallback}
|
|
167
|
+
// />
|
|
168
|
+
// ),
|
|
169
|
+
// hidden: !authority[10078],
|
|
170
|
+
// },
|
|
171
|
+
{
|
|
171
172
|
key: 'user',
|
|
172
173
|
label: '成员管理',
|
|
173
174
|
children: (/*#__PURE__*/React.createElement(User, {
|
|
@@ -196,15 +197,19 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
196
197
|
companyId: currentUser.companyId
|
|
197
198
|
}),
|
|
198
199
|
hidden: !authority[10080]
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
200
|
+
},
|
|
201
|
+
// {
|
|
202
|
+
// key: 'department',
|
|
203
|
+
// label: '部门管理',
|
|
204
|
+
// children: (
|
|
205
|
+
// <DepartmentList
|
|
206
|
+
// companyId={currentUser!.companyId as number}
|
|
207
|
+
// closeCreateCallback={closeCreateCallback}
|
|
208
|
+
// />
|
|
209
|
+
// ),
|
|
210
|
+
// hidden: !authority[10081],
|
|
211
|
+
// },
|
|
212
|
+
{
|
|
208
213
|
key: 'business',
|
|
209
214
|
label: '业务',
|
|
210
215
|
children: /*#__PURE__*/React.createElement(Business, {
|
|
@@ -233,15 +238,14 @@ var CompanySetting = function CompanySetting(props) {
|
|
|
233
238
|
editVirtualAppCallback: editVirtualAppCallback
|
|
234
239
|
})),
|
|
235
240
|
hidden: !showVirtualApp
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}, {
|
|
241
|
+
},
|
|
242
|
+
// {
|
|
243
|
+
// key: 'cost',
|
|
244
|
+
// label: '套餐',
|
|
245
|
+
// children: <Cost ENVIRONMENT={ENVIRONMENT} companyId={currentUser!.companyId as number} />,
|
|
246
|
+
// hidden: !authority[10083],
|
|
247
|
+
// },
|
|
248
|
+
{
|
|
245
249
|
key: 'weChatBinding',
|
|
246
250
|
label: '微信账号绑定',
|
|
247
251
|
children: /*#__PURE__*/React.createElement(WechatBinding, null),
|
|
@@ -360,30 +360,35 @@ var User = function User(props) {
|
|
|
360
360
|
title: arr === null || arr === void 0 ? void 0 : (_arr$join = arr.join(',')) === null || _arr$join === void 0 ? void 0 : _arr$join.replace(/,/g, '、')
|
|
361
361
|
}, splitString(arr === null || arr === void 0 ? void 0 : (_arr$join2 = arr.join(',')) === null || _arr$join2 === void 0 ? void 0 : _arr$join2.replace(/,/g, '、'), 8)));
|
|
362
362
|
}
|
|
363
|
-
},
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
363
|
+
},
|
|
364
|
+
// {
|
|
365
|
+
// title: '部门',
|
|
366
|
+
// with: 195,
|
|
367
|
+
// dataIndex: 'aclDeptList',
|
|
368
|
+
// render: (aclDeptList: []) => {
|
|
369
|
+
// const arr = aclDeptList?.map((item: { name: string }) => {
|
|
370
|
+
// return item?.name;
|
|
371
|
+
// });
|
|
372
|
+
// return (
|
|
373
|
+
// <div>
|
|
374
|
+
// <Tooltip
|
|
375
|
+
// overlayStyle={{ maxWidth: 396 }}
|
|
376
|
+
// overlayInnerStyle={{
|
|
377
|
+
// color: '#FFF',
|
|
378
|
+
// fontSize: 14,
|
|
379
|
+
// fontWeight: 400,
|
|
380
|
+
// letterSpacing: 0.56,
|
|
381
|
+
// }}
|
|
382
|
+
// placement="top"
|
|
383
|
+
// title={arr?.join(',')?.replace(/,/g, '、')}
|
|
384
|
+
// >
|
|
385
|
+
// {splitString(arr?.join(',')?.replace(/,/g, '、'), 8)}
|
|
386
|
+
// </Tooltip>
|
|
387
|
+
// </div>
|
|
388
|
+
// );
|
|
389
|
+
// },
|
|
390
|
+
// },
|
|
391
|
+
{
|
|
387
392
|
title: '状态',
|
|
388
393
|
render: function render(data) {
|
|
389
394
|
return /*#__PURE__*/React.createElement("div", null, !data.isAdmin && (/*#__PURE__*/React.createElement(Switch, {
|
|
@@ -12,7 +12,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
12
12
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
13
|
import React, { useEffect, useState, useContext } from 'react';
|
|
14
14
|
import './index.less';
|
|
15
|
-
import { Button, Form, Input, notification, Radio, Select
|
|
15
|
+
import { Button, Form, Input, notification, Radio, Select } from 'antd';
|
|
16
16
|
import request from './../../../utils/ajax';
|
|
17
17
|
import apis from './../../../constants/api';
|
|
18
18
|
import { BizDialog, BizSelect, BizGlobalDataContext } from '@zgfe/business-lib';
|
|
@@ -63,7 +63,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
63
63
|
// 角色下拉数据
|
|
64
64
|
queryRoleListByUserIdList(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id);
|
|
65
65
|
// 部门下拉数据
|
|
66
|
-
queryDeptListByUserIdList(userEditAuthData
|
|
66
|
+
// queryDeptListByUserIdList(userEditAuthData?.id);
|
|
67
67
|
}
|
|
68
68
|
}, [userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id]);
|
|
69
69
|
useEffect(function () {
|
|
@@ -75,7 +75,7 @@ var UserGroup = function UserGroup(props) {
|
|
|
75
75
|
// 角色下拉数据
|
|
76
76
|
queryRoleListByUserIdList(null);
|
|
77
77
|
// 部门下拉数据
|
|
78
|
-
queryDeptListByUserIdList(null);
|
|
78
|
+
// queryDeptListByUserIdList(null);
|
|
79
79
|
}, [companyId]);
|
|
80
80
|
// 查看详情
|
|
81
81
|
var queryCompanyUserDetailsParamList = function queryCompanyUserDetailsParamList(id) {
|
|
@@ -348,19 +348,6 @@ var UserGroup = function UserGroup(props) {
|
|
|
348
348
|
placeholder: '请选择角色',
|
|
349
349
|
labelField: "roleName",
|
|
350
350
|
keyField: "id"
|
|
351
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
352
|
-
name: 'deptIds',
|
|
353
|
-
label: "\u90E8\u95E8",
|
|
354
|
-
className: "no-rules-label"
|
|
355
|
-
}, /*#__PURE__*/React.createElement(TreeSelect, {
|
|
356
|
-
treeDefaultExpandAll: true,
|
|
357
|
-
multiple: true,
|
|
358
|
-
fieldNames: {
|
|
359
|
-
label: 'name',
|
|
360
|
-
value: 'id'
|
|
361
|
-
},
|
|
362
|
-
placeholder: "\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8",
|
|
363
|
-
treeData: departmentList
|
|
364
351
|
})), !isAdmin && (/*#__PURE__*/React.createElement(Form.Item, {
|
|
365
352
|
name: 'accountStatus',
|
|
366
353
|
label: "\u72B6\u6001",
|
|
@@ -6,7 +6,6 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { useContext, useState } from 'react';
|
|
8
8
|
import { DesktopOutlined } from '@ant-design/icons';
|
|
9
|
-
import Notice from './notice';
|
|
10
9
|
import Approvalmanage from './approvalmanage';
|
|
11
10
|
import SettingTabs from '../../components/settingTabs';
|
|
12
11
|
import Dictionary from './Dictionary';
|
|
@@ -23,7 +22,7 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
23
22
|
currentUser = _useContext.currentUser,
|
|
24
23
|
authority = _useContext.authority,
|
|
25
24
|
route = _useContext.route;
|
|
26
|
-
var _useState = useState(route && route.query && route.query.key ? route.query.key : '
|
|
25
|
+
var _useState = useState(route && route.query && route.query.key ? route.query.key : '4'),
|
|
27
26
|
_useState2 = _slicedToArray(_useState, 2),
|
|
28
27
|
key = _useState2[0],
|
|
29
28
|
setKey = _useState2[1];
|
|
@@ -50,19 +49,18 @@ var SystemSetting = function SystemSetting(_ref) {
|
|
|
50
49
|
setIsRead(isRead);
|
|
51
50
|
setIsShowProcess(true);
|
|
52
51
|
};
|
|
53
|
-
var items = [
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}, {
|
|
52
|
+
var items = [
|
|
53
|
+
// {
|
|
54
|
+
// key: '1',
|
|
55
|
+
// label: '通知配置',
|
|
56
|
+
// content: <Notice bizType={1} />,
|
|
57
|
+
// },
|
|
58
|
+
// {
|
|
59
|
+
// key: '3',
|
|
60
|
+
// label: 'kpi通知配置',
|
|
61
|
+
// content: <Notice bizType={2} />,
|
|
62
|
+
// },
|
|
63
|
+
{
|
|
66
64
|
key: '4',
|
|
67
65
|
label: '审批管理',
|
|
68
66
|
hidden: !authority[1722839049],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.1.0-zhongyuan.
|
|
3
|
+
"version": "2.1.0-zhongyuan.20",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "b062bec8eede9288d53a3eb35627c34908a5ef04",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|