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
shenshaokai
jinfa-platform
Commits
e5a24bcf
Commit
e5a24bcf
authored
May 26, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 删除无用代码
parent
0776d969
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4 additions
and
87 deletions
+4
-87
index.tsx
...rComingClassify/components/ComingClassifyDrawer/index.tsx
+1
-2
index.tsx
src/pages/member/memberPrComingClassify/index.tsx
+1
-41
verify.tsx
src/pages/member/memberPrComingClassify/verify.tsx
+1
-1
index.tsx
...tigate/components/VerifyComingInvestigateDrawer/index.tsx
+0
-1
index.tsx
src/pages/member/memberPrComingInvestigate/index.tsx
+0
-40
index.tsx
...ifyComingData/components/VerifyComingDataDrawer/index.tsx
+1
-2
No files found.
src/pages/member/memberPrComingClassify/components/ComingClassifyDrawer/index.tsx
View file @
e5a24bcf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-2
5 16:54:24
* @LastEditTime: 2021-05-2
6 10:06:37
* @Description: 审核Form抽屉
*/
import
React
from
'react'
;
...
...
@@ -75,7 +75,6 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => {
width=
{
620
}
onClose=
{
handleClose
}
visible=
{
visible
}
getContainer=
"#root"
footer=
{
<
div
style=
{
{
...
...
src/pages/member/memberPrComingClassify/index.tsx
View file @
e5a24bcf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-25 14:34:56
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 1
4:34:5
7
* @LastEditTime: 2021-05-25 1
8:05:0
7
* @Description: 待入库分类
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
...
...
@@ -28,8 +28,6 @@ const formActions = createFormActions();
const
MemberPrComingClassify
:
React
.
FC
<
{}
>
=
props
=>
{
const
ref
=
useRef
<
any
>
({});
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([]);
const
[
selectedList
,
setSelectList
]
=
useState
<
any
>
([]);
const
handleJumpAudit
=
record
=>
{
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrComingClassify/verify?id=
${
record
.
memberId
}
&validateId=
${
record
.
validateId
}
`
);
...
...
@@ -53,14 +51,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
const
[
columns
,
columnsHandle
]
=
useSpliceArray
<
ColumnType
<
any
>>
(
defaultColumns
);
const
rowSelection
=
{
onChange
:
(
keys
:
any
,
rows
:
{}[])
=>
{
setSelectedRowKeys
(
keys
);
setSelectList
(
rows
);
},
selectedRowKeys
:
selectedRowKeys
,
};
const
fetchListData
=
async
(
params
:
any
)
=>
{
const
{
startDate
=
null
,
endDate
=
null
}
=
params
;
const
payload
=
{
...
params
};
...
...
@@ -80,35 +70,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
return
[];
};
const
handleBatch
=
()
=>
{
if
(
!
selectedList
.
length
)
{
message
.
warning
(
'未选择任何会员'
);
return
;
}
confirm
({
title
:
'提示'
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
'确定要审核通过选中的会员吗?'
,
onOk
()
{
const
members
=
selectedList
.
map
(
item
=>
({
memberId
:
item
.
memberId
,
validateId
:
item
.
validateId
}));
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
PublicApi
.
postMemberAbilityValidateCommitBatch
(
members
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
setSelectedRowKeys
([]);
resolve
();
}
reject
();
})
.
catch
(()
=>
{
reject
();
});
});
},
});
};
// 初始化高级筛选选项
const
fetchSearchItems
=
async
()
=>
{
const
res
=
await
PublicApi
.
getMemberAbilityValidateCommitPageitems
();
...
...
@@ -154,7 +115,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
rowSelection=
{
rowSelection
}
controlRender=
{
<
NiceForm
actions=
{
formActions
}
...
...
src/pages/member/memberPrComingClassify/verify.tsx
View file @
e5a24bcf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-25 14:36:14
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 1
4:36:15
* @LastEditTime: 2021-05-25 1
9:44:28
* @Description: 入库分类
*/
import
React
,
{
useState
,
useEffect
}
from
'react'
;
...
...
src/pages/member/memberPrComingInvestigate/components/VerifyComingInvestigateDrawer/index.tsx
View file @
e5a24bcf
...
...
@@ -61,7 +61,6 @@ const VerifyComingInvestigateDrawer: React.FC<IProps> = (props: IProps) => {
width=
{
600
}
onClose=
{
handleClose
}
visible=
{
visible
}
getContainer=
"#root"
footer=
{
<
div
style=
{
{
...
...
src/pages/member/memberPrComingInvestigate/index.tsx
View file @
e5a24bcf
...
...
@@ -28,8 +28,6 @@ const formActions = createFormActions();
const
MemberPrComingInvestigate
:
React
.
FC
<
{}
>
=
props
=>
{
const
ref
=
useRef
<
any
>
({});
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
<
Array
<
string
>>
([]);
const
[
selectedList
,
setSelectList
]
=
useState
<
any
>
([]);
const
handleJumpAudit
=
record
=>
{
history
.
push
(
`/memberCenter/memberAbility/manage/memberPrComingInvestigate/verify?id=
${
record
.
memberId
}
&validateId=
${
record
.
validateId
}
`
);
...
...
@@ -53,14 +51,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
const
[
columns
,
columnsHandle
]
=
useSpliceArray
<
ColumnType
<
any
>>
(
defaultColumns
);
const
rowSelection
=
{
onChange
:
(
keys
:
any
,
rows
:
{}[])
=>
{
setSelectedRowKeys
(
keys
);
setSelectList
(
rows
);
},
selectedRowKeys
:
selectedRowKeys
,
};
const
fetchListData
=
async
(
params
:
any
)
=>
{
const
{
startDate
=
null
,
endDate
=
null
}
=
params
;
const
payload
=
{
...
params
};
...
...
@@ -80,35 +70,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
return
[];
};
const
handleBatch
=
()
=>
{
if
(
!
selectedList
.
length
)
{
message
.
warning
(
'未选择任何会员'
);
return
;
}
confirm
({
title
:
'提示'
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
'确定要审核通过选中的会员吗?'
,
onOk
()
{
const
members
=
selectedList
.
map
(
item
=>
({
memberId
:
item
.
memberId
,
validateId
:
item
.
validateId
}));
return
new
Promise
<
void
>
((
resolve
,
reject
)
=>
{
PublicApi
.
postMemberAbilityValidateCommitBatch
(
members
)
.
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
ref
.
current
.
reload
();
setSelectedRowKeys
([]);
resolve
();
}
reject
();
})
.
catch
(()
=>
{
reject
();
});
});
},
});
};
// 初始化高级筛选选项
const
fetchSearchItems
=
async
()
=>
{
const
res
=
await
PublicApi
.
getMemberAbilityValidateCommitPageitems
();
...
...
@@ -154,7 +115,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
columns=
{
columns
}
currentRef=
{
ref
}
fetchTableData=
{
(
params
:
any
)
=>
fetchListData
(
params
)
}
rowSelection=
{
rowSelection
}
controlRender=
{
<
NiceForm
actions=
{
formActions
}
...
...
src/pages/member/memberPrVerifyComingData/components/VerifyComingDataDrawer/index.tsx
View file @
e5a24bcf
...
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-2
5 11:11:3
1
* @LastEditTime: 2021-05-2
6 10:02:4
1
* @Description: 审核Form抽屉
*/
import
React
from
'react'
;
...
...
@@ -61,7 +61,6 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
width=
{
600
}
onClose=
{
handleClose
}
visible=
{
visible
}
getContainer=
"#root"
footer=
{
<
div
style=
{
{
...
...
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