@zgfe/modules-settings 1.2.11 → 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.
- package/es/components/settingTabs/index.less +3 -0
- package/es/constants/api.d.ts +2 -1
- package/es/constants/api.js +2 -1
- 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/demo/index.d.ts +3 -1
- package/es/modules/appSettings/demo/index.js +16 -12
- package/es/modules/appSettings/index.js +6 -7
- package/es/modules/appSettings/member/index.js +75 -82
- package/es/modules/appSettings/member/index.less +4 -1
- package/es/modules/appSettings/member/modal.js +1 -1
- package/es/modules/companySetting/appList/index.js +23 -20
- package/es/modules/companySetting/appList/index.less +22 -0
- package/es/modules/companySetting/cost/index.less +7 -0
- package/es/modules/companySetting/demo.js +3 -4
- package/es/modules/companySetting/department/index.js +104 -46
- package/es/modules/companySetting/department/index.less +57 -4
- package/es/modules/companySetting/index.d.ts +0 -2
- package/es/modules/companySetting/index.js +135 -137
- package/es/modules/companySetting/index.less +30 -4
- package/es/modules/companySetting/info/index.js +6 -1
- package/es/modules/companySetting/info/index.less +7 -0
- package/es/modules/companySetting/operationLog/index.js +10 -4
- package/es/modules/companySetting/operationLog/index.less +6 -0
- package/es/modules/companySetting/role/index.js +242 -87
- package/es/modules/companySetting/role/index.less +62 -2
- package/es/modules/companySetting/style/common.less +13 -2
- package/es/modules/companySetting/user/index.d.ts +1 -0
- package/es/modules/companySetting/user/index.js +75 -32
- package/es/modules/companySetting/user/index.less +90 -3
- package/es/modules/companySetting/user/invite.d.ts +1 -0
- package/es/modules/companySetting/user/invite.js +112 -27
- package/es/modules/companySetting/wechatBinding/index.less +10 -0
- package/es/modules/systemSetting/demo.d.ts +3 -0
- package/es/modules/systemSetting/demo.js +10 -0
- package/es/modules/systemSetting/notice/configItem/index.js +5 -1
- package/es/requests/role.d.ts +12 -3
- package/es/requests/role.js +6 -6
- package/es/types/companySetting.d.ts +1 -0
- package/es/utils/util.d.ts +7 -1
- package/package.json +4 -4
package/es/constants/api.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare let apis: {
|
|
|
47
47
|
queryRoleDetails: string;
|
|
48
48
|
queryRoleDataConfig: string;
|
|
49
49
|
queryRoleMenuTree: string;
|
|
50
|
-
|
|
50
|
+
queryCompanyUser: string;
|
|
51
51
|
addRole: string;
|
|
52
52
|
updateRole: string;
|
|
53
53
|
deleteRole: string;
|
|
@@ -56,6 +56,7 @@ declare let apis: {
|
|
|
56
56
|
queryDeptListByUserId: string;
|
|
57
57
|
queryCompanyUserDetailsParam: string;
|
|
58
58
|
addCompanyUser: string;
|
|
59
|
+
getPasswordRule: string;
|
|
59
60
|
updateCompanyUser: string;
|
|
60
61
|
delCompanyUser: string;
|
|
61
62
|
updateCompanyUserStatus: string;
|
package/es/constants/api.js
CHANGED
|
@@ -55,7 +55,7 @@ var apis = {
|
|
|
55
55
|
queryRoleDetails: '/zg/web/v2/company/setting/queryRoleDetails',
|
|
56
56
|
queryRoleDataConfig: '/zg/web/v2/company/setting/queryRoleDataConfig',
|
|
57
57
|
queryRoleMenuTree: '/zg/web/v2/company/setting/queryRoleMenuTree',
|
|
58
|
-
|
|
58
|
+
queryCompanyUser: '/zg/web/v2/company/setting/queryCompanyUser',
|
|
59
59
|
addRole: '/zg/web/v2/company/setting/addRole',
|
|
60
60
|
updateRole: '/zg/web/v2/company/setting/updateRole',
|
|
61
61
|
deleteRole: '/zg/web/v2/company/setting/deleteRole',
|
|
@@ -65,6 +65,7 @@ var apis = {
|
|
|
65
65
|
queryDeptListByUserId: '/zg/web/v2/company/setting/queryDeptListByUserId',
|
|
66
66
|
queryCompanyUserDetailsParam: '/zg/web/v2/company/setting/queryCompanyUserDetailsParam',
|
|
67
67
|
addCompanyUser: '/zg/web/v2/company/setting/addCompanyUser',
|
|
68
|
+
getPasswordRule: '/zg/web/v2/system/getPasswordRule',
|
|
68
69
|
updateCompanyUser: '/zg/web/v2/company/setting/updateCompanyUser',
|
|
69
70
|
delCompanyUser: '/zg/web/v2/company/setting/delCompanyUser',
|
|
70
71
|
updateCompanyUserStatus: '/zg/web/v2/company/setting/updateCompanyUserStatus' // 修改状态
|
|
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,12 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
|
|
30
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _useState5 = useState(
|
|
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
|
-
|
|
30
|
-
|
|
27
|
+
companyAppList = _useState6[0],
|
|
28
|
+
setCompanyAppList = _useState6[1];
|
|
31
29
|
var _useState7 = useState([]),
|
|
32
|
-
_useState8 = _slicedToArray(_useState7,
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
38
|
-
|
|
39
|
-
var _useState11 = useState(
|
|
34
|
+
isModalOpen = _useState10[0],
|
|
35
|
+
setIsModalOpen = _useState10[1];
|
|
36
|
+
var _useState11 = useState({}),
|
|
40
37
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
112
|
-
}).then(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
232
|
-
if (!(cloneAuthConfig.dataAuth.length === 1 && cloneAuthConfig.dataAuth[0].appId === 0)) {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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:
|
|
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
|
-
|
|
296
|
-
cloneAuthConfig.dataAuth.unshift({
|
|
297
|
-
|
|
298
|
-
|
|
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:
|
|
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
|
-
|
|
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();
|
|
@@ -377,6 +379,7 @@ var appList = function appList(props) {
|
|
|
377
379
|
title: "\u5220\u9664\u5E94\u7528",
|
|
378
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: '•';
|
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
@import './../../../constants/icons/iconfont.css';
|
|
2
|
+
|
|
2
3
|
.company-setting-cost {
|
|
3
4
|
min-height: 400px;
|
|
4
5
|
max-height: 100%;
|
|
6
|
+
margin-top: 8px;
|
|
5
7
|
padding: 0;
|
|
6
8
|
overflow: auto;
|
|
9
|
+
|
|
7
10
|
h5 {
|
|
8
11
|
font-weight: normal;
|
|
9
12
|
font-size: 14px;
|
|
10
13
|
}
|
|
14
|
+
|
|
11
15
|
table {
|
|
12
16
|
width: 100%;
|
|
13
17
|
margin: 15px 0 40px 0;
|
|
14
18
|
border-collapse: collapse;
|
|
19
|
+
|
|
15
20
|
thead {
|
|
16
21
|
color: #636363;
|
|
17
22
|
font-weight: bold;
|
|
18
23
|
font-size: 14px;
|
|
19
24
|
background: #fbfbfb;
|
|
20
25
|
}
|
|
26
|
+
|
|
21
27
|
td,
|
|
22
28
|
th {
|
|
23
29
|
padding: 10px 15px;
|
|
24
30
|
text-align: center;
|
|
25
31
|
border: 1px solid #cecece;
|
|
26
32
|
}
|
|
33
|
+
|
|
27
34
|
td {
|
|
28
35
|
height: 50px;
|
|
29
36
|
}
|
|
@@ -6,16 +6,15 @@ import util from '../../utils/util';
|
|
|
6
6
|
import { CompanySetting } from '../..';
|
|
7
7
|
export default (function () {
|
|
8
8
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
9
|
-
|
|
9
|
+
defaultApp: 348
|
|
10
10
|
}, /*#__PURE__*/React.createElement(BizGlobalDataContext.Provider, {
|
|
11
11
|
value: {
|
|
12
12
|
funPermissions: funPermissions,
|
|
13
13
|
menusName: constants.menusName,
|
|
14
|
-
getMenuRouterByName: util.getMenuRouterByName
|
|
14
|
+
getMenuRouterByName: util.getMenuRouterByName,
|
|
15
|
+
authority: sessionStorage.getItem('authorityList') ? JSON.parse(sessionStorage.getItem('authorityList')) : {}
|
|
15
16
|
}
|
|
16
17
|
}, /*#__PURE__*/React.createElement(CompanySetting, {
|
|
17
|
-
showWeChatMenu: true,
|
|
18
|
-
showMarketMenu: true,
|
|
19
18
|
action: ''
|
|
20
19
|
})));
|
|
21
20
|
});
|