@zgfe/modules-settings 2.1.0-zhongyuan.3 → 2.1.0-zhongyuan.31

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.
Files changed (38) hide show
  1. package/es/components/importMetaDialog/index.d.ts +2 -0
  2. package/es/components/importMetaDialog/index.js +18 -3
  3. package/es/constants/api.d.ts +6 -0
  4. package/es/constants/api.js +17 -8
  5. package/es/modules/appSettings/dataAccessFilter/index.js +2 -1
  6. package/es/modules/companySetting/application/applicationForm.d.ts +1 -0
  7. package/es/modules/companySetting/application/applicationForm.js +34 -4
  8. package/es/modules/companySetting/application/index.js +5 -6
  9. package/es/modules/companySetting/application/index.less +144 -144
  10. package/es/modules/companySetting/index.js +37 -33
  11. package/es/modules/companySetting/operationLog/index.js +22 -5
  12. package/es/modules/companySetting/user/index.js +29 -24
  13. package/es/modules/companySetting/user/invite.js +28 -100
  14. package/es/modules/createDemand/demo/selectPoint.js +1 -2
  15. package/es/modules/createDemand/index.js +7 -6
  16. package/es/modules/createDemand/styles/index.less +403 -403
  17. package/es/modules/createDemand_bf/demo/index.js +0 -1
  18. package/es/modules/createDemand_bf/index.js +0 -1
  19. package/es/modules/dealDemand/demo/index.js +0 -1
  20. package/es/modules/dealDemand/demo/selectPoint.js +1 -1
  21. package/es/modules/dealDemand/index.js +0 -2
  22. package/es/modules/demandManage/index.js +0 -1
  23. package/es/modules/demandManage/styles/index.less +155 -155
  24. package/es/modules/pointMap/createMetaDrawer.js +166 -84
  25. package/es/modules/pointMap/pageInfo.js +40 -19
  26. package/es/modules/pointMap/styles/index.less +8 -0
  27. package/es/modules/pointMap/styles/tree.css +164 -145
  28. package/es/modules/pointMap/styles/tree.less +174 -156
  29. package/es/modules/pointMap/tree.js +196 -118
  30. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/create.js +5 -4
  31. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/css/index.less +48 -48
  32. package/es/modules/systemSetting/dictionaryItem/dictionaryManagement/index.js +3 -2
  33. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/create.js +7 -9
  34. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/index.js +29 -16
  35. package/es/modules/systemSetting/dictionaryItem/eventTagManagement/type/index.d.ts +1 -1
  36. package/es/modules/systemSetting/document-setting/index.js +7 -6
  37. package/es/modules/systemSetting/index.js +13 -15
  38. package/package.json +3 -3
@@ -7,5 +7,7 @@ declare const ImportModal: React.FC<{
7
7
  downloadTempleUrl: string;
8
8
  uploadFile: string;
9
9
  fileName?: string;
10
+ params?: any;
11
+ showHistory?: boolean;
10
12
  }>;
11
13
  export default ImportModal;
