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
7a889ebb
Commit
7a889ebb
authored
Jul 07, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改 columns
parent
82be5b43
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
54 deletions
+7
-54
verifyChangeColumn.tsx
src/pages/member/common/columns/verifyChangeColumn.tsx
+0
-2
index.tsx
src/pages/member/memberPrVerifyChange1/index.tsx
+3
-18
index.tsx
src/pages/member/memberPrVerifyChange2/index.tsx
+2
-17
index.tsx
src/pages/member/memberPrVerifyChangeConfirm/index.tsx
+2
-17
No files found.
src/pages/member/common/columns/verifyChangeColumn.tsx
View file @
7a889ebb
...
...
@@ -39,13 +39,11 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
},
{
title
:
'会员类型'
,
filters
:
[],
dataIndex
:
'memberTypeName'
,
align
:
'center'
,
},
{
title
:
'会员角色'
,
filters
:
[],
dataIndex
:
'roleName'
,
align
:
'center'
,
},
...
...
src/pages/member/memberPrVerifyChange1/index.tsx
View file @
7a889ebb
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-26 10:26:20
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
6-04 14:21:24
* @LastEditTime: 2021-0
7-07 17:28:10
* @Description: 待审核会员变更(一级)
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -20,7 +20,7 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import
{
PublicApi
}
from
'@/services/api'
;
import
useSpliceArray
from
'@/hooks/useSpliceArray'
;
import
verifyComingSchema
from
'../common/schames/verifyComingSchema'
;
import
verifyC
omingColumn
from
'../common/columns/verifyComing
Column'
;
import
verifyC
hangeColumn
from
'../common/columns/verifyChange
Column'
;
const
{
confirm
}
=
Modal
;
...
...
@@ -34,7 +34,7 @@ const MemberPrVerifyChange1: React.FC<{}> = props => {
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChange1/verify?validateId=
${
record
.
validateId
}
`
);
};
const
defaultColumns
=
verifyC
oming
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChange1/detail'
).
concat
([
const
defaultColumns
=
verifyC
hange
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChange1/detail'
).
concat
([
{
title
:
'操作'
,
dataIndex
:
'option'
,
...
...
@@ -119,21 +119,6 @@ const MemberPrVerifyChange1: React.FC<{}> = props => {
roles
=
[],
}
=
data
;
const
memberTypeIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'memberTypeName'
);
const
roleIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'roleName'
);
if
(
memberTypeIndex
)
{
columnsHandle
.
replace
(
memberTypeIndex
,
{
...
columns
[
memberTypeIndex
],
filters
:
memberTypes
.
map
(
item
=>
({
text
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
});
}
if
(
roleIndex
)
{
columnsHandle
.
replace
(
roleIndex
,
{
...
columns
[
roleIndex
],
filters
:
roles
.
map
(
item
=>
({
text
:
item
.
roleName
,
value
:
item
.
roleId
})),
});
}
return
{
memberTypeId
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
roleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
...
...
src/pages/member/memberPrVerifyChange2/index.tsx
View file @
7a889ebb
...
...
@@ -20,7 +20,7 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import
{
PublicApi
}
from
'@/services/api'
;
import
useSpliceArray
from
'@/hooks/useSpliceArray'
;
import
verifyComingSchema
from
'../common/schames/verifyComingSchema'
;
import
verifyC
omingColumn
from
'../common/columns/verifyComing
Column'
;
import
verifyC
hangeColumn
from
'../common/columns/verifyChange
Column'
;
const
{
confirm
}
=
Modal
;
...
...
@@ -34,7 +34,7 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChange2/verify?validateId=
${
record
.
validateId
}
`
);
};
const
defaultColumns
=
verifyC
oming
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChange2/detail'
).
concat
([
const
defaultColumns
=
verifyC
hange
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChange2/detail'
).
concat
([
{
title
:
'操作'
,
dataIndex
:
'option'
,
...
...
@@ -119,21 +119,6 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
roles
=
[],
}
=
data
;
const
memberTypeIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'memberTypeName'
);
const
roleIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'roleName'
);
if
(
memberTypeIndex
)
{
columnsHandle
.
replace
(
memberTypeIndex
,
{
...
columns
[
memberTypeIndex
],
filters
:
memberTypes
.
map
(
item
=>
({
text
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
});
}
if
(
roleIndex
)
{
columnsHandle
.
replace
(
roleIndex
,
{
...
columns
[
roleIndex
],
filters
:
roles
.
map
(
item
=>
({
text
:
item
.
roleName
,
value
:
item
.
roleId
})),
});
}
return
{
memberTypeId
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
roleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
...
...
src/pages/member/memberPrVerifyChangeConfirm/index.tsx
View file @
7a889ebb
...
...
@@ -20,7 +20,7 @@ import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import
{
PublicApi
}
from
'@/services/api'
;
import
useSpliceArray
from
'@/hooks/useSpliceArray'
;
import
verifyComingSchema
from
'../common/schames/verifyComingSchema'
;
import
verifyC
omingColumn
from
'../common/columns/verifyComing
Column'
;
import
verifyC
hangeColumn
from
'../common/columns/verifyChange
Column'
;
const
{
confirm
}
=
Modal
;
...
...
@@ -34,7 +34,7 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/verify?validateId=
${
record
.
validateId
}
`
);
};
const
defaultColumns
=
verifyC
oming
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/detail'
).
concat
([
const
defaultColumns
=
verifyC
hange
Column
(
'/memberCenter/memberAbility/manage/memberPrVerifyChangeConfirm/detail'
).
concat
([
{
title
:
'操作'
,
dataIndex
:
'option'
,
...
...
@@ -119,21 +119,6 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
roles
=
[],
}
=
data
;
const
memberTypeIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'memberTypeName'
);
const
roleIndex
=
columns
.
findIndex
((
item
)
=>
item
.
dataIndex
===
'roleName'
);
if
(
memberTypeIndex
)
{
columnsHandle
.
replace
(
memberTypeIndex
,
{
...
columns
[
memberTypeIndex
],
filters
:
memberTypes
.
map
(
item
=>
({
text
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
});
}
if
(
roleIndex
)
{
columnsHandle
.
replace
(
roleIndex
,
{
...
columns
[
roleIndex
],
filters
:
roles
.
map
(
item
=>
({
text
:
item
.
roleName
,
value
:
item
.
roleId
})),
});
}
return
{
memberTypeId
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
roleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
...
...
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