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
7ce94f43
Commit
7ce94f43
authored
Sep 22, 2021
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 对接检索项接口
parent
276947a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
index.tsx
...etingAbility/merchantCoupon/merchantCouponQuery/index.tsx
+26
-1
No files found.
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponQuery/index.tsx
View file @
7ce94f43
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Author: XieZhiXiong
* @Date: 2021-06-22 09:49:42
* @Date: 2021-06-22 09:49:42
* @LastEditors: XieZhiXiong
* @LastEditors: XieZhiXiong
* @LastEditTime: 2021-0
7-02 18:10:29
* @LastEditTime: 2021-0
9-22 13:57:50
* @Description: 商家优惠劵查询
* @Description: 商家优惠劵查询
*/
*/
import
React
,
{
useRef
,
useState
}
from
'react'
;
import
React
,
{
useRef
,
useState
}
from
'react'
;
...
@@ -252,6 +252,27 @@ const MerchantCouponQuery: React.FC = () => {
...
@@ -252,6 +252,27 @@ const MerchantCouponQuery: React.FC = () => {
break
;
break
;
}
}
};
};
// 初始化高级筛选选项
const
fetchSearchItems
=
async
()
=>
{
const
res
=
await
PublicApi
.
getMarketingCouponPageCondition
();
if
(
res
.
code
===
1000
)
{
const
{
data
}
=
res
;
const
{
typeList
=
[],
getWayList
=
[],
statusList
=
[],
}
=
data
;
return
{
type
:
typeList
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
value
})).
filter
(
item
=>
item
.
value
),
getWay
:
getWayList
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
value
})).
filter
(
item
=>
item
.
value
),
status
:
statusList
.
map
(
item
=>
({
label
:
item
.
name
,
value
:
item
.
value
})).
filter
(
item
=>
item
.
value
),
};
}
return
{};
};
return
(
return
(
<
Card
>
<
Card
>
...
@@ -276,6 +297,10 @@ const MerchantCouponQuery: React.FC = () => {
...
@@ -276,6 +297,10 @@ const MerchantCouponQuery: React.FC = () => {
'name'
,
'name'
,
FORM_FILTER_PATH
,
FORM_FILTER_PATH
,
);
);
useAsyncInitSelect
(
[
'type'
,
'getWay'
,
'status'
],
fetchSearchItems
,
);
}
}
}
}
schema=
{
querySchema
}
schema=
{
querySchema
}
/>
/>
...
...
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