@zgfe/modules-settings 1.2.12 → 1.2.13

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 (56) hide show
  1. package/es/components/settingTabs/index.less +3 -0
  2. package/es/constants/api.d.ts +21 -0
  3. package/es/constants/api.js +26 -1
  4. package/es/constants/icons/demo.css +0 -0
  5. package/es/constants/icons/demo_index.html +0 -0
  6. package/es/constants/icons/iconfont.css +0 -0
  7. package/es/constants/icons/iconfont.js +0 -0
  8. package/es/constants/icons/iconfont.json +0 -0
  9. package/es/constants/icons/iconfont.ttf +0 -0
  10. package/es/constants/icons/iconfont.woff +0 -0
  11. package/es/constants/icons/iconfont.woff2 +0 -0
  12. package/es/modules/appSettings/demo/index.d.ts +3 -1
  13. package/es/modules/appSettings/demo/index.js +16 -12
  14. package/es/modules/appSettings/index.js +6 -7
  15. package/es/modules/appSettings/member/index.js +75 -82
  16. package/es/modules/appSettings/member/index.less +4 -1
  17. package/es/modules/appSettings/member/modal.js +1 -1
  18. package/es/modules/companySetting/appList/index.js +24 -21
  19. package/es/modules/companySetting/appList/index.less +22 -0
  20. package/es/modules/companySetting/cost/index.js +2 -2
  21. package/es/modules/companySetting/cost/index.less +7 -0
  22. package/es/modules/companySetting/demo.js +3 -4
  23. package/es/modules/companySetting/department/index.d.ts +7 -0
  24. package/es/modules/companySetting/department/index.js +414 -0
  25. package/es/modules/companySetting/department/index.less +157 -0
  26. package/es/modules/companySetting/index.d.ts +0 -2
  27. package/es/modules/companySetting/index.js +189 -372
  28. package/es/modules/companySetting/index.less +65 -0
  29. package/es/modules/companySetting/info/index.js +6 -1
  30. package/es/modules/companySetting/info/index.less +7 -0
  31. package/es/modules/companySetting/operationLog/index.js +10 -4
  32. package/es/modules/companySetting/operationLog/index.less +6 -0
  33. package/es/modules/companySetting/role/index.d.ts +6 -0
  34. package/es/modules/companySetting/role/index.js +716 -0
  35. package/es/modules/companySetting/role/index.less +220 -0
  36. package/es/modules/companySetting/style/common.less +13 -2
  37. package/es/modules/companySetting/user/index.d.ts +1 -0
  38. package/es/modules/companySetting/user/index.js +224 -278
  39. package/es/modules/companySetting/user/index.less +199 -10
  40. package/es/modules/companySetting/user/invite.d.ts +4 -8
  41. package/es/modules/companySetting/user/invite.js +335 -174
  42. package/es/modules/companySetting/userGroup/groupItem.js +1 -1
  43. package/es/modules/companySetting/virtualApp/panels/list.js +1 -1
  44. package/es/modules/companySetting/wechatBinding/index.js +1 -1
  45. package/es/modules/companySetting/wechatBinding/index.less +10 -0
  46. package/es/modules/systemSetting/demo.d.ts +3 -0
  47. package/es/modules/systemSetting/demo.js +10 -0
  48. package/es/modules/systemSetting/notice/configItem/index.js +5 -1
  49. package/es/requests/department.d.ts +15 -0
  50. package/es/requests/department.js +68 -0
  51. package/es/requests/role.d.ts +25 -0
  52. package/es/requests/role.js +100 -0
  53. package/es/types/companySetting.d.ts +29 -2
  54. package/es/utils/util.d.ts +29 -0
  55. package/es/utils/util.js +77 -0
  56. package/package.json +5 -5
