@zgfe/modules-settings 1.2.9 → 1.2.10-heyh.1
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/api.d.ts +20 -0
- package/es/constants/api.js +25 -1
- 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 +52 -58
- package/es/modules/appSettings/member/modal.js +1 -1
- package/es/modules/companySetting/appList/index.js +40 -18
- package/es/modules/companySetting/appList/index.less +35 -0
- package/es/modules/companySetting/cost/index.js +2 -2
- package/es/modules/companySetting/demo.js +3 -4
- package/es/modules/companySetting/department/index.d.ts +7 -0
- package/es/modules/companySetting/department/index.js +359 -0
- package/es/modules/companySetting/department/index.less +104 -0
- package/es/modules/companySetting/index.d.ts +0 -2
- package/es/modules/companySetting/index.js +165 -346
- package/es/modules/companySetting/index.less +39 -0
- package/es/modules/companySetting/info/index.js +6 -1
- package/es/modules/companySetting/operationLog/index.js +10 -4
- package/es/modules/companySetting/role/index.d.ts +6 -0
- package/es/modules/companySetting/role/index.js +566 -0
- package/es/modules/companySetting/role/index.less +160 -0
- package/es/modules/companySetting/user/index.js +171 -266
- package/es/modules/companySetting/user/index.less +112 -10
- package/es/modules/companySetting/user/invite.d.ts +3 -8
- package/es/modules/companySetting/user/invite.js +252 -173
- package/es/modules/companySetting/userGroup/authConfigDetail.d.ts +2 -1
- package/es/modules/companySetting/userGroup/groupItem.js +1 -1
- package/es/modules/companySetting/virtualApp/panels/list.js +1 -1
- package/es/modules/companySetting/wechatBinding/index.js +1 -1
- 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/department.d.ts +15 -0
- package/es/requests/department.js +68 -0
- package/es/requests/role.d.ts +16 -0
- package/es/requests/role.js +100 -0
- package/es/types/app.d.ts +10 -17
- package/es/types/app.js +11 -1
- package/es/types/companySetting.d.ts +28 -2
- package/es/utils/util.d.ts +23 -0
- package/es/utils/util.js +77 -0
- package/package.json +4 -4
package/es/constants/api.d.ts
CHANGED
|
@@ -39,6 +39,26 @@ 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
|
+
queryRoleUser: 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
|
+
updateCompanyUser: string;
|
|
60
|
+
delCompanyUser: string;
|
|
61
|
+
updateCompanyUserStatus: string;
|
|
42
62
|
};
|
|
43
63
|
eventMeta: {
|
|
44
64
|
queryEventMeta: string;
|
package/es/constants/api.js
CHANGED
|
@@ -44,8 +44,32 @@ 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
|
+
queryRoleUser: '/zg/web/v2/company/setting/queryRoleUser',
|
|
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
|
+
updateCompanyUser: '/zg/web/v2/company/setting/updateCompanyUser',
|
|
69
|
+
delCompanyUser: '/zg/web/v2/company/setting/delCompanyUser',
|
|
70
|
+
updateCompanyUserStatus: '/zg/web/v2/company/setting/updateCompanyUserStatus' // 修改状态
|
|
48
71
|
},
|
|
72
|
+
|
|
49
73
|
eventMeta: {
|
|
50
74
|
queryEventMeta: '/zg/web/v2/data/queryEventMetasOfGroup'
|
|
51
75
|
},
|
|
@@ -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;
|
|
@@ -20,30 +20,26 @@ var AppMember = function AppMember() {
|
|
|
20
20
|
_useState2 = _slicedToArray(_useState, 2),
|
|
21
21
|
memberList = _useState2[0],
|
|
22
22
|
setMemberList = _useState2[1]; // 成员列表
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var _useState5 = useState(
|
|
23
|
+
// const [groupInfoList, setGroupInfoList] = useState<IGroupInfo[]>([]);
|
|
24
|
+
var _useState3 = useState(new Map()),
|
|
25
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
26
|
+
groupInfoMap = _useState4[0];
|
|
27
|
+
var _useState5 = useState([]),
|
|
28
28
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
companyAppList = _useState6[0],
|
|
30
|
+
setCompanyAppList = _useState6[1];
|
|
31
31
|
var _useState7 = useState([]),
|
|
32
32
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _useState9 = useState(
|
|
33
|
+
leftMenus = _useState8[0],
|
|
34
|
+
setLeftMenus = _useState8[1];
|
|
35
|
+
var _useState9 = useState(false),
|
|
36
36
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var _useState11 = useState(
|
|
37
|
+
isModalOpen = _useState10[0],
|
|
38
|
+
setIsModalOpen = _useState10[1];
|
|
39
|
+
var _useState11 = useState({}),
|
|
40
40
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
var _useState13 = useState({}),
|
|
44
|
-
_useState14 = _slicedToArray(_useState13, 2),
|
|
45
|
-
modalData = _useState14[0],
|
|
46
|
-
setModalData = _useState14[1];
|
|
41
|
+
modalData = _useState12[0],
|
|
42
|
+
setModalData = _useState12[1];
|
|
47
43
|
var setingModalhandle = function setingModalhandle(data, dealArr) {
|
|
48
44
|
setModalData({
|
|
49
45
|
data: data,
|
|
@@ -98,28 +94,26 @@ var AppMember = function AppMember() {
|
|
|
98
94
|
var _memberList = ((res === null || res === void 0 ? void 0 : res.company_members) || []).map(function (item) {
|
|
99
95
|
item.key = item.id;
|
|
100
96
|
return item;
|
|
101
|
-
}).filter(function (item) {
|
|
102
|
-
return checkAuth(item);
|
|
103
97
|
});
|
|
98
|
+
// .filter((item) => checkAuth(item));
|
|
104
99
|
setMemberList(_memberList);
|
|
105
100
|
}
|
|
106
101
|
}).catch(function (err) {
|
|
107
102
|
console.log(err);
|
|
108
103
|
});
|
|
109
104
|
// 请求用户组
|
|
110
|
-
request(apis.setting.groupInfos, {
|
|
111
|
-
|
|
112
|
-
}).then(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
});
|
|
105
|
+
// request<void>(apis.setting.groupInfos, {
|
|
106
|
+
// method: 'get',
|
|
107
|
+
// }).then((res: IGroupInfosRes<void> | null) => {
|
|
108
|
+
// if (res?.flag === 101) {
|
|
109
|
+
// setGroupInfoList(res?.infos || []);
|
|
110
|
+
// const groupInfoMap = new Map();
|
|
111
|
+
// res?.infos?.forEach((item: IGroupInfo) => {
|
|
112
|
+
// groupInfoMap.set(item.id, item);
|
|
113
|
+
// });
|
|
114
|
+
// setGroupInfoMap(groupInfoMap);
|
|
115
|
+
// }
|
|
116
|
+
// });
|
|
123
117
|
// 请求应用列表
|
|
124
118
|
request(apis.app.queryAppList, {
|
|
125
119
|
method: 'get'
|
|
@@ -148,30 +142,30 @@ var AppMember = function AppMember() {
|
|
|
148
142
|
}).catch(function (err) {});
|
|
149
143
|
}, []);
|
|
150
144
|
// 鉴权
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
};
|
|
145
|
+
// const checkAuth = (member: ICompanyMember) => {
|
|
146
|
+
// let authConfig = member.authConfig || {};
|
|
147
|
+
// let defaultAuth = authConfig.defaultAuth || {};
|
|
148
|
+
// let groupIds = authConfig.groupIds || [];
|
|
149
|
+
// if (member.is_admin) return true;
|
|
150
|
+
// if (defaultAuth.dataAuth) {
|
|
151
|
+
// let arr = defaultAuth.dataAuth.map((item) => {
|
|
152
|
+
// return item.appId;
|
|
153
|
+
// });
|
|
154
|
+
// if (arr[0] === 0) return true;
|
|
155
|
+
// if (arr.includes(currentApp?.appId as number)) return true;
|
|
156
|
+
// }
|
|
157
|
+
// for (let i = 0; i < groupInfoList.length - 1; i++) {
|
|
158
|
+
// if (groupIds.includes(groupInfoList[i].id)) {
|
|
159
|
+
// let dataAuth = groupInfoList[i].authConfig.dataAuth || [];
|
|
160
|
+
// let arr = dataAuth.map((item) => {
|
|
161
|
+
// return item.appId;
|
|
162
|
+
// });
|
|
163
|
+
// if (arr[0] === 0) return true;
|
|
164
|
+
// if (arr.includes(currentApp?.appId as number)) return true;
|
|
165
|
+
// }
|
|
166
|
+
// }
|
|
167
|
+
// return false;
|
|
168
|
+
// };
|
|
175
169
|
// 组装用户组数据
|
|
176
170
|
var getGroupName = function getGroupName(_ref) {
|
|
177
171
|
var groupIds = _ref.groupIds;
|
|
@@ -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
|
}
|
|
@@ -8,10 +8,11 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
8
8
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
9
9
|
import './index.less';
|
|
10
10
|
import util from './../../../utils/util';
|
|
11
|
-
import { Button, Form, Input, notification } from 'antd';
|
|
11
|
+
import { Button, Form, Input, Radio, notification } from 'antd';
|
|
12
12
|
import request from './../../../utils/ajax';
|
|
13
13
|
import api from './../../../constants/api';
|
|
14
|
-
import { BizTable, BizDialog, BizGlobalDataContext, ajax } from '@zgfe/business-lib';
|
|
14
|
+
import { BizTable, BizDialog, BizGlobalDataContext, ajax, IconFont } from '@zgfe/business-lib';
|
|
15
|
+
import { AppVersion } from '../../../types';
|
|
15
16
|
var reworkAppName = function reworkAppName(name) {
|
|
16
17
|
return name.length > 15 ? "".concat(name.substring(0, 15), "...") : name;
|
|
17
18
|
};
|
|
@@ -43,7 +44,9 @@ var appList = function appList(props) {
|
|
|
43
44
|
createAppCallback = props.createAppCallback,
|
|
44
45
|
closeCreateCallback = props.closeCreateCallback;
|
|
45
46
|
var _useContext = useContext(BizGlobalDataContext),
|
|
46
|
-
system = _useContext.system
|
|
47
|
+
system = _useContext.system,
|
|
48
|
+
currentUser = _useContext.currentUser,
|
|
49
|
+
authority = _useContext.authority;
|
|
47
50
|
var _useState = useState(false),
|
|
48
51
|
_useState2 = _slicedToArray(_useState, 2),
|
|
49
52
|
createdAppPanel = _useState2[0],
|
|
@@ -118,11 +121,11 @@ var appList = function appList(props) {
|
|
|
118
121
|
// const data = res[1];
|
|
119
122
|
return /*#__PURE__*/React.createElement("div", {
|
|
120
123
|
className: "operating"
|
|
121
|
-
}, /*#__PURE__*/React.createElement("span", {
|
|
124
|
+
}, authority[10100] && /*#__PURE__*/React.createElement("span", {
|
|
122
125
|
onClick: function onClick() {
|
|
123
126
|
return toAppSetting(data);
|
|
124
127
|
}
|
|
125
|
-
}, "\u5E94\u7528\u8BBE\u7F6E"), /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
}, "\u5E94\u7528\u8BBE\u7F6E"), authority[10101] && /*#__PURE__*/React.createElement("span", {
|
|
126
129
|
onClick: function onClick() {
|
|
127
130
|
return showDelPanel(data);
|
|
128
131
|
},
|
|
@@ -262,6 +265,7 @@ var appList = function appList(props) {
|
|
|
262
265
|
});
|
|
263
266
|
};
|
|
264
267
|
var onCreateConfirm = function onCreateConfirm() {
|
|
268
|
+
var _formRef$current2;
|
|
265
269
|
if (inDemoMode()) {
|
|
266
270
|
return;
|
|
267
271
|
}
|
|
@@ -283,7 +287,8 @@ var appList = function appList(props) {
|
|
|
283
287
|
method: 'post',
|
|
284
288
|
data: {
|
|
285
289
|
appName: appNameVal,
|
|
286
|
-
companyId: companyId
|
|
290
|
+
companyId: companyId,
|
|
291
|
+
appVersion: (_formRef$current2 = formRef.current) === null || _formRef$current2 === void 0 ? void 0 : _formRef$current2.getFieldValue('appVersion')
|
|
287
292
|
}
|
|
288
293
|
}).then(function (res) {
|
|
289
294
|
if (!res) return;
|
|
@@ -318,14 +323,16 @@ var appList = function appList(props) {
|
|
|
318
323
|
className: "applist-head"
|
|
319
324
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
320
325
|
type: "primary",
|
|
326
|
+
disabled: !authority[10099],
|
|
321
327
|
onClick: function onClick() {
|
|
322
|
-
var _formRef$
|
|
328
|
+
var _formRef$current3;
|
|
323
329
|
setCreatedAppPanel(true);
|
|
324
|
-
(_formRef$
|
|
330
|
+
(_formRef$current3 = formRef.current) === null || _formRef$current3 === void 0 ? void 0 : _formRef$current3.setFieldValue('appNameVal', '');
|
|
325
331
|
}
|
|
326
332
|
}, "\u65B0\u5EFA\u5E94\u7528")), /*#__PURE__*/React.createElement(BizDialog, {
|
|
327
333
|
title: "\u65B0\u5EFA\u5E94\u7528",
|
|
328
|
-
|
|
334
|
+
open: createdAppPanel,
|
|
335
|
+
className: "app-list-create-app",
|
|
329
336
|
closable: true,
|
|
330
337
|
onOk: function onOk() {
|
|
331
338
|
onCreateConfirm();
|
|
@@ -339,23 +346,38 @@ var appList = function appList(props) {
|
|
|
339
346
|
className: "dialog-content"
|
|
340
347
|
}, /*#__PURE__*/React.createElement(Form, {
|
|
341
348
|
initialValues: {
|
|
342
|
-
appNameVal: ''
|
|
349
|
+
appNameVal: '',
|
|
350
|
+
appVersion: (currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion) === 0 ? AppVersion.common : currentUser === null || currentUser === void 0 ? void 0 : currentUser.companyBuyVersion
|
|
343
351
|
},
|
|
344
352
|
ref: formRef,
|
|
345
353
|
onValuesChange: function onValuesChange() {
|
|
346
|
-
var _formRef$
|
|
347
|
-
setAppNameVal((_formRef$
|
|
354
|
+
var _formRef$current4;
|
|
355
|
+
setAppNameVal((_formRef$current4 = formRef.current) === null || _formRef$current4 === void 0 ? void 0 : _formRef$current4.getFieldValue('appNameVal'));
|
|
348
356
|
}
|
|
349
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
350
|
-
|
|
357
|
+
}, (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("div", {
|
|
358
|
+
className: "app-list-version-warning"
|
|
359
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
360
|
+
type: "tishi1"
|
|
361
|
+
}), "\u7248\u672C\u9009\u62E9\u540E\u65E0\u6CD5\u66F4\u6539\uFF0C\u8BF7\u8C28\u614E\u9009\u62E9")), /*#__PURE__*/React.createElement(Form.Item, {
|
|
362
|
+
name: "appVersion"
|
|
363
|
+
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
364
|
+
className: "app-version"
|
|
365
|
+
}, /*#__PURE__*/React.createElement(Radio, {
|
|
366
|
+
value: AppVersion.common
|
|
367
|
+
}, "\u901A\u7528\u7248\u672C"), /*#__PURE__*/React.createElement(Radio, {
|
|
368
|
+
value: AppVersion.bank
|
|
369
|
+
}, "\u57CE\u5546\u884C\u573A\u666F\u7248\u672C")))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
370
|
+
name: 'appNameVal',
|
|
371
|
+
className: "app-list-form-item"
|
|
351
372
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
352
373
|
type: 'text',
|
|
353
374
|
placeholder: '请输入应用名',
|
|
354
|
-
width: "100%"
|
|
355
|
-
|
|
356
|
-
|
|
375
|
+
width: "100%"
|
|
376
|
+
}))), /*#__PURE__*/React.createElement("ul", {
|
|
377
|
+
className: "app-list-desc"
|
|
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, {
|
|
357
379
|
title: "\u5220\u9664\u5E94\u7528",
|
|
358
|
-
|
|
380
|
+
open: delPanelState,
|
|
359
381
|
closable: true,
|
|
360
382
|
onOk: function onOk() {
|
|
361
383
|
setDelPanelState(false);
|
|
@@ -62,4 +62,39 @@
|
|
|
62
62
|
color: #000;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
.app-version .ant-radio-wrapper {
|
|
66
|
+
margin-right: 48px !important;
|
|
67
|
+
}
|
|
68
|
+
&-version-warning {
|
|
69
|
+
display: flex;
|
|
70
|
+
gap: 10px;
|
|
71
|
+
align-items: center;
|
|
72
|
+
height: 32px;
|
|
73
|
+
padding: 0 16px;
|
|
74
|
+
color: #021429;
|
|
75
|
+
background-color: #e6f7ff;
|
|
76
|
+
border: 1px solid #91d5ff;
|
|
77
|
+
border-radius: 2px;
|
|
78
|
+
.bsicon {
|
|
79
|
+
color: #1890ff;
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&-create-app .ant-modal-header {
|
|
84
|
+
padding-bottom: 0 !important;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&-form-item.ant-form-item {
|
|
88
|
+
margin-bottom: 16px !important;
|
|
89
|
+
}
|
|
90
|
+
&-desc {
|
|
91
|
+
li {
|
|
92
|
+
padding-left: 4px;
|
|
93
|
+
color: #9aa1a9;
|
|
94
|
+
&::before {
|
|
95
|
+
margin-right: 8px;
|
|
96
|
+
content: '•';
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
65
100
|
}
|
|
@@ -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:
|
|
144
|
+
key: index
|
|
145
145
|
}, item);
|
|
146
146
|
}) : /*#__PURE__*/React.createElement("td", {
|
|
147
147
|
colSpan: 6
|
|
@@ -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
|
});
|