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
7b5b9ac9
Commit
7b5b9ac9
authored
Jan 05, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 营销活动执行
parent
613ea7e0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
179 additions
and
160 deletions
+179
-160
index.tsx
...ction/marketingAbility/platformexeCution/search/index.tsx
+89
-80
index.tsx
...tion/marketingAbility/selfbuiltexeCution/search/index.tsx
+90
-80
No files found.
src/pages/transaction/marketingAbility/platformexeCution/search/index.tsx
View file @
7b5b9ac9
...
...
@@ -13,44 +13,44 @@ const Search = () => {
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongmingcheng'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongmingcheng'
})}
`
,
dataIndex
:
'activityName'
,
align
:
'left'
,
render
:
(
text
)
=>
<
span
style=
{
{
color
:
'#00B37A'
}
}
>
{
text
}
</
span
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongleixing'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongleixing'
})}
`
,
dataIndex
:
'activityType'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongkaishishijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongkaishishijian'
})}
`
,
dataIndex
:
'startTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongjieshushijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongjieshushijian'
})}
`
,
dataIndex
:
'endTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.baomingshijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.baomingshijian'
})}
`
,
dataIndex
:
'startTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.canyukehushu'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.canyukehushu'
})}
`
,
dataIndex
:
'id'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.yizhixingdingdanshu'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.yizhixingdingdanshu'
})}
`
,
dataIndex
:
'id'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.waibuzhuangtai'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.waibuzhuangtai'
})}
`
,
dataIndex
:
'outerStatus'
,
align
:
'left'
,
render
:
(
text
)
=>
(
...
...
@@ -58,7 +58,7 @@ const Search = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.neibuzhuangtai'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.neibuzhuangtai'
})}
`
,
dataIndex
:
'innerStatus'
,
align
:
'left'
,
}]
...
...
@@ -66,29 +66,29 @@ const Search = () => {
{
id
:
'1'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
},
{
id
:
'2'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
},
{
id
:
'3'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
}
]
/* 多选返回的 */
...
...
@@ -98,7 +98,7 @@ const Search = () => {
return
(
<
TableLayout
columns=
{
columns
}
effects=
"
name
"
effects=
"
id
"
fetch=
{
mokiData
}
selectedRow=
{
true
}
fetchRowkeys=
{
fetchRowkeys
}
...
...
@@ -106,80 +106,89 @@ const Search = () => {
type
:
'object'
,
properties
:
{
mageLayout
:
{
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
type
:
"object"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
'space-between'
}
},
properties
:
{
topLayout
:
{
type
:
'
object
'
,
'x-component'
:
'
Mega-Layout
'
,
id
:
{
type
:
'
string
'
,
'x-component'
:
'
Search
'
,
'x-component-props'
:
{
grid
:
true
,
placeholder
:
'活动ID'
},
properties
:
{
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.sousuo'})}`
,
tip
:
intl
.
formatMessage
({
id
:
'marketingAbility.shuruhuiyuanming'
}),
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'Flex-Layout'
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
"flex-start"
,
flexWrap
:
"nowrap"
},
colStyle
:
{
//改变间隔
marginRight
:
20
}
},
properties
:
{
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`活动名称`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'Flex-Layout'
,
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
placeholder
:
[
`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian' })}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian' })}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
},
},
properties
:
{
subject
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.kaopingzhuti'})}`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
'[appraisalDayStart,appraisalDayEnd]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian'})}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian'})}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
},
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.neibuzhuangtai(quanbu)'})}`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
activityType
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`活动类型`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
`${intl.formatMessage({ id: 'marketingAbility.chaxun'})}`
,
},
},
},
outerStatus
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`外部状态`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
`${intl.formatMessage({ id: 'marketingAbility.chaxun' })}`
,
},
},
},
},
},
...
...
src/pages/transaction/marketingAbility/selfbuiltexeCution/search/index.tsx
View file @
7b5b9ac9
...
...
@@ -13,44 +13,44 @@ const Search = () => {
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongmingcheng'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongmingcheng'
})}
`
,
dataIndex
:
'activityName'
,
align
:
'left'
,
render
:
(
text
)
=>
<
span
style=
{
{
color
:
'#00B37A'
}
}
>
{
text
}
</
span
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongleixing'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongleixing'
})}
`
,
dataIndex
:
'activityType'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongkaishishijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongkaishishijian'
})}
`
,
dataIndex
:
'startTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongjieshushijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.huodongjieshushijian'
})}
`
,
dataIndex
:
'endTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.baomingshijian'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.baomingshijian'
})}
`
,
dataIndex
:
'startTime'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.canyukehushu'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.canyukehushu'
})}
`
,
dataIndex
:
'id'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.yizhixingdingdanshu'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.yizhixingdingdanshu'
})}
`
,
dataIndex
:
'id'
,
align
:
'left'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.waibuzhuangtai'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.waibuzhuangtai'
})}
`
,
dataIndex
:
'outerStatus'
,
align
:
'left'
,
render
:
(
text
)
=>
(
...
...
@@ -58,7 +58,7 @@ const Search = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.neibuzhuangtai'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.neibuzhuangtai'
})}
`
,
dataIndex
:
'innerStatus'
,
align
:
'left'
,
}]
...
...
@@ -66,39 +66,40 @@ const Search = () => {
{
id
:
'1'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
},
{
id
:
'2'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
},
{
id
:
'3'
,
activityName
:
'tony'
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
activityType
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.miaosha'
})}
`
,
startTime
:
'2020-05-12 08:08'
,
endTime
:
intl
.
formatMessage
({
id
:
'marketingAbility.haisheng59miao'
}),
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
outerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaobaopingtaishenhe'
})}
`
,
innerStatus
:
`
${
intl
.
formatMessage
({
id
:
'marketingAbility.daitijiaoshenhe'
})}
`
,
}
]
/* 多选返回的 */
const
fetchRowkeys
=
(
row
)
=>
{
console
.
log
(
row
);
}
return
(
<
TableLayout
columns=
{
columns
}
effects=
"
name
"
effects=
"
id
"
fetch=
{
mokiData
}
selectedRow=
{
true
}
fetchRowkeys=
{
fetchRowkeys
}
...
...
@@ -106,80 +107,89 @@ const Search = () => {
type
:
'object'
,
properties
:
{
mageLayout
:
{
type
:
'object'
,
'x-component'
:
'Mega-Layout'
,
type
:
"object"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
'space-between'
}
},
properties
:
{
topLayout
:
{
type
:
'
object
'
,
'x-component'
:
'
Mega-Layout
'
,
id
:
{
type
:
'
string
'
,
'x-component'
:
'
Search
'
,
'x-component-props'
:
{
grid
:
true
,
placeholder
:
'活动ID'
},
properties
:
{
name
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.sousuo'})}`
,
tip
:
intl
.
formatMessage
({
id
:
'marketingAbility.shuruhuiyuanming'
}),
},
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'Flex-Layout'
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
"flex-start"
,
flexWrap
:
"nowrap"
},
colStyle
:
{
//改变间隔
marginRight
:
20
}
},
properties
:
{
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`活动名称`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'Flex-Layout'
,
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
colStyle
:
{
marginLeft
:
20
,
placeholder
:
[
`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian' })}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian' })}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
},
},
properties
:
{
subject
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.kaopingzhuti'})}`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
'[appraisalDayStart,appraisalDayEnd]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian'})}`
,
`${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian'})}`
],
allowClear
:
true
,
style
:
{
width
:
240
,
},
},
},
status
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'marketingAbility.neibuzhuangtai(quanbu)'})}`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
activityType
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`活动类型`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
`${intl.formatMessage({ id: 'marketingAbility.chaxun'})}`
,
},
},
},
outerStatus
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
`外部状态`
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
`${intl.formatMessage({ id: 'marketingAbility.chaxun' })}`
,
},
},
},
},
},
...
...
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