@zgfe/modules-settings 1.2.11 → 1.2.13-alpha.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/README.md +33 -33
- package/es/components/pageLoading/index.less +7 -7
- package/es/components/settingTabs/index.less +47 -47
- package/es/constants/api.d.ts +1 -20
- package/es/constants/api.js +2 -24
- package/es/constants/icons/demo.css +539 -539
- package/es/constants/icons/demo_index.html +8537 -8537
- package/es/constants/icons/iconfont.css +1467 -1467
- package/es/constants/icons/iconfont.json +2550 -2550
- package/es/global.d.ts +4 -4
- package/es/modules/appSettings/dataAccessFilter/index.less +5 -5
- package/es/modules/appSettings/member/index.less +18 -18
- package/es/modules/appSettings/virtualSource/styles/index.less +28 -28
- package/es/modules/appSettings/virtualSource/styles/table.less +51 -51
- package/es/modules/companySetting/appList/index.js +60 -3
- package/es/modules/companySetting/appList/index.less +100 -100
- package/es/modules/companySetting/cost/index.js +2 -2
- package/es/modules/companySetting/cost/index.less +31 -31
- package/es/modules/companySetting/edit/styles/authConfig.less +3 -3
- package/es/modules/companySetting/edit/styles/authGroup.less +10 -10
- package/es/modules/companySetting/edit/styles/authModule.less +82 -82
- package/es/modules/companySetting/edit/styles/user.less +54 -54
- package/es/modules/companySetting/edit/styles/userGroup.less +44 -44
- package/es/modules/companySetting/index.js +256 -75
- package/es/modules/companySetting/index.less +24 -63
- package/es/modules/companySetting/info/index.less +35 -35
- package/es/modules/companySetting/operationLog/index.less +27 -27
- package/es/modules/companySetting/style/common.less +68 -68
- package/es/modules/companySetting/style/reset.less +117 -117
- package/es/modules/companySetting/user/index.js +264 -167
- package/es/modules/companySetting/user/index.less +162 -264
- package/es/modules/companySetting/user/invite.d.ts +8 -3
- package/es/modules/companySetting/user/invite.js +173 -249
- package/es/modules/companySetting/userGroup/groupItem.js +1 -1
- package/es/modules/companySetting/userGroup/index.less +6 -6
- package/es/modules/companySetting/userGroup/style/authConfigDetail.less +44 -44
- package/es/modules/companySetting/userGroup/style/index.less +79 -79
- package/es/modules/companySetting/virtualApp/panels/list.js +1 -1
- package/es/modules/companySetting/virtualApp/styles/config.less +37 -37
- package/es/modules/companySetting/virtualApp/styles/index.less +21 -21
- package/es/modules/companySetting/virtualApp/styles/list.less +28 -28
- package/es/modules/companySetting/virtualApp/styles/sourceItem.less +33 -33
- package/es/modules/companySetting/virtualApp/styles/table.less +44 -44
- package/es/modules/companySetting/wechatBinding/index.js +1 -1
- package/es/modules/companySetting/wechatBinding/index.less +48 -48
- package/es/modules/personalSetting/securityLog/index.less +10 -10
- package/es/modules/personalSetting/styles/unbinding.less +73 -73
- package/es/modules/systemSetting/notice/configItem/index.less +15 -15
- package/es/modules/systemSetting/notice/edit/index.less +26 -26
- package/es/types/companySetting.d.ts +3 -28
- package/es/utils/util.d.ts +0 -23
- package/es/utils/util.js +0 -77
- package/package.json +4 -4
- package/es/modules/companySetting/department/index.d.ts +0 -7
- package/es/modules/companySetting/department/index.js +0 -356
- package/es/modules/companySetting/department/index.less +0 -104
- package/es/modules/companySetting/role/index.d.ts +0 -6
- package/es/modules/companySetting/role/index.js +0 -561
- package/es/modules/companySetting/role/index.less +0 -160
- package/es/requests/department.d.ts +0 -15
- package/es/requests/department.js +0 -68
- package/es/requests/role.d.ts +0 -16
- package/es/requests/role.js +0 -100
|
@@ -1,292 +1,216 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
2
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
3
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
10
5
|
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; }
|
|
11
6
|
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; } }
|
|
12
7
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
|
-
|
|
8
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
9
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
10
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
11
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
+
import React, { useState } from 'react';
|
|
14
14
|
import './index.less';
|
|
15
|
-
import
|
|
15
|
+
import constants from './../../../utils/constants';
|
|
16
|
+
import { Button, Input, notification, Select } from 'antd';
|
|
16
17
|
import request from './../../../utils/ajax';
|
|
17
18
|
import apis from './../../../constants/api';
|
|
18
|
-
import { BizDialog, BizSelect } from '@zgfe/business-lib';
|
|
19
|
-
// import companySettingUserGroup from '../edit/userGroup'
|
|
20
|
-
// import groupItem from './groupItem.vue'
|
|
21
19
|
var UserGroup = function UserGroup(props) {
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
var
|
|
20
|
+
var ENVIRONMENT = props.ENVIRONMENT,
|
|
21
|
+
allGroupInfos = props.allGroupInfos,
|
|
22
|
+
isSso = props.isSso,
|
|
23
|
+
showPwdPanel = props.showPwdPanel,
|
|
24
|
+
createMembersCallback = props.createMembersCallback;
|
|
25
|
+
var dealAllGroupInfos = allGroupInfos.map(function (item) {
|
|
26
|
+
return _objectSpread(_objectSpread({}, item), {}, {
|
|
27
|
+
value: item.id,
|
|
28
|
+
label: item.groupName
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
var _useState = useState(''),
|
|
28
32
|
_useState2 = _slicedToArray(_useState, 2),
|
|
29
|
-
|
|
30
|
-
|
|
33
|
+
inviteVal = _useState2[0],
|
|
34
|
+
setInviteVal = _useState2[1];
|
|
31
35
|
var _useState3 = useState([]),
|
|
32
36
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
var _useState5 = useState(
|
|
37
|
+
targetGroup = _useState4[0],
|
|
38
|
+
setTargetGroup = _useState4[1];
|
|
39
|
+
var _useState5 = useState(false),
|
|
36
40
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
useEffect(function () {
|
|
48
|
-
if (userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) {
|
|
49
|
-
setCreatedAppPanel(true);
|
|
50
|
-
queryCompanyUserDetailsParamList(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id);
|
|
51
|
-
// 角色下拉数据
|
|
52
|
-
queryRoleListByUserIdList(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id);
|
|
53
|
-
// 部门下拉数据
|
|
54
|
-
queryDeptListByUserIdList(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id);
|
|
55
|
-
}
|
|
56
|
-
}, [userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id]);
|
|
57
|
-
useEffect(function () {
|
|
58
|
-
queryPanel(_objectSpread({}, queryParams));
|
|
59
|
-
}, [queryParams]);
|
|
60
|
-
useEffect(function () {
|
|
61
|
-
// 角色下拉数据
|
|
62
|
-
queryRoleListByUserIdList(null);
|
|
63
|
-
// 部门下拉数据
|
|
64
|
-
queryDeptListByUserIdList(null);
|
|
65
|
-
}, []);
|
|
66
|
-
// 查看详情
|
|
67
|
-
var queryCompanyUserDetailsParamList = function queryCompanyUserDetailsParamList(id) {
|
|
68
|
-
request(apis.setting.queryCompanyUserDetailsParam, {
|
|
69
|
-
method: 'post',
|
|
70
|
-
data: {
|
|
71
|
-
id: id
|
|
41
|
+
inviteBtnLoading = _useState6[0],
|
|
42
|
+
setInviteBtnLoading = _useState6[1];
|
|
43
|
+
var validatorPhone = function validatorPhone() {
|
|
44
|
+
var message = '';
|
|
45
|
+
if (ENVIRONMENT === 'saas') {
|
|
46
|
+
if (isSso) {
|
|
47
|
+
if (!inviteVal || !inviteVal.trim()) {
|
|
48
|
+
message = '账户不能为空';
|
|
49
|
+
}
|
|
50
|
+
return message;
|
|
72
51
|
}
|
|
73
|
-
|
|
74
|
-
if (
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return {
|
|
79
|
-
id: item
|
|
80
|
-
};
|
|
81
|
-
})
|
|
82
|
-
}));
|
|
52
|
+
// 手机号输入框验证
|
|
53
|
+
if (!inviteVal) {
|
|
54
|
+
message = '手机号码不能为空';
|
|
55
|
+
} else if (!constants.regExp.phone.test(inviteVal)) {
|
|
56
|
+
message = '手机号码格式错误';
|
|
83
57
|
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
var queryRoleListByUserIdList = function queryRoleListByUserIdList(id) {
|
|
89
|
-
request(apis.setting.queryRoleListByUserId, {
|
|
90
|
-
method: 'post',
|
|
91
|
-
data: {
|
|
92
|
-
id: id
|
|
58
|
+
} else {
|
|
59
|
+
if (!constants.regExp.account.test(inviteVal)) {
|
|
60
|
+
message = '5~30个字符,可包含大、小写字母和数字、特殊字符(_.@)';
|
|
93
61
|
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
setUserList(res === null || res === void 0 ? void 0 : res.data);
|
|
97
|
-
} else {
|
|
98
|
-
setUserList([]);
|
|
99
|
-
}
|
|
100
|
-
}).catch(function (error) {
|
|
101
|
-
console.log(error);
|
|
102
|
-
});
|
|
103
|
-
};
|
|
104
|
-
var queryDeptListByUserIdList = function queryDeptListByUserIdList(id) {
|
|
105
|
-
request(apis.setting.queryDeptListByUserId, {
|
|
106
|
-
method: 'post',
|
|
107
|
-
data: {
|
|
108
|
-
id: id
|
|
109
|
-
}
|
|
110
|
-
}).then(function (res) {
|
|
111
|
-
if (res && (res === null || res === void 0 ? void 0 : res.data) && res.code === '101000') {
|
|
112
|
-
setDepartmentList(res === null || res === void 0 ? void 0 : res.data);
|
|
113
|
-
} else {
|
|
114
|
-
setDepartmentList([]);
|
|
115
|
-
}
|
|
116
|
-
}).catch(function (error) {
|
|
117
|
-
console.log(error);
|
|
118
|
-
});
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
119
64
|
};
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
65
|
+
var inviteMember = function inviteMember() {
|
|
66
|
+
var message = validatorPhone();
|
|
67
|
+
if (message) {
|
|
68
|
+
notification.error({
|
|
69
|
+
message: message
|
|
70
|
+
});
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
var params = {
|
|
74
|
+
mobile: inviteVal,
|
|
75
|
+
is_new: true,
|
|
76
|
+
groupIds: targetGroup.map(function (item) {
|
|
128
77
|
return item.id;
|
|
129
|
-
})
|
|
130
|
-
}
|
|
131
|
-
|
|
78
|
+
}).join(',')
|
|
79
|
+
};
|
|
80
|
+
inviteEvent(params);
|
|
81
|
+
};
|
|
82
|
+
var inviteEvent = function inviteEvent(params) {
|
|
83
|
+
setInviteBtnLoading(true);
|
|
84
|
+
request(apis.setting.inviteUserByPhone, {
|
|
132
85
|
method: 'post',
|
|
133
|
-
|
|
86
|
+
params: params
|
|
134
87
|
}).then(function (res) {
|
|
135
|
-
if (res && res.
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
88
|
+
if (res && res.flag === 101) {
|
|
89
|
+
if (res.popup) {
|
|
90
|
+
var userConfig = {
|
|
91
|
+
id: res.userId,
|
|
92
|
+
authConfig: {
|
|
93
|
+
defaultAuth: {
|
|
94
|
+
dataAuth: [],
|
|
95
|
+
funAuth: []
|
|
96
|
+
},
|
|
97
|
+
groupIds: targetGroup.map(function (item) {
|
|
98
|
+
return item.id;
|
|
99
|
+
})
|
|
100
|
+
},
|
|
101
|
+
email: res.email,
|
|
102
|
+
username: '',
|
|
103
|
+
inv_status: 0,
|
|
104
|
+
is_admin: false
|
|
105
|
+
};
|
|
106
|
+
showPwdPanel({
|
|
107
|
+
account: res.email || '',
|
|
108
|
+
pwd: res.password || '',
|
|
109
|
+
userConfig: userConfig
|
|
110
|
+
});
|
|
111
|
+
createMembersCallback && createMembersCallback(res, userConfig);
|
|
112
|
+
} else {
|
|
113
|
+
createMembersCallback && createMembersCallback(res, false);
|
|
114
|
+
}
|
|
115
|
+
setInviteVal('');
|
|
116
|
+
setTargetGroup([]);
|
|
144
117
|
} else {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
118
|
+
switch (res && res.flag) {
|
|
119
|
+
case -101:
|
|
120
|
+
notification.error({
|
|
121
|
+
message: '成员创建失败,无权限'
|
|
122
|
+
});
|
|
123
|
+
break;
|
|
124
|
+
case -102:
|
|
125
|
+
notification.error({
|
|
126
|
+
message: '今日创建次数已达上限(每日100条)'
|
|
127
|
+
});
|
|
128
|
+
break;
|
|
129
|
+
case -103:
|
|
130
|
+
notification.error({
|
|
131
|
+
message: '已在本公司中,无需创建'
|
|
132
|
+
});
|
|
133
|
+
// this.$emit('updateMember')
|
|
134
|
+
break;
|
|
135
|
+
case -105:
|
|
136
|
+
notification.error({
|
|
137
|
+
message: '此手机号接收短信数量已达上限(每日5条)'
|
|
138
|
+
});
|
|
139
|
+
break;
|
|
140
|
+
case -104:
|
|
141
|
+
notification.error({
|
|
142
|
+
message: '已创建,不能重复创建'
|
|
143
|
+
});
|
|
144
|
+
// this.$emit('updateMember')
|
|
145
|
+
break;
|
|
146
|
+
default:
|
|
147
|
+
notification.error({
|
|
148
|
+
message: '成员创建异常,请重试'
|
|
149
|
+
});
|
|
150
|
+
throw new Error('创建接口返回错误');
|
|
151
|
+
}
|
|
149
152
|
}
|
|
150
153
|
}).catch(function (error) {
|
|
151
154
|
console.log(error);
|
|
155
|
+
}).finally(function () {
|
|
156
|
+
return setInviteBtnLoading(false);
|
|
152
157
|
});
|
|
153
158
|
};
|
|
154
159
|
return /*#__PURE__*/React.createElement("div", {
|
|
155
160
|
className: "invite"
|
|
156
161
|
}, /*#__PURE__*/React.createElement("div", {
|
|
157
162
|
className: "invite-control"
|
|
158
|
-
}, /*#__PURE__*/React.createElement(
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}));
|
|
163
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
164
|
+
value: inviteVal,
|
|
165
|
+
style: {
|
|
166
|
+
width: 250
|
|
163
167
|
},
|
|
164
|
-
placeholder: '请输入账号'
|
|
165
|
-
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", null, "\u59D3\u540D"), /*#__PURE__*/React.createElement(Input, {
|
|
166
168
|
onChange: function onChange(e) {
|
|
167
|
-
|
|
168
|
-
username: e.target.value
|
|
169
|
-
}));
|
|
169
|
+
setInviteVal(e.target.value);
|
|
170
170
|
},
|
|
171
|
-
placeholder: '
|
|
172
|
-
})
|
|
171
|
+
placeholder: ENVIRONMENT === 'saas' ? '输入手机号邀请成员' : '输入账号进行创建'
|
|
172
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
173
|
+
style: {
|
|
174
|
+
display: 'inline-block',
|
|
175
|
+
width: 200,
|
|
176
|
+
marginRight: 10
|
|
177
|
+
}
|
|
178
|
+
}, /*#__PURE__*/React.createElement(Select, {
|
|
179
|
+
placeholder: "\u9009\u62E9\u52A0\u5165\u7528\u6237\u7EC4",
|
|
173
180
|
style: {
|
|
174
|
-
width:
|
|
181
|
+
width: 200
|
|
175
182
|
},
|
|
176
|
-
options:
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
183
|
+
options: dealAllGroupInfos,
|
|
184
|
+
value: targetGroup,
|
|
185
|
+
showArrow: true,
|
|
186
|
+
showSearch: true,
|
|
187
|
+
mode: "multiple",
|
|
188
|
+
onChange: function onChange(v, option) {
|
|
189
|
+
setTargetGroup(option);
|
|
181
190
|
},
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
191
|
+
maxTagCount: 1,
|
|
192
|
+
dropdownRender: function dropdownRender(menu) {
|
|
193
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
194
|
+
id: "ant-select"
|
|
195
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
196
|
+
className: "select-group"
|
|
197
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
198
|
+
onClick: function onClick() {
|
|
199
|
+
setTargetGroup(dealAllGroupInfos);
|
|
200
|
+
},
|
|
201
|
+
className: "all-btn"
|
|
202
|
+
}, "\u5168\u9009"), /*#__PURE__*/React.createElement("span", {
|
|
203
|
+
onClick: function onClick() {
|
|
204
|
+
setTargetGroup([]);
|
|
205
|
+
},
|
|
206
|
+
className: "delete-btn"
|
|
207
|
+
}, "\u6E05\u7A7A")), menu);
|
|
187
208
|
}
|
|
188
|
-
}))
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
onClick: function onClick() {
|
|
192
|
-
setCreatedAppPanel(true);
|
|
193
|
-
form.resetFields();
|
|
194
|
-
},
|
|
209
|
+
})), /*#__PURE__*/React.createElement(Button, {
|
|
210
|
+
onClick: inviteMember,
|
|
211
|
+
loading: inviteBtnLoading,
|
|
195
212
|
type: "primary",
|
|
196
213
|
size: "middle"
|
|
197
|
-
}, "\
|
|
198
|
-
title: (userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) ? '编辑角色' : '新增角色',
|
|
199
|
-
open: createdAppPanel,
|
|
200
|
-
width: 520,
|
|
201
|
-
closable: true,
|
|
202
|
-
onOk: function onOk() {
|
|
203
|
-
form.submit();
|
|
204
|
-
},
|
|
205
|
-
onCancel: function onCancel() {
|
|
206
|
-
queryPanel(_objectSpread({}, queryParams));
|
|
207
|
-
setCreatedAppPanel(false);
|
|
208
|
-
},
|
|
209
|
-
confirmLoading: createAppLoading
|
|
210
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
211
|
-
className: "user-dialog-content"
|
|
212
|
-
}, /*#__PURE__*/React.createElement(Form, {
|
|
213
|
-
form: form,
|
|
214
|
-
onFinish: onFinish,
|
|
215
|
-
colon: false,
|
|
216
|
-
scrollToFirstError: true
|
|
217
|
-
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
218
|
-
name: 'email',
|
|
219
|
-
label: "\u8D26\u53F7",
|
|
220
|
-
rules: [{
|
|
221
|
-
required: true,
|
|
222
|
-
message: '请输入账号'
|
|
223
|
-
}]
|
|
224
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
225
|
-
maxLength: 50,
|
|
226
|
-
placeholder: '请输入账号'
|
|
227
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
228
|
-
name: 'username',
|
|
229
|
-
label: "\u59D3\u540D",
|
|
230
|
-
rules: [{
|
|
231
|
-
required: true,
|
|
232
|
-
message: '请输入姓名'
|
|
233
|
-
}]
|
|
234
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
235
|
-
maxLength: 50,
|
|
236
|
-
placeholder: '请输入姓名'
|
|
237
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
238
|
-
name: 'roleIds',
|
|
239
|
-
label: "\u89D2\u8272",
|
|
240
|
-
rules: [{
|
|
241
|
-
required: true,
|
|
242
|
-
message: '请选择角色'
|
|
243
|
-
}]
|
|
244
|
-
}, /*#__PURE__*/React.createElement(BizSelect, {
|
|
245
|
-
className: "label-group",
|
|
246
|
-
options: userList,
|
|
247
|
-
multiple: true,
|
|
248
|
-
placeholder: '请选择角色',
|
|
249
|
-
labelField: "roleName",
|
|
250
|
-
keyField: "id"
|
|
251
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
252
|
-
name: 'deptIds',
|
|
253
|
-
label: "\u90E8\u95E8",
|
|
254
|
-
rules: [{
|
|
255
|
-
required: true,
|
|
256
|
-
message: '请选择部门'
|
|
257
|
-
}]
|
|
258
|
-
}, /*#__PURE__*/React.createElement(TreeSelect, {
|
|
259
|
-
treeDefaultExpandAll: true,
|
|
260
|
-
multiple: true,
|
|
261
|
-
fieldNames: {
|
|
262
|
-
label: 'name',
|
|
263
|
-
value: 'id'
|
|
264
|
-
},
|
|
265
|
-
placeholder: "\u8BF7\u9009\u62E9\u4E0A\u7EA7\u90E8\u95E8",
|
|
266
|
-
treeData: departmentList
|
|
267
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
268
|
-
name: 'accountStatus',
|
|
269
|
-
label: "\u72B6\u6001",
|
|
270
|
-
rules: [{
|
|
271
|
-
required: true,
|
|
272
|
-
message: '请选择状态'
|
|
273
|
-
}]
|
|
274
|
-
}, /*#__PURE__*/React.createElement(Radio.Group, {
|
|
275
|
-
buttonStyle: "outline"
|
|
276
|
-
}, /*#__PURE__*/React.createElement(Radio, {
|
|
277
|
-
value: 1
|
|
278
|
-
}, "\u6B63\u5E38"), /*#__PURE__*/React.createElement(Radio, {
|
|
279
|
-
value: 2
|
|
280
|
-
}, "\u505C\u7528"))), !(userEditAuthData === null || userEditAuthData === void 0 ? void 0 : userEditAuthData.id) && /*#__PURE__*/React.createElement(Form.Item, {
|
|
281
|
-
name: 'password',
|
|
282
|
-
label: "\u5BC6\u7801",
|
|
283
|
-
rules: [{
|
|
284
|
-
required: true,
|
|
285
|
-
message: '请输入密码'
|
|
286
|
-
}]
|
|
287
|
-
}, /*#__PURE__*/React.createElement(Input.Password, {
|
|
288
|
-
maxLength: 50,
|
|
289
|
-
placeholder: '请输入密码'
|
|
290
|
-
}))))));
|
|
214
|
+
}, "\u521B\u5EFA")));
|
|
291
215
|
};
|
|
292
216
|
export default UserGroup;
|
|
@@ -119,7 +119,7 @@ var GroupItem = function GroupItem(props) {
|
|
|
119
119
|
className: "delete-btn"
|
|
120
120
|
}, "\u5220\u9664")), /*#__PURE__*/React.createElement(BizDialog, {
|
|
121
121
|
title: "\u786E\u8BA4\u5220\u9664",
|
|
122
|
-
|
|
122
|
+
visible: deleteDialog,
|
|
123
123
|
closable: true,
|
|
124
124
|
onOk: function onOk() {
|
|
125
125
|
deleteConfirm();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
@import './style/index.less';
|
|
2
|
-
.search-line {
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 60px;
|
|
5
|
-
padding-left: 5px;
|
|
6
|
-
}
|
|
1
|
+
@import './style/index.less';
|
|
2
|
+
.search-line {
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 60px;
|
|
5
|
+
padding-left: 5px;
|
|
6
|
+
}
|
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
.auth-config-detail {
|
|
2
|
-
width: 270px;
|
|
3
|
-
overflow: auto;
|
|
4
|
-
color: #354052;
|
|
5
|
-
.auth-config-name {
|
|
6
|
-
margin: 5px 0;
|
|
7
|
-
}
|
|
8
|
-
ul.item-detail-title {
|
|
9
|
-
margin-bottom: 10px;
|
|
10
|
-
li {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: flex-start;
|
|
13
|
-
justify-content: flex-start;
|
|
14
|
-
line-height: 20px;
|
|
15
|
-
span:nth-child(1) {
|
|
16
|
-
flex-shrink: 0;
|
|
17
|
-
}
|
|
18
|
-
&:before {
|
|
19
|
-
padding-right: 5px;
|
|
20
|
-
content: '◆';
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
ul.item-detail-list {
|
|
26
|
-
padding: 10px 0 0 25px;
|
|
27
|
-
i {
|
|
28
|
-
font-style: normal;
|
|
29
|
-
}
|
|
30
|
-
li {
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: flex-start;
|
|
33
|
-
justify-content: flex-start;
|
|
34
|
-
line-height: 20px;
|
|
35
|
-
span:nth-child(1) {
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
}
|
|
38
|
-
&:before {
|
|
39
|
-
padding-right: 5px;
|
|
40
|
-
content: '•';
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
1
|
+
.auth-config-detail {
|
|
2
|
+
width: 270px;
|
|
3
|
+
overflow: auto;
|
|
4
|
+
color: #354052;
|
|
5
|
+
.auth-config-name {
|
|
6
|
+
margin: 5px 0;
|
|
7
|
+
}
|
|
8
|
+
ul.item-detail-title {
|
|
9
|
+
margin-bottom: 10px;
|
|
10
|
+
li {
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
line-height: 20px;
|
|
15
|
+
span:nth-child(1) {
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
}
|
|
18
|
+
&:before {
|
|
19
|
+
padding-right: 5px;
|
|
20
|
+
content: '◆';
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
ul.item-detail-list {
|
|
26
|
+
padding: 10px 0 0 25px;
|
|
27
|
+
i {
|
|
28
|
+
font-style: normal;
|
|
29
|
+
}
|
|
30
|
+
li {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: flex-start;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
line-height: 20px;
|
|
35
|
+
span:nth-child(1) {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
}
|
|
38
|
+
&:before {
|
|
39
|
+
padding-right: 5px;
|
|
40
|
+
content: '•';
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|