Commit b5857171 authored by XieZhiXiong's avatar XieZhiXiong

chore: 放开删除操作

parent adfc6efb
......@@ -10,7 +10,7 @@ import { createFormActions } from '@formily/antd';
import moment from 'moment';
import {
GetMemberVisitListResponseDetail,
// getMemberVisitDelete,
postMemberVisitDelete,
getMemberVisitList,
getMemberVisitVisitTypeItems,
} from '@/services/MemberV2Api';
......@@ -44,24 +44,24 @@ const MemberVisitManageIndex: React.FC<{}> = props => {
};
const handleDeleteMemberVisitRecord = (record: GetMemberVisitListRequestResponse) => {
// if (record.id === deleteLoadingKey) {
// return;
// }
// const msg = message.loading({
// content: '正在删除,请稍候...',
// duration: 0,
// });
// setDeleteLoadingKey(record.id);
// getMemberVisitDelete({
// id: `${record.id}`,
// }).then((res) => {
// if (res.code === 1000) {
// polymericRef.current?.reload();
// }
// }).finally(() => {
// msg();
// setDeleteLoadingKey(0);
// });
if (record.id === deleteLoadingKey) {
return;
}
const msg = message.loading({
content: '正在删除,请稍候...',
duration: 0,
});
setDeleteLoadingKey(record.id);
postMemberVisitDelete({
id: record.id,
}).then((res) => {
if (res.code === 1000) {
polymericRef.current?.reload();
}
}).finally(() => {
msg();
setDeleteLoadingKey(0);
});
};
const columns: ColumnType<GetMemberVisitListRequestResponse>[] = [
......
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