cfel-base-components 2.5.22 → 2.5.23
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/package.json
CHANGED
|
@@ -9,14 +9,14 @@ interface propsType {
|
|
|
9
9
|
queryByKeywordFunc: Function;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default function
|
|
12
|
+
export default function Index({
|
|
13
13
|
open,
|
|
14
14
|
editOpenStatus,
|
|
15
15
|
roleBoundAccountsFunc,
|
|
16
16
|
queryByKeywordFunc
|
|
17
17
|
}: propsType) {
|
|
18
18
|
const [form] = Form.useForm();
|
|
19
|
-
const [selectOptions,
|
|
19
|
+
const [selectOptions, setSelectOptions] = useState([])
|
|
20
20
|
|
|
21
21
|
useEffect(() => {
|
|
22
22
|
form.resetFields()
|
|
@@ -50,8 +50,7 @@ export default function index({
|
|
|
50
50
|
queryByKeywordFunc({
|
|
51
51
|
keyword
|
|
52
52
|
}).then((res: any) => {
|
|
53
|
-
|
|
54
|
-
}).catch((err) => {
|
|
53
|
+
setSelectOptions(res)
|
|
55
54
|
})
|
|
56
55
|
}, 500)
|
|
57
56
|
|
|
@@ -563,7 +563,7 @@ export default function RoleInfo({
|
|
|
563
563
|
rowSelection={
|
|
564
564
|
isResourceAction && roleCode !== 'admin'
|
|
565
565
|
? {
|
|
566
|
-
checkStrictly:
|
|
566
|
+
checkStrictly: true,
|
|
567
567
|
selectedRowKeys: selectedRowKeys,
|
|
568
568
|
onChange: (selectedRowKeys: any, selectedRows: any) => {
|
|
569
569
|
setselectedRowKeys(selectedRowKeys)
|