Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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
linweijiong
jinfa-admin
Commits
e52038b4
Commit
e52038b4
authored
Sep 22, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix(商家营销活动审核): 修改批量审核接口
parent
7440e1c0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
7 deletions
+21
-7
global.d.ts
src/global/config/global.d.ts
+2
-2
index.tsx
...ge/merchantMarketing/waitAuditMerchantMarketing/index.tsx
+19
-5
No files found.
src/global/config/global.d.ts
View file @
e52038b4
...
...
@@ -7,7 +7,7 @@ export interface ShopInfo {
describe
:
string
;
state
:
number
;
url
:
string
;
isDefault
:
number
;
isDefault
?:
any
;
}
export
interface
OrderMode
{
...
...
@@ -28,7 +28,7 @@ export interface SiteInfo {
name
:
string
;
logo
:
string
;
siteUrl
:
string
;
symbol
:
string
;
symbol
?:
any
;
}
export
interface
Site
{
...
...
src/pages/marketingManage/merchantMarketing/waitAuditMerchantMarketing/index.tsx
View file @
e52038b4
...
...
@@ -15,6 +15,7 @@ const { onFormMount$ } = FormEffectHooks;
const
WaitAuditMerchantMarketing
=
()
=>
{
const
ref
=
useRef
<
any
>
({});
const
[
rowkeys
,
setRowKeys
]
=
useState
<
Array
<
number
>>
([]);
const
[
submitLoading
,
setSubmitLoading
]
=
useState
<
boolean
>
(
false
);
const
useStateEffects
=
()
=>
{
const
linkage
=
useLinkageUtils
();
onFormMount$
().
subscribe
(()
=>
{
...
...
@@ -28,11 +29,26 @@ const WaitAuditMerchantMarketing = () => {
})
}
const
fetchSubmitBatch
=
async
()
=>
{
const
res
=
await
PublicApi
.
postMarketingPlatformMerchantActivityExamineBatch
({
ids
:
rowkeys
});
setSubmitLoading
(
true
)
if
(
res
.
code
!==
1000
)
{
setSubmitLoading
(
false
)
return
}
setSubmitLoading
(
false
)
ref
.
current
.
reload
();
setRowKeys
([])
}
/* 操作按钮 */
const
controllerBtns
=
(
<
Row
>
<
Col
span=
{
6
}
>
<
Button
disabled=
{
rowkeys
.
length
===
0
}
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
>
批量提交审核
</
Button
>
...
...
@@ -98,6 +114,7 @@ const WaitAuditMerchantMarketing = () => {
effects=
"id"
fetch=
{
PublicApi
.
getMarketingPlatformMerchantActivityPageTobeExam
}
fetchRowkeys=
{
(
e
)
=>
setRowKeys
(
e
)
}
controllerBtns=
{
controllerBtns
}
schema=
{
{
type
:
'object'
,
properties
:
{
...
...
@@ -109,11 +126,8 @@ const WaitAuditMerchantMarketing = () => {
},
properties
:
{
ctl
:
{
type
:
'object'
,
"x-component"
:
"Children"
,
"x-component-props"
:
{
children
:
controllerBtns
}
type
:
"object"
,
"x-component"
:
"controllerBtns"
,
},
id
:
{
type
:
'string'
,
...
...
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