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
黄庭坚
jinfa-platform
Commits
f338fe30
Commit
f338fe30
authored
Mar 30, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat-memberLevel' into 'v2-220418'
chore: 修改请求参数;暂时注释掉删除的接口请求 See merge request linkseeks-design/pro-platform!87
parents
bac82376
19579c44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
19 deletions
+25
-19
index.tsx
...mberVisitForm/components/VisitorMemberFieldItem/index.tsx
+1
-0
index.tsx
src/pages/member/memberVisitManage/index.tsx
+24
-19
No files found.
src/pages/member/memberVisitManage/components/MemberVisitForm/components/VisitorMemberFieldItem/index.tsx
View file @
f338fe30
...
...
@@ -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
;
...
...
src/pages/member/memberVisitManage/index.tsx
View file @
f338fe30
...
...
@@ -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
>
[]
=
[
...
...
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