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
38f0d7ef
Commit
38f0d7ef
authored
Jul 07, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 采购竞价 确认竞价结果弹框增加loading
parent
56c23826
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
index.tsx
...ty/purchaseBid/components/confirmBidResultModal/index.tsx
+8
-1
No files found.
src/pages/transaction/purchaseAbility/purchaseBid/components/confirmBidResultModal/index.tsx
View file @
38f0d7ef
...
...
@@ -36,7 +36,12 @@ const ConfirmBidResultModal: React.FC<ConfirmBidResultModalProps> = (props: any)
// 控制tabkey
const
[
activeKey
,
setActiveKey
]
=
useState
<
string
>
(
'1'
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
<
boolean
>
(
false
);
const
handleOk
=
()
=>
{
if
(
confirmLoading
)
{
return
}
form
.
validateFields
().
then
(
res
=>
{
const
_params
=
{
id
:
record
.
id
,
...
...
@@ -47,12 +52,13 @@ const ConfirmBidResultModal: React.FC<ConfirmBidResultModalProps> = (props: any)
awardResults
:
res
.
awardResults
,
content
:
res
.
content
}
setConfirmLoading
(
true
)
fetch
&&
fetch
(
_params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
1000
)
{
onOk
&&
onOk
();
}
})
})
.
finally
(()
=>
setConfirmLoading
(
false
))
})
}
...
...
@@ -94,6 +100,7 @@ const ConfirmBidResultModal: React.FC<ConfirmBidResultModalProps> = (props: any)
wrapClassName={styles.wrap}
onOk={() => { handleOk() }}
afterClose={() => { form.resetFields() }}
confirmLoading={confirmLoading}
>
<Form
form={form}
...
...
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