@@ -3,11 +3,14 @@
3
3
  .settings-container {
4
4
  padding: 24px;
5
5
  background: #f0f2f5;
6
+
6
7
  .tab-header {
7
8
  font-size: 18px;
9
+
8
10
  .tab-header-title {
9
11
  margin-left: 8px;
10
12
  }
13
+
11
14
  .app-name {
12
15
  font-weight: normal;
13
16
  font-size: 14px;
@@ -39,6 +39,27 @@ declare let apis: {
39
39
  queryFilter: string;
40
40
  queryNoticeConfig: string;
41
41
  editNoticeConfig: string;
42
+ queryDeptList: string;
43
+ addDept: string;
44
+ updateDept: string;
45
+ deleteDept: string;
46
+ queryRolePage: string;
47
+ queryRoleDetails: string;
48
+ queryRoleDataConfig: string;
49
+ queryRoleMenuTree: string;
50
+ queryCompanyUser: string;
51
+ addRole: string;
52
+ updateRole: string;
53
+ deleteRole: string;
54
+ queryUserPage: string;
55
+ queryRoleListByUserId: string;
56
+ queryDeptListByUserId: string;
57
+ queryCompanyUserDetailsParam: string;
58
+ addCompanyUser: string;
59
+ getPasswordRule: string;
60
+ updateCompanyUser: string;
61
+ delCompanyUser: string;
62
+ updateCompanyUserStatus: string;
42
63
  };
43
64
  eventMeta: {
44
65
  queryEventMeta: string;
@@ -44,8 +44,33 @@ var apis = {
44
44
  queryFilter: '/user/queryFilter.jsp',
45
45
  //系统设置
46
46
  queryNoticeConfig: apiPrefix + '/systemSettings/queryNoticeSettings',
47
- editNoticeConfig: apiPrefix + '/systemSettings/setNoticeSettings'
47
+ editNoticeConfig: apiPrefix + '/systemSettings/setNoticeSettings',
48
+ // 部门管理
49
+ queryDeptList: '/zg/web/v2/company/setting/queryDeptList',
50
+ addDept: '/zg/web/v2/company/setting/addDept',
51
+ updateDept: '/zg/web/v2/company/setting/updateDept',
52
+ deleteDept: '/zg/web/v2/company/setting/deleteDept',
53
+ // 角色管理
54
+ queryRolePage: '/zg/web/v2/company/setting/queryRolePage',
55
+ queryRoleDetails: '/zg/web/v2/company/setting/queryRoleDetails',
56
+ queryRoleDataConfig: '/zg/web/v2/company/setting/queryRoleDataConfig',
57
+ queryRoleMenuTree: '/zg/web/v2/company/setting/queryRoleMenuTree',
58
+ queryCompanyUser: '/zg/web/v2/company/setting/queryCompanyUser',
59
+ addRole: '/zg/web/v2/company/setting/addRole',
60
+ updateRole: '/zg/web/v2/company/setting/updateRole',
61
+ deleteRole: '/zg/web/v2/company/setting/deleteRole',
62
+ // 成员管理
63
+ queryUserPage: '/zg/web/v2/company/setting/queryUserPage',
64
+ queryRoleListByUserId: '/zg/web/v2/company/setting/queryRoleListByUserId',
65
+ queryDeptListByUserId: '/zg/web/v2/company/setting/queryDeptListByUserId',
66
+ queryCompanyUserDetailsParam: '/zg/web/v2/company/setting/queryCompanyUserDetailsParam',
67
+ addCompanyUser: '/zg/web/v2/company/setting/addCompanyUser',
68
+ getPasswordRule: '/zg/web/v2/system/getPasswordRule',
69
+ updateCompanyUser: '/zg/web/v2/company/setting/updateCompanyUser',
70
+ delCompanyUser: '/zg/web/v2/company/setting/delCompanyUser',
71
+ updateCompanyUserStatus: '/zg/web/v2/company/setting/updateCompanyUserStatus' // 修改状态
48
72
  },
73
+
49
74
  eventMeta: {
50
75
  queryEventMeta: '/zg/web/v2/data/queryEventMetasOfGroup'
51
76
  },
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1 +1,3 @@
1
-
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
3
+ export default _default;
@@ -1,12 +1,16 @@
1
- "use strict";
2
-
3
- // import React from 'react';
4
- // import { AppSettings } from '@zgfe/modules-settings';
5
- // import DemoWrapper from '../../../components/demo';
6
- // export default () => {
7
- // return (
8
- // <DemoWrapper>
9
- // <AppSettings />
10
- // </DemoWrapper>
11
- // );
12
- // };
1
+ import React from 'react';
2
+ // import { AppSettings } from '../../modules-settings';
3
+ import { BizGlobalDataContext, DemoWrapper } from '@zgfe/business-lib';
4
+ import funPermissions from '../../../utils/functionalPermissions';
5
+ import { AppSettings } from '../../..';
6
+ export default (function () {
7
+ return /*#__PURE__*/React.createElement(DemoWrapper, null, /*#__PURE__*/React.createElement(BizGlobalDataContext.Provider, {
8
+ value: {
9
+ funPermissions: funPermissions
10
+ }
11
+ }, /*#__PURE__*/React.createElement(AppSettings, {
12
+ settingsCallback: function settingsCallback(type) {
13
+ throw new Error('Function not implemented.');
14
+ }
15
+ })));
16
+ });
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import AppInfo from './appInfo';
3
- import AppMember from './member';
3
+ // import AppMember from './member';
4
4
  import AppSecretKey from './secretKey';
5
5
  import AppDataAccessFilter from './dataAccessFilter';
6
6
  import { SettingOutlined } from '@ant-design/icons';
@@ -25,11 +25,9 @@ var PersonalSetting = function PersonalSetting(_ref) {
25
25
  content: /*#__PURE__*/React.createElement(AppInfo, {
26
26
  settingsCallback: settingsCallback
27
27
  })
28
- }, {
29
- key: '2',
30
- label: '应用成员',
31
- content: /*#__PURE__*/React.createElement(AppMember, null)
32
- }, {
28
+ },
29
+ // { key: '2', label: '应用成员', content: <AppMember /> },
30
+ {
33
31
  key: '3',
34
32
  label: '配置数据源',
35
33
  content: /*#__PURE__*/React.createElement(AppVirtualSource, null),
@@ -46,7 +44,8 @@ var PersonalSetting = function PersonalSetting(_ref) {
46
44
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SettingTabs, {
47
45
  typeName: "app",
48
46
  title: title,
49
- items: items
47
+ items: items,
48
+ currentKey: '1'
50
49
  }));
51
50
  };
52
51
  export default PersonalSetting;
@@ -4,46 +4,39 @@ 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, useContext } from 'react';
7
+ import React, { useEffect } from 'react';
8
8
  import { Table, Popover } from 'antd';
9
- import { BizGlobalDataContext } from '@zgfe/business-lib';
9
+ // 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
13
  import { EyeOutlined } from '@ant-design/icons';
14
14
  import SetingModal from './modal';
15
15
  var AppMember = function AppMember() {
16
- var _useContext = useContext(BizGlobalDataContext),
17
- currentApp = _useContext.currentApp,
18
- getMenuRouterByName = _useContext.getMenuRouterByName;
16
+ // const { currentApp, getMenuRouterByName } = useContext(BizGlobalDataContext);
19
17
  var _useState = useState([]),
20
18
  _useState2 = _slicedToArray(_useState, 2),
21
19
  memberList = _useState2[0],
22
20
  setMemberList = _useState2[1]; // 成员列表
23
- var _useState3 = useState([]),
24
- _useState4 = _slicedToArray(_useState3, 2),
25
- groupInfoList = _useState4[0],
26
- setGroupInfoList = _useState4[1];
27
- var _useState5 = useState(new Map()),
21
+ // const [groupInfoList, setGroupInfoList] = useState<IGroupInfo[]>([]);
22
+ var _useState3 = useState(new Map()),
23
+ _useState4 = _slicedToArray(_useState3, 1),
24
+ groupInfoMap = _useState4[0];
25
+ var _useState5 = useState([]),
28
26
  _useState6 = _slicedToArray(_useState5, 2),
29
- groupInfoMap = _useState6[0],
30
- setGroupInfoMap = _useState6[1];
27
+ companyAppList = _useState6[0],
28
+ setCompanyAppList = _useState6[1];
31
29
  var _useState7 = useState([]),
32
- _useState8 = _slicedToArray(_useState7, 2),
33
- companyAppList = _useState8[0],
34
- setCompanyAppList = _useState8[1];
35
- var _useState9 = useState([]),
30
+ _useState8 = _slicedToArray(_useState7, 1),
31
+ leftMenus = _useState8[0];
32
+ var _useState9 = useState(false),
36
33
  _useState10 = _slicedToArray(_useState9, 2),
37
- leftMenus = _useState10[0],
38
- setLeftMenus = _useState10[1];
39
- var _useState11 = useState(false),
34
+ isModalOpen = _useState10[0],
35
+ setIsModalOpen = _useState10[1];
36
+ var _useState11 = useState({}),
40
37
  _useState12 = _slicedToArray(_useState11, 2),
41
- isModalOpen = _useState12[0],
42
- setIsModalOpen = _useState12[1];
43
- var _useState13 = useState({}),
44
- _useState14 = _slicedToArray(_useState13, 2),
45
- modalData = _useState14[0],
46
- setModalData = _useState14[1];
38
+ modalData = _useState12[0],
39
+ setModalData = _useState12[1];
47
40
  var setingModalhandle = function setingModalhandle(data, dealArr) {
48
41
  setModalData({
49
42
  data: data,
@@ -98,28 +91,26 @@ var AppMember = function AppMember() {
98
91
  var _memberList = ((res === null || res === void 0 ? void 0 : res.company_members) || []).map(function (item) {
99
92
  item.key = item.id;
100
93
  return item;
101
- }).filter(function (item) {
102
- return checkAuth(item);
103
94
  });
95
+ // .filter((item) => checkAuth(item));
104
96
  setMemberList(_memberList);
105
97
  }
106
98
  }).catch(function (err) {
107
99
  console.log(err);
108
100
  });
109
101
  // 请求用户组
110
- request(apis.setting.groupInfos, {
111
- method: 'get'
112
- }).then(function (res) {
113
- if ((res === null || res === void 0 ? void 0 : res.flag) === 101) {
114
- var _res$infos;
115
- setGroupInfoList((res === null || res === void 0 ? void 0 : res.infos) || []);
116
- var _groupInfoMap = new Map();
117
- res === null || res === void 0 ? void 0 : (_res$infos = res.infos) === null || _res$infos === void 0 ? void 0 : _res$infos.forEach(function (item) {
118
- _groupInfoMap.set(item.id, item);
119
- });
120
- setGroupInfoMap(_groupInfoMap);
121
- }
122
- });
102
+ // request<void>(apis.setting.groupInfos, {
103
+ // method: 'get',
104
+ // }).then((res: IGroupInfosRes<void> | null) => {
105
+ // if (res?.flag === 101) {
106
+ // setGroupInfoList(res?.infos || []);
107
+ // const groupInfoMap = new Map();
108
+ // res?.infos?.forEach((item: IGroupInfo) => {
109
+ // groupInfoMap.set(item.id, item);
110
+ // });
111
+ // setGroupInfoMap(groupInfoMap);
112
+ // }
113
+ // });
123
114
  // 请求应用列表
124
115
  request(apis.app.queryAppList, {
125
116
  method: 'get'
@@ -128,50 +119,52 @@ var AppMember = function AppMember() {
128
119
  setCompanyAppList((res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.appList) || []);
129
120
  });
130
121
  // 请求左侧菜单
131
- request(apis.app.queryLeftMenus, {
132
- method: 'get',
133
- params: {
134
- appId: (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) || 0
135
- }
136
- }).then(function (res) {
137
- var menus = (res === null || res === void 0 ? void 0 : res.data) || [];
138
- var formatMenus = function formatMenus(menus) {
139
- menus.forEach(function (item) {
140
- item.routeName = getMenuRouterByName(item.name);
141
- if (item.childrens) {
142
- formatMenus(item.childrens);
143
- }
144
- });
145
- };
146
- formatMenus(menus);
147
- setLeftMenus(menus);
148
- }).catch(function (err) {});
122
+ // request<void>(apis.app.queryLeftMenus, {
123
+ // method: 'get',
124
+ // params: {
125
+ // appId: currentApp?.appId,
126
+ // },
127
+ // })
128
+ // .then((res: ILeftMenusRes<void> | null) => {
129
+ // let menus = res?.data || [];
130
+ // let formatMenus = (menus: LeftMenusItem[]) => {
131
+ // menus.forEach((item: LeftMenusItem) => {
132
+ // item.routeName = getMenuRouterByName!(item.name);
133
+ // if (item.childrens) {
134
+ // formatMenus(item.childrens);
135
+ // }
136
+ // });
137
+ // };
138
+ // formatMenus(menus);
139
+ // setLeftMenus(menus);
140
+ // })
141
+ // .catch((err: IResError) => {});
149
142
  }, []);
150
143
  // 鉴权
151
- var checkAuth = function checkAuth(member) {
152
- var authConfig = member.authConfig || {};
153
- var defaultAuth = authConfig.defaultAuth || {};
154
- var groupIds = authConfig.groupIds || [];
155
- if (member.is_admin) return true;
156
- if (defaultAuth.dataAuth) {
157
- var arr = defaultAuth.dataAuth.map(function (item) {
158
- return item.appId;
159
- });
160
- if (arr[0] === 0) return true;
161
- if (arr.includes(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId)) return true;
162
- }
163
- for (var i = 0; i < groupInfoList.length - 1; i++) {
164
- if (groupIds.includes(groupInfoList[i].id)) {
165
- var dataAuth = groupInfoList[i].authConfig.dataAuth || [];
166
- var _arr2 = dataAuth.map(function (item) {
167
- return item.appId;
168
- });
169
- if (_arr2[0] === 0) return true;
170
- if (_arr2.includes(currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId)) return true;
171
- }
172
- }
173
- return false;
174
- };
144
+ // const checkAuth = (member: ICompanyMember) => {
145
+ // let authConfig = member.authConfig || {};
146
+ // let defaultAuth = authConfig.defaultAuth || {};
147
+ // let groupIds = authConfig.groupIds || [];
148
+ // if (member.is_admin) return true;
149
+ // if (defaultAuth.dataAuth) {
150
+ // let arr = defaultAuth.dataAuth.map((item) => {
151
+ // return item.appId;
152
+ // });
153
+ // if (arr[0] === 0) return true;
154
+ // if (arr.includes(currentApp?.appId as number)) return true;
155
+ // }
156
+ // for (let i = 0; i < groupInfoList.length - 1; i++) {
157
+ // if (groupIds.includes(groupInfoList[i].id)) {
158
+ // let dataAuth = groupInfoList[i].authConfig.dataAuth || [];
159
+ // let arr = dataAuth.map((item) => {
160
+ // return item.appId;
161
+ // });
162
+ // if (arr[0] === 0) return true;
163
+ // if (arr.includes(currentApp?.appId as number)) return true;
164
+ // }
165
+ // }
166
+ // return false;
167
+ // };
175
168
  // 组装用户组数据
176
169
  var getGroupName = function getGroupName(_ref) {
177
170
  var groupIds = _ref.groupIds;
@@ -3,13 +3,16 @@
3
3
  padding: 24px 24px 8px 24px !important;
4
4
  font-size: 24px;
5
5
  }
6
+
6
7
  .ant-modal-body {
7
8
  height: 60vh;
8
- padding: 0px 24px !important;
9
+ padding: 0 8px !important;
9
10
  }
11
+
10
12
  .ant-modal-footer {
11
13
  display: none;
12
14
  }
15
+
13
16
  .ant-modal-close-x {
14
17
  margin: 10px 10px 0 0;
15
18
  color: #242541;
@@ -15,7 +15,7 @@ var SetingModal = function SetingModal(props) {
15
15
  return /*#__PURE__*/React.createElement(Modal, {
16
16
  className: "seting-modal-box",
17
17
  title: "\u6743\u9650\u4FE1\u606F",
18
- visible: isModalOpen,
18
+ open: isModalOpen,
19
19
  onCancel: function onCancel() {
20
20
  return setIsModalOpen(false);
21
21
  }
@@ -31,7 +31,6 @@ var appList = function appList(props) {
31
31
  var dataAuth = props.dataAuth,
32
32
  isAdmin = props.isAdmin,
33
33
  isDemoAccount = props.isDemoAccount,
34
- authConfig = props.authConfig,
35
34
  id = props.id,
36
35
  allGroupInfos = props.allGroupInfos,
37
36
  isShowCreateApp = props.isShowCreateApp,
@@ -45,7 +44,8 @@ var appList = function appList(props) {
45
44
  closeCreateCallback = props.closeCreateCallback;
46
45
  var _useContext = useContext(BizGlobalDataContext),
47
46
  system = _useContext.system,
48
- currentUser = _useContext.currentUser;
47
+ currentUser = _useContext.currentUser,
48
+ authority = _useContext.authority;
49
49
  var _useState = useState(false),
50
50
  _useState2 = _slicedToArray(_useState, 2),
51
51
  createdAppPanel = _useState2[0],
@@ -120,11 +120,11 @@ var appList = function appList(props) {
120
120
  // const data = res[1];
121
121
  return /*#__PURE__*/React.createElement("div", {
122
122
  className: "operating"
123
- }, /*#__PURE__*/React.createElement("span", {
123
+ }, authority[10100] && /*#__PURE__*/React.createElement("span", {
124
124
  onClick: function onClick() {
125
125
  return toAppSetting(data);
126
126
  }
127
- }, "\u5E94\u7528\u8BBE\u7F6E"), /*#__PURE__*/React.createElement("span", {
127
+ }, "\u5E94\u7528\u8BBE\u7F6E"), authority[10101] && /*#__PURE__*/React.createElement("span", {
128
128
  onClick: function onClick() {
129
129
  return showDelPanel(data);
130
130
  },
@@ -224,20 +224,21 @@ var appList = function appList(props) {
224
224
  app_id: delAppId
225
225
  }
226
226
  }).then(function (res) {
227
+ console.log(77777, res);
227
228
  if ((res === null || res === void 0 ? void 0 : res.flag) === 101) {
228
229
  notification.success({
229
230
  message: '删除成功'
230
231
  });
231
- var cloneAuthConfig = util.clone(authConfig);
232
- if (!(cloneAuthConfig.dataAuth.length === 1 && cloneAuthConfig.dataAuth[0].appId === 0)) {
233
- var index = cloneAuthConfig.dataAuth.findIndex(function (item) {
234
- return item.appId === delAppId;
235
- });
236
- cloneAuthConfig.dataAuth.splice(index, 1);
237
- }
232
+ // let cloneAuthConfig = util.clone(authConfig);
233
+ // if (!(cloneAuthConfig.dataAuth.length === 1 && cloneAuthConfig.dataAuth[0].appId === 0)) {
234
+ // let index = cloneAuthConfig.dataAuth.findIndex(
235
+ // (item: DataAuthItem) => item.appId === delAppId,
236
+ // );
237
+ // cloneAuthConfig.dataAuth.splice(index, 1);
238
+ // }
238
239
  var formData = {
239
240
  userId: id,
240
- authConfig: JSON.stringify(cloneAuthConfig),
241
+ authConfig: '',
241
242
  groupIds: findGroups().join(',')
242
243
  };
243
244
  var hasAuthApplistByDel = companyRealAppList.filter(function (item) {
@@ -292,14 +293,14 @@ var appList = function appList(props) {
292
293
  }).then(function (res) {
293
294
  if (!res) return;
294
295
  setCreatedAppPanel(false);
295
- var cloneAuthConfig = util.clone(authConfig);
296
- cloneAuthConfig.dataAuth.unshift({
297
- appId: res.data.appInfo.id,
298
- plats: [0]
299
- });
296
+ // let cloneAuthConfig = util.clone(authConfig);
297
+ // cloneAuthConfig.dataAuth.unshift({
298
+ // appId: res.data!.appInfo.id,
299
+ // plats: [0],
300
+ // });
300
301
  var formData = {
301
302
  userId: id,
302
- authConfig: JSON.stringify(cloneAuthConfig),
303
+ authConfig: '',
303
304
  groupIds: findGroups().join(',')
304
305
  };
305
306
  // 通知数据刷新
@@ -322,6 +323,7 @@ var appList = function appList(props) {
322
323
  className: "applist-head"
323
324
  }, /*#__PURE__*/React.createElement(Button, {
324
325
  type: "primary",
326
+ disabled: !authority[10099],
325
327
  onClick: function onClick() {
326
328
  var _formRef$current3;
327
329
  setCreatedAppPanel(true);
@@ -329,8 +331,8 @@ var appList = function appList(props) {
329
331
  }
330
332
  }, "\u65B0\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(BizDialog, {
331
333
  title: "\u65B0\u5EFA\u5E94\u7528",
332
- visible: createdAppPanel,
333
- className: "app-list-create-app",
334
+ open: createdAppPanel,
335
+ className: "app-list-create-app setting-bizDialog",
334
336
  closable: true,
335
337
  onOk: function onOk() {
336
338
  onCreateConfirm();
@@ -375,8 +377,9 @@ var appList = function appList(props) {
375
377
  className: "app-list-desc"
376
378
  }, /*#__PURE__*/React.createElement("li", null, "\u65E0\u9700\u4E3A\u4E00\u4E2A\u4EA7\u54C1\u7684\u4E0D\u540C\u5E73\u53F0\u521B\u5EFA\u591A\u4E2A\u5E94\u7528"), /*#__PURE__*/React.createElement("li", null, "\u63A8\u8350\u60A8\u4F7F\u7528\u4EA7\u54C1\u540D\u79F0\u547D\u540D\u5E94\u7528\u540D, \u5982\u3010", zgText, "\u3011\u800C\u975E\u3010", zgText, " IOS\u7248\u3011")))), /*#__PURE__*/React.createElement(BizDialog, {
377
379
  title: "\u5220\u9664\u5E94\u7528",
378
- visible: delPanelState,
380
+ open: delPanelState,
379
381
  closable: true,
382
+ className: "setting-bizDialog",
380
383
  onOk: function onOk() {
381
384
  setDelPanelState(false);
382
385
  onDelConfirm();
@@ -1,27 +1,34 @@
1
1
  @import './../../../constants/icons/iconfont.css';
2
+
2
3
  .app-list {
3
4
  height: 100%;
5
+ margin-top: 8px;
4
6
  padding: 0;
5
7
  overflow: auto;
8
+
6
9
  .applist-head {
7
10
  .c-button {
8
11
  margin-right: 20px;
9
12
  }
10
13
  }
14
+
11
15
  .app-list-content {
12
16
  margin-top: 20px;
13
17
  }
18
+
14
19
  .platform-icons {
15
20
  display: flex;
16
21
  align-items: center;
17
22
  justify-content: flex-start;
18
23
  width: 100%;
24
+
19
25
  span {
20
26
  margin-right: 10px;
21
27
  color: #cfcfcf;
22
28
  font-size: 16px;
23
29
  }
24
30
  }
31
+
25
32
  .app-list-content {
26
33
  .c-grid-cell,
27
34
  .c-grid-header-cell {
@@ -29,42 +36,53 @@
29
36
  border: none;
30
37
  border-bottom: 1px solid #d1d1d1;
31
38
  }
39
+
32
40
  .c-grid-cell {
33
41
  text-align: left !important;
34
42
  }
43
+
35
44
  .c-grid-body .c-grid-row:nth-child(2n) {
36
45
  background: #fff !important;
37
46
  }
47
+
38
48
  .app-name {
39
49
  cursor: pointer;
50
+
40
51
  &:hover {
41
52
  color: #00a0ea;
42
53
  }
43
54
  }
55
+
44
56
  .operating {
45
57
  span {
46
58
  color: #00a0ea;
47
59
  cursor: pointer;
48
60
  }
61
+
49
62
  span.icon-delete {
50
63
  margin-left: 10px;
51
64
  color: #cfcfcf;
65
+
52
66
  &:hover {
53
67
  color: #00a0ea;
54
68
  }
55
69
  }
56
70
  }
57
71
  }
72
+
58
73
  .dialog-content {
59
74
  color: #858585;
75
+
60
76
  .c-input {
61
77
  margin-bottom: 20px;
62
78
  color: #000;
63
79
  }
64
80
  }
81
+
65
82
  .app-version .ant-radio-wrapper {
66
83
  margin-right: 48px !important;
67
84
  }
85
+
68
86
  &-version-warning {
69
87
  display: flex;
70
88
  gap: 10px;
@@ -75,11 +93,13 @@
75
93
  background-color: #e6f7ff;
76
94
  border: 1px solid #91d5ff;
77
95
  border-radius: 2px;
96
+
78
97
  .bsicon {
79
98
  color: #1890ff;
80
99
  font-size: 14px;
81
100
  }
82
101
  }
102
+
83
103
  &-create-app .ant-modal-header {
84
104
  padding-bottom: 0 !important;
85
105
  }
@@ -87,10 +107,12 @@
87
107
  &-form-item.ant-form-item {
88
108
  margin-bottom: 16px !important;
89
109
  }
110
+
90
111
  &-desc {
91
112
  li {
92
113
  padding-left: 4px;
93
114
  color: #9aa1a9;
115
+
94
116
  &::before {
95
117
  margin-right: 8px;
96
118
  content: '•';
@@ -139,9 +139,9 @@ var Cost = function Cost(props) {
139
139
  }, [accountEvents]);
140
140
  return /*#__PURE__*/React.createElement("div", {
141
141
  className: "company-setting-cost"
142
- }, ready ? ENVIRONMENT != 'saas' ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h5", null, "\u6982\u51B5"), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u4F7F\u7528\u5468\u671F"), /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u5E94\u7528\u6570"), /*#__PURE__*/React.createElement("th", null, "\u989D\u5B9A\u5E94\u7528\u6570"), /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u4E8B\u4EF6\u91CF"), /*#__PURE__*/React.createElement("th", null, "\u989D\u5B9A\u4E8B\u4EF6\u603B\u91CF"), /*#__PURE__*/React.createElement("th", null, "\u5408\u540C\u671F\u5185\u4E8B\u4EF6\u91CF"))), /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, overview.length ? overview.map(function (item) {
142
+ }, ready ? ENVIRONMENT != 'saas' ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h5", null, "\u6982\u51B5"), /*#__PURE__*/React.createElement("table", null, /*#__PURE__*/React.createElement("thead", null, /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u4F7F\u7528\u5468\u671F"), /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u5E94\u7528\u6570"), /*#__PURE__*/React.createElement("th", null, "\u989D\u5B9A\u5E94\u7528\u6570"), /*#__PURE__*/React.createElement("th", null, "\u5F53\u524D\u4E8B\u4EF6\u91CF"), /*#__PURE__*/React.createElement("th", null, "\u989D\u5B9A\u4E8B\u4EF6\u603B\u91CF"), /*#__PURE__*/React.createElement("th", null, "\u5408\u540C\u671F\u5185\u4E8B\u4EF6\u91CF"))), /*#__PURE__*/React.createElement("tbody", null, /*#__PURE__*/React.createElement("tr", null, overview.length ? overview.map(function (item, index) {
143
143
  return /*#__PURE__*/React.createElement("td", {
144
- key: item
144
+ key: index
145
145
  }, item);
146
146
  }) : /*#__PURE__*/React.createElement("td", {
147
147
  colSpan: 6