cfel-base-components 2.5.42 → 2.5.43
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
|
@@ -117,8 +117,8 @@ export default function Index({
|
|
|
117
117
|
rules={[{ required: true, message: '请选择读写规则' }]}
|
|
118
118
|
>
|
|
119
119
|
<Radio.Group>
|
|
120
|
-
<Radio value='
|
|
121
|
-
<Radio value='
|
|
120
|
+
<Radio value='true'>只读</Radio>
|
|
121
|
+
<Radio value='false'>读写</Radio>
|
|
122
122
|
</Radio.Group>
|
|
123
123
|
</Form.Item>
|
|
124
124
|
<Form.Item
|
|
@@ -46,9 +46,7 @@ export default function Role({ historyAction }: RoleProps) {
|
|
|
46
46
|
const lookMoreJson = (data: any) => {
|
|
47
47
|
const translatedData: Record<string, string> = {}
|
|
48
48
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
translatedData['读写规则'] = data.readOnly === 'true' ? '读写' : '只读'
|
|
49
|
+
translatedData['读写规则'] = data.readOnly === 'false' ? '读写' : '只读'
|
|
52
50
|
translatedData['云厂商/租户规则'] = data.hypervisorManager === 'true' ? '云厂商' : '租户'
|
|
53
51
|
|
|
54
52
|
setOpen(true)
|
|
@@ -279,9 +277,9 @@ export default function Role({ historyAction }: RoleProps) {
|
|
|
279
277
|
return (
|
|
280
278
|
<PageContainer>
|
|
281
279
|
<JsonViewDialog open={open} jsonData={openJson} closeModel={() => setOpen(false)} />
|
|
282
|
-
|
|
283
|
-
<ProFormText name=
|
|
284
|
-
</QueryFilter>
|
|
280
|
+
<QueryFilter onReset={handleOnReset} onFinish={handleOnFinish}>
|
|
281
|
+
<ProFormText name="roleName" label="角色名称" />
|
|
282
|
+
</QueryFilter>
|
|
285
283
|
|
|
286
284
|
<ProTable
|
|
287
285
|
columnsState={{
|
|
@@ -76,7 +76,7 @@ export default function RoleInfo({ isShowTab, getAuthTree, getRoleAuthTree, empo
|
|
|
76
76
|
|
|
77
77
|
return (
|
|
78
78
|
<>
|
|
79
|
-
<Descriptions.Item label="读写规则">{roleInfo?.metaData?.readOnly === '
|
|
79
|
+
<Descriptions.Item label="读写规则">{roleInfo?.metaData?.readOnly === 'false' ? '读写' : '只读'}</Descriptions.Item>
|
|
80
80
|
<Descriptions.Item label="云厂商/租户规则">{roleInfo?.metaData?.hypervisorManager === 'true' ? '云厂商' : '租户'}</Descriptions.Item>
|
|
81
81
|
</>
|
|
82
82
|
)
|