Commit e5a24bcf authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除无用代码

parent 0776d969
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32 * @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 16:54:24 * @LastEditTime: 2021-05-26 10:06:37
* @Description: 审核Form抽屉 * @Description: 审核Form抽屉
*/ */
import React from 'react'; import React from 'react';
...@@ -75,7 +75,6 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => { ...@@ -75,7 +75,6 @@ const ComingClassifyDrawer: React.FC<IProps> = (props: IProps) => {
width={620} width={620}
onClose={handleClose} onClose={handleClose}
visible={visible} visible={visible}
getContainer="#root"
footer={ footer={
<div <div
style={{ style={{
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 14:34:56 * @Date: 2021-05-25 14:34:56
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 14:34:57 * @LastEditTime: 2021-05-25 18:05:07
* @Description: 待入库分类 * @Description: 待入库分类
*/ */
import React, { useState, useRef } from 'react'; import React, { useState, useRef } from 'react';
...@@ -28,8 +28,6 @@ const formActions = createFormActions(); ...@@ -28,8 +28,6 @@ const formActions = createFormActions();
const MemberPrComingClassify: React.FC<{}> = props => { const MemberPrComingClassify: React.FC<{}> = props => {
const ref = useRef<any>({}); const ref = useRef<any>({});
const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([]);
const [selectedList, setSelectList] = useState<any>([]);
const handleJumpAudit = record => { const handleJumpAudit = record => {
history.push(`/memberCenter/memberAbility/manage/memberPrComingClassify/verify?id=${record.memberId}&validateId=${record.validateId}`); history.push(`/memberCenter/memberAbility/manage/memberPrComingClassify/verify?id=${record.memberId}&validateId=${record.validateId}`);
...@@ -53,14 +51,6 @@ const MemberPrComingClassify: React.FC<{}> = props => { ...@@ -53,14 +51,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
const [columns, columnsHandle] = useSpliceArray<ColumnType<any>>(defaultColumns); 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 fetchListData = async (params: any) => {
const { startDate = null, endDate = null } = params; const { startDate = null, endDate = null } = params;
const payload = { ...params }; const payload = { ...params };
...@@ -80,35 +70,6 @@ const MemberPrComingClassify: React.FC<{}> = props => { ...@@ -80,35 +70,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
return []; 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 fetchSearchItems = async () => {
const res = await PublicApi.getMemberAbilityValidateCommitPageitems(); const res = await PublicApi.getMemberAbilityValidateCommitPageitems();
...@@ -154,7 +115,6 @@ const MemberPrComingClassify: React.FC<{}> = props => { ...@@ -154,7 +115,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchListData(params)} fetchTableData={(params: any) => fetchListData(params)}
rowSelection={rowSelection}
controlRender={ controlRender={
<NiceForm <NiceForm
actions={formActions} actions={formActions}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-25 14:36:14 * @Date: 2021-05-25 14:36:14
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 14:36:15 * @LastEditTime: 2021-05-25 19:44:28
* @Description: 入库分类 * @Description: 入库分类
*/ */
import React, { useState, useEffect } from 'react'; import React, { useState, useEffect } from 'react';
......
...@@ -61,7 +61,6 @@ const VerifyComingInvestigateDrawer: React.FC<IProps> = (props: IProps) => { ...@@ -61,7 +61,6 @@ const VerifyComingInvestigateDrawer: React.FC<IProps> = (props: IProps) => {
width={600} width={600}
onClose={handleClose} onClose={handleClose}
visible={visible} visible={visible}
getContainer="#root"
footer={ footer={
<div <div
style={{ style={{
......
...@@ -28,8 +28,6 @@ const formActions = createFormActions(); ...@@ -28,8 +28,6 @@ const formActions = createFormActions();
const MemberPrComingInvestigate: React.FC<{}> = props => { const MemberPrComingInvestigate: React.FC<{}> = props => {
const ref = useRef<any>({}); const ref = useRef<any>({});
const [selectedRowKeys, setSelectedRowKeys] = useState<Array<string>>([]);
const [selectedList, setSelectList] = useState<any>([]);
const handleJumpAudit = record => { const handleJumpAudit = record => {
history.push(`/memberCenter/memberAbility/manage/memberPrComingInvestigate/verify?id=${record.memberId}&validateId=${record.validateId}`); history.push(`/memberCenter/memberAbility/manage/memberPrComingInvestigate/verify?id=${record.memberId}&validateId=${record.validateId}`);
...@@ -53,14 +51,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => { ...@@ -53,14 +51,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
const [columns, columnsHandle] = useSpliceArray<ColumnType<any>>(defaultColumns); 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 fetchListData = async (params: any) => {
const { startDate = null, endDate = null } = params; const { startDate = null, endDate = null } = params;
const payload = { ...params }; const payload = { ...params };
...@@ -80,35 +70,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => { ...@@ -80,35 +70,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
return []; 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 fetchSearchItems = async () => {
const res = await PublicApi.getMemberAbilityValidateCommitPageitems(); const res = await PublicApi.getMemberAbilityValidateCommitPageitems();
...@@ -154,7 +115,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => { ...@@ -154,7 +115,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
columns={columns} columns={columns}
currentRef={ref} currentRef={ref}
fetchTableData={(params: any) => fetchListData(params)} fetchTableData={(params: any) => fetchListData(params)}
rowSelection={rowSelection}
controlRender={ controlRender={
<NiceForm <NiceForm
actions={formActions} actions={formActions}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2021-05-24 17:47:32 * @Date: 2021-05-24 17:47:32
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-05-25 11:11:31 * @LastEditTime: 2021-05-26 10:02:41
* @Description: 审核Form抽屉 * @Description: 审核Form抽屉
*/ */
import React from 'react'; import React from 'react';
...@@ -61,7 +61,6 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => { ...@@ -61,7 +61,6 @@ const VerifyComingDataDrawer: React.FC<IProps> = (props: IProps) => {
width={600} width={600}
onClose={handleClose} onClose={handleClose}
visible={visible} visible={visible}
getContainer="#root"
footer={ footer={
<div <div
style={{ style={{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment