Commit 7b5b9ac9 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

feat: 营销活动执行

parent 613ea7e0
...@@ -13,44 +13,44 @@ const Search = () => { ...@@ -13,44 +13,44 @@ const Search = () => {
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.huodongmingcheng'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.huodongmingcheng' })}`,
dataIndex: 'activityName', dataIndex: 'activityName',
align: 'left', align: 'left',
render: (text) => render: (text) =>
<span style={{ color: '#00B37A' }}>{text}</span> <span style={{ color: '#00B37A' }}>{text}</span>
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.huodongleixing'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.huodongleixing' })}`,
dataIndex: 'activityType', dataIndex: 'activityType',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.huodongkaishishijian'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.huodongkaishishijian' })}`,
dataIndex: 'startTime', dataIndex: 'startTime',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.huodongjieshushijian'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.huodongjieshushijian' })}`,
dataIndex: 'endTime', dataIndex: 'endTime',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.baomingshijian'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.baomingshijian' })}`,
dataIndex: 'startTime', dataIndex: 'startTime',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.canyukehushu'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.canyukehushu' })}`,
dataIndex: 'id', dataIndex: 'id',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.yizhixingdingdanshu'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.yizhixingdingdanshu' })}`,
dataIndex: 'id', dataIndex: 'id',
align: 'left', align: 'left',
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.waibuzhuangtai'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.waibuzhuangtai' })}`,
dataIndex: 'outerStatus', dataIndex: 'outerStatus',
align: 'left', align: 'left',
render: (text) => ( render: (text) => (
...@@ -58,7 +58,7 @@ const Search = () => { ...@@ -58,7 +58,7 @@ const Search = () => {
) )
}, },
{ {
title: `${intl.formatMessage({ id: 'marketingAbility.neibuzhuangtai'})}`, title: `${intl.formatMessage({ id: 'marketingAbility.neibuzhuangtai' })}`,
dataIndex: 'innerStatus', dataIndex: 'innerStatus',
align: 'left', align: 'left',
}] }]
...@@ -66,29 +66,29 @@ const Search = () => { ...@@ -66,29 +66,29 @@ const Search = () => {
{ {
id: '1', id: '1',
activityName: 'tony', activityName: 'tony',
activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha'})}`, activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha' })}`,
startTime: '2020-05-12 08:08', startTime: '2020-05-12 08:08',
endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }), endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }),
outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe'})}`, outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe' })}`,
innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe'})}`, innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe' })}`,
}, },
{ {
id: '2', id: '2',
activityName: 'tony', activityName: 'tony',
activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha'})}`, activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha' })}`,
startTime: '2020-05-12 08:08', startTime: '2020-05-12 08:08',
endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }), endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }),
outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe'})}`, outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe' })}`,
innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe'})}`, innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe' })}`,
}, },
{ {
id: '3', id: '3',
activityName: 'tony', activityName: 'tony',
activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha'})}`, activityType: `${intl.formatMessage({ id: 'marketingAbility.miaosha' })}`,
startTime: '2020-05-12 08:08', startTime: '2020-05-12 08:08',
endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }), endTime: intl.formatMessage({ id: 'marketingAbility.haisheng59miao' }),
outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe'})}`, outerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaobaopingtaishenhe' })}`,
innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe'})}`, innerStatus: `${intl.formatMessage({ id: 'marketingAbility.daitijiaoshenhe' })}`,
} }
] ]
/* 多选返回的 */ /* 多选返回的 */
...@@ -98,7 +98,7 @@ const Search = () => { ...@@ -98,7 +98,7 @@ const Search = () => {
return ( return (
<TableLayout <TableLayout
columns={columns} columns={columns}
effects="name" effects="id"
fetch={mokiData} fetch={mokiData}
selectedRow={true} selectedRow={true}
fetchRowkeys={fetchRowkeys} fetchRowkeys={fetchRowkeys}
...@@ -106,80 +106,89 @@ const Search = () => { ...@@ -106,80 +106,89 @@ const Search = () => {
type: 'object', type: 'object',
properties: { properties: {
mageLayout: { mageLayout: {
type: 'object', type: "object",
'x-component': 'Mega-Layout', "x-component": "flex-layout",
"x-component-props": {
rowStyle: {
justifyContent: 'space-between'
}
},
properties: { properties: {
topLayout: { id: {
type: 'object', type: 'string',
'x-component': 'Mega-Layout', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
grid: true, placeholder: '活动ID'
}, },
properties: { },
},
name: { },
type: 'string', [FORM_FILTER_PATH]: {
'x-component': 'Search', type: 'object',
'x-component-props': { 'x-component': 'Flex-Layout',
placeholder: `${intl.formatMessage({ id: 'marketingAbility.sousuo'})}`, "x-component-props": {
tip: intl.formatMessage({ id: 'marketingAbility.shuruhuiyuanming' }), 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]: { '[startTime,endTime]': {
type: 'object', type: 'daterange',
'x-component': 'Flex-Layout',
'x-component-props': { 'x-component-props': {
colStyle: { placeholder: [`${intl.formatMessage({ id: 'marketingAbility.kaopingkaishishijian' })}`, `${intl.formatMessage({ id: 'marketingAbility.kaopingwanchengshijian' })}`],
marginLeft: 20, allowClear: true,
style: {
width: 240,
}, },
}, },
properties: { },
subject: { activityType: {
type: 'string', type: 'string',
'x-component-props': { default: undefined,
placeholder: `${intl.formatMessage({ id: 'marketingAbility.kaopingzhuti'})}`, enum: [],
allowClear: true, 'x-component-props': {
style: { placeholder: `活动类型`,
width: 160, 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,
},
},
}, },
},
submit: { },
'x-component': 'Submit', outerStatus: {
'x-mega-props': { type: 'string',
span: 1, default: undefined,
}, enum: [],
'x-component-props': { 'x-component-props': {
children: `${intl.formatMessage({ id: 'marketingAbility.chaxun'})}`, placeholder: `外部状态`,
}, allowClear: true,
style: {
width: 160,
}, },
}, },
}, },
submit: {
'x-component': 'Submit',
'x-mega-props': {
span: 1,
},
'x-component-props': {
children: `${intl.formatMessage({ id: 'marketingAbility.chaxun' })}`,
},
},
}, },
}, },
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment