Commit f338fe30 authored by Bill's avatar Bill

Merge branch 'feat-memberLevel' into 'v2-220418'

chore: 修改请求参数;暂时注释掉删除的接口请求 See merge request linkseeks-design/pro-platform!87
parents bac82376 19579c44
......@@ -128,6 +128,7 @@ const VisitorMemberFieldItem = (props) => {
...(params as any),
current: `${params.current}`,
pageSize: `${params.pageSize}`,
status: 1, // 只需要状态是 启用的
});
if (res.code === 1000) {
return res.data;
......
......@@ -8,7 +8,12 @@ import { PlusOutlined } from '@ant-design/icons';
import { ColumnType } from 'antd/lib/table/interface';
import { createFormActions } from '@formily/antd';
import moment from 'moment';
import { GetMemberVisitListResponseDetail, getMemberVisitDelete, getMemberVisitList, getMemberVisitVisitTypeItems } from '@/services/MemberV2Api';
import {
GetMemberVisitListResponseDetail,
// getMemberVisitDelete,
getMemberVisitList,
getMemberVisitVisitTypeItems,
} from '@/services/MemberV2Api';
import { useAsyncInitSelect } from '@/formSchema/effects/useAsyncInitSelect';
import { useStateFilterSearchLinkageEffect } from '@/formSchema/effects/useFilterSearch';
import { FORM_FILTER_PATH } from '@/formSchema/const';
......@@ -39,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);
// getMemberVisitDelete({
// 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