@@ -29,7 +29,7 @@ var ImportModal = function ImportModal(props) {
29
29
  errorLoc = _useState4[0],
30
30
  setErrorLoc = _useState4[1];
31
31
  var handleImportResultOk = function handleImportResultOk() {
32
- setOpenImportModalResult(false);
32
+ props.onSuccess && props.onSuccess({});
33
33
  setErrorLoc(undefined);
34
34
  };
35
35
  var _useState5 = useState(),
@@ -92,14 +92,29 @@ var ImportModal = function ImportModal(props) {
92
92
  var formData = new FormData();
93
93
  formData.append('appId', currentApp.appId);
94
94
  formData.append('file', fileData);
95
+ if (props.params) {
96
+ for (var key in props.params) {
97
+ formData.append(key, props.params[key]);
98
+ }
99
+ }
95
100
  setLoading(true);
96
101
  request(props.uploadFile, {
97
102
  method: 'post',
98
103
  data: formData
99
104
  }).then(function (res) {
100
105
  if (!res) return;
101
- message.success('导入成功');
102
- props.onSuccess && props.onSuccess(res.data);
106
+ //进入历史记录
107
+ if (props.showHistory && res.data) {
108
+ setOpenImportModalResult(true);
109
+ setErrorLoc({
110
+ successLocCount: res.data['导入成功条数'],
111
+ failedLocCount: res.data['导入失败条数'],
112
+ failedLocNames: res.data['导入失败标签名']
113
+ });
114
+ } else {
115
+ message.success('导入成功');
116
+ props.onSuccess && props.onSuccess(res.data);
117
+ }
103
118
  }).catch(function (e) {
104
119
  console.log(e);
105
120
  }).finally(function () {
@@ -109,6 +109,7 @@ declare let apis: {
109
109
  operationLog: string;
110
110
  securityLog: string;
111
111
  getLogTime: string;
112
+ exportLog: string;
112
113
  };
113
114
  getPassword: {
114
115
  validateCode: string;
@@ -118,18 +119,22 @@ declare let apis: {
118
119
  };
119
120
  dict: {
120
121
  getDictList: string;
122
+ getDictPage: string;
121
123
  dictSave: string;
122
124
  dictUpdate: string;
123
125
  dictUpload: string;
124
126
  dictDelete: string;
125
127
  dictTemplate: string;
126
128
  getTagList: string;
129
+ getTagPage: string;
127
130
  tagSave: string;
128
131
  tagUpdate: string;
129
132
  tagUpload: string;
130
133
  tagDownload: string;
131
134
  tagDelete: string;
132
135
  tagTemplate: string;
136
+ addLabelRelation: string;
137
+ delLabelRelation: string;
133
138
  };
134
139
  queryUserByCompanyId: string;
135
140
  flowSave: string;
@@ -157,6 +162,7 @@ declare let apis: {
157
162
  createPage: string;
158
163
  updatePointPageInfo: string;
159
164
  moveNode: string;
165
+ getEventAttributes: string;
160
166
  getPageConfig: string;
161
167
  addPageConfig: string;
162
168
  updatePageConfig: string;
@@ -134,7 +134,9 @@ var apis = {
134
134
  // 安全日志
135
135
  securityLog: '/zg/web/v2/system/securityLog',
136
136
  // 时间范围查询
137
- getLogTime: '/zg/web/v2/system/getLogTime'
137
+ getLogTime: '/zg/web/v2/system/getLogTime',
138
+ // 导出日志
139
+ exportLog: '/zg/web/v2/system/exportOperationLog'
138
140
  },
139
141
  getPassword: {
140
142
  validateCode: '/zg/web/v2/system/validateCode',
@@ -145,20 +147,25 @@ var apis = {
145
147
  dict: {
146
148
  //字典管理
147
149
  getDictList: '/zg/web/v2/systemSettings/attr/dict/list',
150
+ getDictPage: '/zg/web/v2/systemSettings/attr/dict/listByPage',
148
151
  dictSave: '/zg/web/v2/systemSettings/attr/dict/save',
149
152
  dictUpdate: '/zg/web/v2/systemSettings/attr/dict/update',
150
153
  dictUpload: '/zg/web/v2/systemSettings/attr/dict/upload',
151
154
  dictDelete: '/zg/web/v2/systemSettings/attr/dict/delete',
152
155
  dictTemplate: '/zg/web/v2/systemSettings/attr/dict/template',
153
156
  //位置标签管理
154
- getTagList: '/zg/web/v2/label/eventLabel/list',
155
- tagSave: '/zg/web/v2/label/eventLabel/save',
156
- tagUpdate: '/zg/web/v2/label/eventLabel/update',
157
- tagUpload: '/zg/web/v2/label/eventLabel/upload',
158
- tagDownload: '/zg/web/v2/label/eventLabel/download',
159
- tagDelete: '/zg/web/v2/label/eventLabel/delete',
157
+ getTagList: '/zg/web/v2/eventLabel/list',
158
+ getTagPage: '/zg/web/v2/eventLabel/listByPage',
159
+ tagSave: '/zg/web/v2/eventLabel/save',
160
+ tagUpdate: '/zg/web/v2/eventLabel/update',
161
+ tagUpload: '/zg/web/v2/eventLabel/upload',
162
+ tagDownload: '/zg/web/v2/eventLabel/download',
163
+ tagDelete: '/zg/web/v2/eventLabel/delete',
160
164
  //标签模板
161
- tagTemplate: '/zg/web/v2/label/template'
165
+ tagTemplate: '/zg/web/v2/eventLabel/template',
166
+ //绑定
167
+ addLabelRelation: '/zg/web/v2/eventLabel/addLabelRelation',
168
+ delLabelRelation: '/zg/web/v2/eventLabel/delLabelRelation'
162
169
  },
163
170
  // 查询公司下所有用户
164
171
  queryUserByCompanyId: '/zg/web/v2/user/queryUserByCompanyId',
@@ -212,6 +219,8 @@ var apis = {
212
219
  updatePointPageInfo: '/zg/web/v2/approve/point/updatePointPageInfo',
213
220
  // 拖拽移动页面
214
221
  moveNode: '/zg/web/v2/approve/point/move',
222
+ // 根据事件id查询属性
223
+ getEventAttributes: '/zg/web/v2/data/queryEventAttrMetas',
215
224
  // 查询页面管理详情
216
225
  getPageConfig: '/zg/web/v2/approve/pageConfig/getDetail',
217
226
  // 新增页面管理
@@ -8,6 +8,7 @@ import React, { useEffect, useState } from 'react';
8
8
  import { Button, Form, Input, notification } from 'antd';
9
9
  import { BizGlobalDataContext } from '@zgfe/business-lib';
10
10
  import { urlRequest } from '../../../utils/ajax';
11
+ import request from '../../../utils/ajax';
11
12
  import apis from '../../../constants/api';
12
13
  import { useContext } from 'react';
13
14
  var TextArea = Input.TextArea;
@@ -50,7 +51,7 @@ var AppDataAccessFilter = function AppDataAccessFilter() {
50
51
  var onSubmit = function onSubmit(value) {
51
52
  var ip = value.ip,
52
53
  ua = value.ua;
53
- urlRequest(apis.setting.createFilter, {
54
+ request(apis.setting.createFilter, {
54
55
  method: 'post',
55
56
  data: {
56
57
  appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
@@ -19,5 +19,6 @@ declare const _default: React.ForwardRefExoticComponent<{
19
19
  name?: string | undefined;
20
20
  appVersion?: number | undefined;
21
21
  currentUser?: any;
22
+ category?: string | undefined;
22
23
  } & React.RefAttributes<React.FC<{}>>>;
23
24
  export default _default;
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React, { useEffect, forwardRef, useState, useImperativeHandle } from 'react';
8
- import { Form, Input, Alert, Radio } from 'antd';
8
+ import { Form, Input, Alert, Radio, Select } from 'antd';
9
9
  import './index.less';
10
10
  import { classPrefix } from './index';
11
11
  export var AppVersion;
@@ -25,7 +25,9 @@ export var AppVersion;
25
25
  })(AppVersion || (AppVersion = {}));
26
26
  var ApplicationForm = function ApplicationForm(props, ref) {
27
27
  var name = props.name,
28
- currentUser = props.currentUser;
28
+ currentUser = props.currentUser,
29
+ _props$category = props.category,
30
+ category = _props$category === void 0 ? '1' : _props$category;
29
31
  var _useState = useState(true),
30
32
  _useState2 = _slicedToArray(_useState, 2),
31
33
  showChunk = _useState2[0],
@@ -55,9 +57,13 @@ var ApplicationForm = function ApplicationForm(props, ref) {
55
57
  name: 'name',
56
58
  value: name
57
59
  }]);
60
+ form.setFields([{
61
+ name: 'category',
62
+ value: category
63
+ }]);
58
64
  setShowchunk(false);
59
65
  }
60
- }, [name]);
66
+ }, [name, category]);
61
67
  return /*#__PURE__*/React.createElement(Form, {
62
68
  form: form,
63
69
  labelCol: {
@@ -65,7 +71,8 @@ var ApplicationForm = function ApplicationForm(props, ref) {
65
71
  },
66
72
  layout: "horizontal",
67
73
  initialValues: {
68
- appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion
74
+ appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion,
75
+ category: '1'
69
76
  }
70
77
  }, showChunk && (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) == 0 && (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Form.Item, null, /*#__PURE__*/React.createElement(Alert, {
71
78
  className: "".concat(classPrefix, "-alert-info"),
@@ -81,6 +88,29 @@ var ApplicationForm = function ApplicationForm(props, ref) {
81
88
  }, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
82
89
  value: AppVersion.bank
83
90
  }, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C"))))), /*#__PURE__*/React.createElement(Form.Item, {
91
+ name: "category",
92
+ className: "app-list-form-item"
93
+ }, /*#__PURE__*/React.createElement(Select, {
94
+ options: [{
95
+ value: '1',
96
+ label: '零售'
97
+ }, {
98
+ value: '2',
99
+ label: '公司'
100
+ }, {
101
+ value: '3',
102
+ label: '同业'
103
+ }, {
104
+ value: '4',
105
+ label: '风险'
106
+ }, {
107
+ value: '5',
108
+ label: '内部管理'
109
+ }, {
110
+ value: '6',
111
+ label: '其他'
112
+ }]
113
+ })), /*#__PURE__*/React.createElement(Form.Item, {
84
114
  name: "name",
85
115
  required: true,
86
116
  rules: [{
@@ -543,19 +543,18 @@ var Application = function Application(_ref) {
543
543
  case 12:
544
544
  message.success(res === null || res === void 0 ? void 0 : res.msg);
545
545
  setShowSetting(false);
546
- console.log(res);
547
- _context9.next = 21;
546
+ _context9.next = 20;
548
547
  break;
549
- case 17:
550
- _context9.prev = 17;
548
+ case 16:
549
+ _context9.prev = 16;
551
550
  _context9.t0 = _context9["catch"](0);
552
551
  console.log(_context9.t0);
553
552
  setShowSetting(false);
554
- case 21:
553
+ case 20:
555
554
  case "end":
556
555
  return _context9.stop();
557
556
  }
558
- }, _callee9, null, [[0, 17]]);
557
+ }, _callee9, null, [[0, 16]]);
559
558
  }));
560
559
  return function handleSettingSave() {
561
560
  return _ref7.apply(this, arguments);
@@ -1,144 +1,144 @@
1
- .application {
2
- height: 100%;
3
- min-height: 400px;
4
- overflow-x: hidden;
5
- overflow-y: auto;
6
-
7
- &-modal {
8
- .ant-modal-body {
9
- padding: 24px !important;
10
- }
11
- .ant-modal-confirm-body .ant-modal-confirm-title {
12
- color: #000;
13
- font-size: 24px;
14
- line-height: 24px;
15
- }
16
-
17
- .ant-modal-confirm-body .ant-modal-confirm-content {
18
- margin-top: 0;
19
- padding-top: 24px;
20
- }
21
-
22
- .ant-modal-close {
23
- padding-top: 8px;
24
- padding-right: 6px;
25
-
26
- &-x {
27
- color: #021429;
28
- font-size: 24px;
29
- }
30
- }
31
- }
32
-
33
- &-drawer {
34
- .ant-drawer-header-title {
35
- flex-direction: row-reverse;
36
- }
37
- }
38
-
39
- .bsicon {
40
- color: #9aa1a9;
41
- font-size: 16px !important;
42
- }
43
- .bsicon:hover {
44
- color: var(--io-i-, #165dff);
45
- }
46
-
47
- .bsicon.shanchu:hover {
48
- color: #fb5547;
49
- }
50
-
51
- .zhuge.icon-shanchu:hover {
52
- color: #fb5547;
53
- }
54
-
55
- &-alert-info {
56
- background-color: #e6f7ff;
57
- border: 1px solid #91d5ff;
58
- border-radius: 2px;
59
- }
60
-
61
- &-form {
62
- display: flex;
63
- align-items: center;
64
- justify-content: space-between;
65
-
66
- &-item {
67
- display: flex;
68
- gap: 8px;
69
- align-items: center;
70
-
71
- .bsicon {
72
- color: #fd9f41;
73
- }
74
-
75
- .bsicon:hover {
76
- color: var(--io-i-, #fd9f41);
77
- }
78
- }
79
-
80
- .ant-btn-sm {
81
- height: 32px;
82
- padding: 4px 16px;
83
- }
84
- }
85
-
86
- .ant-divider-horizontal {
87
- margin: 14px 0;
88
- }
89
-
90
- .biz-loading-container.loading {
91
- margin-top: 100px;
92
- }
93
-
94
- &-disabled,
95
- &-disabled:hover,
96
- &-disabled:focus {
97
- cursor: not-allowed !important;
98
- }
99
-
100
- .ant-btn-primary[disabled],
101
- .ant-btn-primary[disabled]:hover,
102
- .ant-btn-primary[disabled]:focus,
103
- .ant-btn-primary[disabled]:active {
104
- color: #fff;
105
- background: var(--io-i2-, #d0dfff);
106
- border: 1px solid #d0dfff;
107
- }
108
-
109
- .settings-card {
110
- gap: 6px;
111
- height: 120px;
112
- }
113
- &-rowContent {
114
- height: calc(100vh - 302px);
115
- overflow: overlay;
116
- }
117
- &-contentList-label {
118
- display: grid;
119
- grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
120
- align-items: center;
121
- padding-right: 14px;
122
- border-bottom: 1px solid #ecedf0;
123
- }
124
- &-contentList-item-name {
125
- color: #000;
126
- font-weight: bold;
127
- font-size: 14px;
128
- }
129
- &-contentList-item-status-icon0,
130
- &-contentList-item-status-icon1 {
131
- display: inline-block;
132
- width: 6px;
133
- height: 6px;
134
- margin-right: 3px;
135
- border-radius: 50%;
136
- transform: translateY(-1px);
137
- }
138
- &-contentList-item-status-icon0 {
139
- background: #67727f;
140
- }
141
- &-contentList-item-status-icon1 {
142
- background: #165dff;
143
- }
144
- }
1
+ .application {
2
+ height: 100%;
3
+ min-height: 400px;
4
+ overflow-x: hidden;
5
+ overflow-y: auto;
6
+
7
+ &-modal {
8
+ .ant-modal-body {
9
+ padding: 24px !important;
10
+ }
11
+ .ant-modal-confirm-body .ant-modal-confirm-title {
12
+ color: #000;
13
+ font-size: 24px;
14
+ line-height: 24px;
15
+ }
16
+
17
+ .ant-modal-confirm-body .ant-modal-confirm-content {
18
+ margin-top: 0;
19
+ padding-top: 24px;
20
+ }
21
+
22
+ .ant-modal-close {
23
+ padding-top: 8px;
24
+ padding-right: 6px;
25
+
26
+ &-x {
27
+ color: #021429;
28
+ font-size: 24px;
29
+ }
30
+ }
31
+ }
32
+
33
+ &-drawer {
34
+ .ant-drawer-header-title {
35
+ flex-direction: row-reverse;
36
+ }
37
+ }
38
+
39
+ .bsicon {
40
+ color: #9aa1a9;
41
+ font-size: 16px !important;
42
+ }
43
+ .bsicon:hover {
44
+ color: var(--io-i-, #165dff);
45
+ }
46
+
47
+ .bsicon.shanchu:hover {
48
+ color: #fb5547;
49
+ }
50
+
51
+ .zhuge.icon-shanchu:hover {
52
+ color: #fb5547;
53
+ }
54
+
55
+ &-alert-info {
56
+ background-color: #e6f7ff;
57
+ border: 1px solid #91d5ff;
58
+ border-radius: 2px;
59
+ }
60
+
61
+ &-form {
62
+ display: flex;
63
+ align-items: center;
64
+ justify-content: space-between;
65
+
66
+ &-item {
67
+ display: flex;
68
+ gap: 8px;
69
+ align-items: center;
70
+
71
+ .bsicon {
72
+ color: #fd9f41;
73
+ }
74
+
75
+ .bsicon:hover {
76
+ color: var(--io-i-, #fd9f41);
77
+ }
78
+ }
79
+
80
+ .ant-btn-sm {
81
+ height: 32px;
82
+ padding: 4px 16px;
83
+ }
84
+ }
85
+
86
+ .ant-divider-horizontal {
87
+ margin: 14px 0;
88
+ }
89
+
90
+ .biz-loading-container.loading {
91
+ margin-top: 100px;
92
+ }
93
+
94
+ &-disabled,
95
+ &-disabled:hover,
96
+ &-disabled:focus {
97
+ cursor: not-allowed !important;
98
+ }
99
+
100
+ .ant-btn-primary[disabled],
101
+ .ant-btn-primary[disabled]:hover,
102
+ .ant-btn-primary[disabled]:focus,
103
+ .ant-btn-primary[disabled]:active {
104
+ color: #fff;
105
+ background: var(--io-i2-, #d0dfff);
106
+ border: 1px solid #d0dfff;
107
+ }
108
+
109
+ .settings-card {
110
+ gap: 6px;
111
+ height: 120px;
112
+ }
113
+ &-rowContent {
114
+ height: calc(100vh - 302px);
115
+ overflow: overlay;
116
+ }
117
+ &-contentList-label {
118
+ display: grid;
119
+ grid-template-columns: 230px repeat(4, minmax(90px, 1fr)) 135px 90px 260px;
120
+ align-items: center;
121
+ padding-right: 14px;
122
+ border-bottom: 1px solid #ecedf0;
123
+ }
124
+ &-contentList-item-name {
125
+ color: #000;
126
+ font-weight: bold;
127
+ font-size: 14px;
128
+ }
129
+ &-contentList-item-status-icon0,
130
+ &-contentList-item-status-icon1 {
131
+ display: inline-block;
132
+ width: 6px;
133
+ height: 6px;
134
+ margin-right: 3px;
135
+ border-radius: 50%;
136
+ transform: translateY(-1px);
137
+ }
138
+ &-contentList-item-status-icon0 {
139
+ background: #67727f;
140
+ }
141
+ &-contentList-item-status-icon1 {
142
+ background: #165dff;
143
+ }
144
+ }
@@ -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 : 'info'),
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
- key: 'info',
162
- label: '公司信息',
163
- children: (/*#__PURE__*/React.createElement(Info, {
164
- ENVIRONMENT: ENVIRONMENT,
165
- companyId: currentUser.companyId,
166
- companyName: currentUser.companyName,
167
- changeCompanyNameCallback: changeCompanyNameCallback
168
- })),
169
- hidden: !authority[10078]
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
- key: 'department',
201
- label: '部门管理',
202
- children: (/*#__PURE__*/React.createElement(DepartmentList, {
203
- companyId: currentUser.companyId,
204
- closeCreateCallback: closeCreateCallback
205
- })),
206
- hidden: !authority[10081]
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
- key: 'cost',
238
- label: '套餐',
239
- children: /*#__PURE__*/React.createElement(Cost, {
240
- ENVIRONMENT: ENVIRONMENT,
241
- companyId: currentUser.companyId
242
- }),
243
- hidden: !authority[10083]
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),