Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-platform
Commits
fa199e9c
Commit
fa199e9c
authored
Aug 10, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改注册信息可编辑有值的元素
parent
a2c906b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
createRole.ts
src/pages/member/memberQuery/schema/createRole.ts
+8
-2
index.tsx
src/pages/member/memberQuery/updateMember/index.tsx
+2
-2
No files found.
src/pages/member/memberQuery/schema/createRole.ts
View file @
fa199e9c
...
@@ -19,7 +19,13 @@ export type GroupItem = {
...
@@ -19,7 +19,13 @@ export type GroupItem = {
elements
:
ElementType
[],
elements
:
ElementType
[],
};
};
export
const
schema
=
(
groups
:
GroupItem
[]):
ISchema
=>
{
/**
*
* @param groups
* @param editable 有值的元素是否可编辑
* @returns
*/
export
const
schema
=
(
groups
:
GroupItem
[],
editable
:
boolean
=
false
):
ISchema
=>
{
const
tabSchema
:
ISchema
=
{
const
tabSchema
:
ISchema
=
{
properties
:
{},
properties
:
{},
};
};
...
@@ -41,7 +47,7 @@ export const schema = (groups: GroupItem[]): ISchema => {
...
@@ -41,7 +47,7 @@ export const schema = (groups: GroupItem[]): ISchema => {
wrapperCol
:
8
,
wrapperCol
:
8
,
labelAlign
:
'left'
,
labelAlign
:
'left'
,
},
},
properties
:
createMemberSchema
(
item
.
elements
,
fals
e
),
properties
:
createMemberSchema
(
item
.
elements
,
editabl
e
),
},
},
},
},
};
};
...
...
src/pages/member/memberQuery/updateMember/index.tsx
View file @
fa199e9c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-04 15:37:19
* @Date: 2021-06-04 15:37:19
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-10 16:03:09
* @LastEditTime: 2021-0
8-10 17:57:27
* @Description: 修改会员注册信息
* @Description: 修改会员注册信息
*/
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
@@ -115,7 +115,7 @@ const MemberUpdate: React.FC<any> = props => {
...
@@ -115,7 +115,7 @@ const MemberUpdate: React.FC<any> = props => {
}
}
});
});
}
}
}
}
schema=
{
schema
(
memberItems
)
}
schema=
{
schema
(
memberItems
,
true
)
}
/>
/>
</
Card
>
</
Card
>
</
PageHeaderWrapper
>
</
PageHeaderWrapper
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment