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
0d45374e
Commit
0d45374e
authored
Dec 28, 2021
by
xiexiuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:营销活动按钮权限
parent
93e91b89
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
213 additions
and
115 deletions
+213
-115
按钮状态.mad
src/components/AuthButton/按钮状态.mad
+26
-1
index.tsx
...bility/marketingActivitiesManagement/activePage/index.tsx
+1
-0
index.tsx
...marketingAbility/selfManagement/readyExamineOne/index.tsx
+30
-20
index.tsx
...marketingAbility/selfManagement/readyExamineTwo/index.tsx
+32
-21
index.tsx
...ction/marketingAbility/selfManagement/readyLive/index.tsx
+31
-22
index.tsx
...ion/marketingAbility/selfManagement/readySubmit/index.tsx
+30
-23
index.tsx
...ketingAbility/selfManagement/readySubmitExamine/index.tsx
+45
-24
index.tsx
...nsaction/marketingAbility/selfManagement/search/index.tsx
+18
-4
No files found.
src/components/AuthButton/按钮状态.mad
View file @
0d45374e
btnCo
de 是pass 平台配置唯一表示
btnCo
de 是pass 平台配置唯一表示
...
...
@@ -75,10 +75,35 @@ repositories.edit:仓位库存调拨按钮
营销能力-marketingAbility
营销能力-商家营销活动管理
selfManagement.see 营销活动查询-查看 营销活动查询-查看-按钮
selfManagement.update 营销活动查询-修改 营销活动查询-修改-按钮
selfManagement.stop 营销活动查询-停止 营销活动查询-停止-按钮
selfManagement.restart 营销活动查询-重启启动 营销活动查询-重启启动-按钮
待提交审核营销活动
selfManagementready.see 待提交审核营销活动-查看 待提交审核营销活动-查看-按钮
selfManagementready.add 待提交审核营销活动-新曾 待提交审核营销活动-新曾-按钮
selfManagementready.batchedit 待提交审核营销活动-批量提交审核 待提交审核营销活动-批量提交审核-按钮
selfManagementready.batchdel 待提交审核营销活动-批量提交删除 待提交审核营销活动-批量提交删除-按钮
selfManagementready.Submit 待提交审核营销活动-提交 待提交审核营销活动-提交-按钮
selfManagementready.edit 待提交审核营销活动-修改 待提交审核营销活动-修改-按钮
selfManagementready.del 待提交审核营销活动-删除 待提交审核营销活动-删除-按钮
待审核营销活动(一级)
selfManagementreadyExamineOne.see 待审核营销活动(一级)-查看 待审核营销活动(一级)-查看-按钮
selfManagementreadyExamineOne.batch 待审核营销活动(一级)-批量审核 待审核营销活动(一级)-批量审核-按钮
selfManagementreadyExamineOne.examine 待审核营销活动(一级)-审核 待审核营销活动(一级)-审核-按钮
待审核营销活动(二级)
selfManagementreadyExamineTwo.examine 待审核营销活动(二级)-审核 待审核营销活动(二级)-审核-按钮
selfManagementreadyExamineTwo.see 待审核营销活动(二级)-查看 待审核营销活动(二级)-查看-按钮
selfManagementreadyExamineTwo.batch 待审核营销活动(二级)-批量 待审核营销活动(二级)-批量-按钮
营销能力-商家优惠劵管理
平台营销活动报名
paltformSign.see 平台营销活动查询 平台营销活动查询-按钮
商家营销活动页管理
management.add 商家营销活动页管理新曾 商家营销活动页管理新曾-按钮
平台营销活动报名
待提交审核报名资料
readySubmitExamine.see 待提交审核报名资料-查询 待提交审核报名资料-查询-按钮
readySubmitExamine.update 待提交审核报名资料-修改 待提交审核报名资料-修改-按钮
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/index.tsx
View file @
0d45374e
...
...
@@ -12,6 +12,7 @@ import { getTemplateWebActivityPagePage, GetTemplateWebActivityPagePageRequest,
import
{
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
;
const
{
Search
}
=
Input
;
type
SearchParamsType
=
{
...
...
src/pages/transaction/marketingAbility/selfManagement/readyExamineOne/index.tsx
View file @
0d45374e
...
...
@@ -15,7 +15,10 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep1
,
postMarketingMerchantActivityExamineStep1Batch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyExamineOne
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
...
...
@@ -37,36 +40,36 @@ const ReadyExamineOne = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
dataIndex
:
'id'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/readyExamineOne/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'selfManagementreadyExamineOne.see'
,
menuCode
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/readyExamineOne/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -74,7 +77,7 @@ const ReadyExamineOne = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -82,10 +85,14 @@ const ReadyExamineOne = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readyExamineOne/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.audit'
})
}
</
Button
>
render
:
(
_
,
record
)
=>
<
AuthButton
btnCode=
'selfManagementreadyExamineOne.examine'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readyExamineOne/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.audit'
})
}
</
Button
>
</
AuthButton
>
},
]
...
...
@@ -131,7 +138,7 @@ const ReadyExamineOne = () => {
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
'x-rules'
:
[
{
...
...
@@ -167,7 +174,7 @@ const ReadyExamineOne = () => {
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -176,7 +183,7 @@ const ReadyExamineOne = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
style
:
{
width
:
240
,
},
...
...
@@ -185,7 +192,7 @@ const ReadyExamineOne = () => {
activityType
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -200,7 +207,7 @@ const ReadyExamineOne = () => {
span
:
1
},
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
...
...
@@ -210,11 +217,14 @@ const ReadyExamineOne = () => {
controllerBtns=
{
<
Row
>
<
Col
span=
{
6
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
fetchSubmitBatch
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
<
AuthButton
btnCode=
'selfManagementreadyExamineOne.batch'
menuCode=
{
menuCode
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
fetchSubmitBatch
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Row
>
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readyExamineTwo/index.tsx
View file @
0d45374e
...
...
@@ -14,7 +14,11 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep2
,
postMarketingMerchantActivityExamineStep2Batch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyExamineTwo
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
...
...
@@ -31,41 +35,41 @@ const ReadyExamineTwo = () => {
ref
.
current
.
reload
();
setRowKeys
([])
setSubmitLoading
(
false
)
}).
catch
(
_e
=>
{
setSubmitLoading
(
false
)
})
}).
catch
(
_e
=>
{
setSubmitLoading
(
false
)
})
}
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
dataIndex
:
'id'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/readyExamineTwo/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'selfManagementreadyExamineTwo.see'
,
menuCode
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/readyExamineTwo/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -73,7 +77,7 @@ const ReadyExamineTwo = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -81,10 +85,14 @@ const ReadyExamineTwo = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readyExamineTwo/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.audit'
})
}
</
Button
>
render
:
(
_
,
record
)
=>
<
AuthButton
btnCode=
'selfManagementreadyExamineTwo.examine'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readyExamineTwo/detail?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.audit'
})
}
</
Button
>
</
AuthButton
>
}
]
...
...
@@ -130,7 +138,7 @@ const ReadyExamineTwo = () => {
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
'x-rules'
:
[
{
...
...
@@ -166,7 +174,7 @@ const ReadyExamineTwo = () => {
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -175,7 +183,7 @@ const ReadyExamineTwo = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
style
:
{
width
:
240
,
},
...
...
@@ -184,7 +192,7 @@ const ReadyExamineTwo = () => {
activityType
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -199,7 +207,7 @@ const ReadyExamineTwo = () => {
span
:
1
},
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
...
...
@@ -209,11 +217,14 @@ const ReadyExamineTwo = () => {
controllerBtns=
{
<
Row
>
<
Col
span=
{
6
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
fetchSubmitBatch
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
<
AuthButton
btnCode=
'selfManagementreadyExamineTwo.batch'
menuCode=
{
menuCode
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
fetchSubmitBatch
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Row
>
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readyLive/index.tsx
View file @
0d45374e
...
...
@@ -13,6 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeOnline
,
postMarketingMerchantActivityOnline
,
postMarketingMerchantActivityOnlineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyLive
=
()
=>
{
const
intl
=
useIntl
();
...
...
@@ -39,36 +42,36 @@ const ReadyLive = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
dataIndex
:
'id'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/readyLive/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'readyLive.see'
,
menuCode
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/readyLive/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -76,7 +79,7 @@ const ReadyLive = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -84,15 +87,18 @@ const ReadyLive = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
{
_record
.
online
&&
(
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.launchActivities?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.onlineActivity'
})
}
</
Button
>
</
Popconfirm
>
<
AuthButton
btnCode=
'readyLive.online'
menuCode=
{
menuCode
}
>
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.launchActivities?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.onlineActivity'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
</
Fragment
>
)
...
...
@@ -141,7 +147,7 @@ const ReadyLive = () => {
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
'x-rules'
:
[
{
...
...
@@ -177,7 +183,7 @@ const ReadyLive = () => {
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -186,7 +192,7 @@ const ReadyLive = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
style
:
{
width
:
240
,
},
...
...
@@ -195,7 +201,7 @@ const ReadyLive = () => {
activityType
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -210,7 +216,7 @@ const ReadyLive = () => {
span
:
1
},
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
...
...
@@ -220,11 +226,14 @@ const ReadyLive = () => {
controllerBtns=
{
<
Row
>
<
Col
span=
{
6
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchOnlineActivities'
})
}
</
Button
>
<
AuthButton
btnCode=
'readyLive.batch'
menuCode=
{
menuCode
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchOnlineActivities'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Row
>
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmit/index.tsx
View file @
0d45374e
...
...
@@ -13,7 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmit
,
postMarketingMerchantActivitySubmit
,
postMarketingMerchantActivitySubmitBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadySubmit
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
...
...
@@ -39,36 +41,36 @@ const ReadySubmit = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
dataIndex
:
'id'
,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/readySubmit/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'selfManagementreadySubmit.see'
,
menuCode
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/readySubmit/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -76,7 +78,7 @@ const ReadySubmit = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
...
...
@@ -84,15 +86,18 @@ const ReadySubmit = () => {
)
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
{
_record
.
submit
&&
(
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToSubmit?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
</
Popconfirm
>
<
AuthButton
btnCode=
'selfManagementreadySubmit.Submit'
menuCode=
{
menuCode
}
>
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToSubmit?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
</
Fragment
>
)
...
...
@@ -141,7 +146,7 @@ const ReadySubmit = () => {
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
'x-rules'
:
[
{
...
...
@@ -177,7 +182,7 @@ const ReadySubmit = () => {
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -186,7 +191,7 @@ const ReadySubmit = () => {
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
placeholder
:
[
`${intl.formatMessage({ id: 'selfManagement.theStartTime'
})}`
,
`${intl.formatMessage({ id: 'selfManagement.theEndOfTime'
})}`
],
style
:
{
width
:
240
,
},
...
...
@@ -195,7 +200,7 @@ const ReadySubmit = () => {
activityType
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
width
:
160
,
},
...
...
@@ -210,7 +215,7 @@ const ReadySubmit = () => {
span
:
1
},
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
...
...
@@ -220,11 +225,13 @@ const ReadySubmit = () => {
controllerBtns=
{
<
Row
>
<
Col
span=
{
6
}
>
<
Button
disabled=
{
rowkeys
.
length
===
0
}
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
<
AuthButton
btnCode=
'selfManagementreadySubmit.batch'
menuCode=
{
menuCode
}
>
<
Button
disabled=
{
rowkeys
.
length
===
0
}
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Row
>
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/index.tsx
View file @
0d45374e
...
...
@@ -19,7 +19,10 @@ import {
import
{
InnerStatusColor
,
OuterStatusColor
}
from
'../../common/tagColor'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmitExam
,
postMarketingMerchantActivityDelete
,
postMarketingMerchantActivityDeleteBatch
,
postMarketingMerchantActivitySubmitExamine
,
postMarketingMerchantActivitySubmitExamineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadySubmitExamine
=
()
=>
{
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
...
...
@@ -71,7 +74,8 @@ const ReadySubmitExamine = () => {
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'selfManagementready.see'
,
menuCode
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
...
...
@@ -114,15 +118,25 @@ const ReadySubmitExamine = () => {
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
{
_record
.
submit
&&
(
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToSubmit?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
</
Popconfirm
>
<
AuthButton
btnCode=
'selfManagementready.Submit'
menuCode=
{
menuCode
}
>
<
Popconfirm
okButtonProps=
{
{
loading
:
submitLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToSubmit?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchSubmitBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
{
_record
.
update
&&
(
<
AuthButton
btnCode=
'selfManagementready.edit'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/edit?id=${_record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.modifyThe'
})
}
</
Button
>
</
AuthButton
>
)
}
{
_record
.
update
&&
(<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/edit?id=${_record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.modifyThe'
})
}
</
Button
>)
}
{
_record
.
delete
&&
(
<
Popconfirm
okButtonProps=
{
{
loading
:
deleteLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToDelete?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchDeleteBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.delete'
})
}
</
Button
>
</
Popconfirm
>
<
AuthButton
btnCode=
'selfManagementready.del'
menuCode=
{
menuCode
}
>
<
Popconfirm
okButtonProps=
{
{
loading
:
deleteLoading
}
}
title=
{
intl
.
formatMessage
({
id
:
'selfManagement.sureYouWantToDelete?'
})
}
okText=
{
intl
.
formatMessage
({
id
:
'selfManagement.is'
})
}
cancelText=
{
intl
.
formatMessage
({
id
:
'selfManagement.no'
})
}
onConfirm=
{
()
=>
fetchDeleteBatch
(
_record
.
id
)
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.delete'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
</
Fragment
>
)
...
...
@@ -251,22 +265,29 @@ const ReadySubmitExamine = () => {
<
Row
>
<
Col
span=
{
24
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Button
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/add`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.new'
})
}
</
Button
>
<
Button
icon=
{
<
DeleteOutlined
/>
}
loading=
{
deleteLoading
}
onClick=
{
()
=>
fetchDeleteBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchDelete'
})
}
</
Button
>
<
Button
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
<
AuthButton
btnCode=
'selfManagementready.add'
menuCode=
{
menuCode
}
>
<
Button
type=
"primary"
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/add`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.new'
})
}
</
Button
>
</
AuthButton
>
<
AuthButton
btnCode=
'selfManagementready.batchdel'
menuCode=
{
menuCode
}
>
<
Button
icon=
{
<
DeleteOutlined
/>
}
loading=
{
deleteLoading
}
onClick=
{
()
=>
fetchDeleteBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchDelete'
})
}
</
Button
>
</
AuthButton
>
<
AuthButton
btnCode=
'selfManagementready.batchedit'
menuCode=
{
menuCode
}
>
<
Button
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
</
Col
>
</
Row
>
...
...
src/pages/transaction/marketingAbility/selfManagement/search/index.tsx
View file @
0d45374e
...
...
@@ -15,6 +15,8 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityGetInnerStatusList
,
getMarketingMerchantActivityGetOuterStatusList
,
getMarketingMerchantActivityPage
,
postMarketingMerchantActivityRestart
,
postMarketingMerchantActivityStop
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
type
dateInfoProps
=
{
/** id */
...
...
@@ -59,7 +61,7 @@ const Search = () => {
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
dataIndex
:
'activityName'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/memberCenter/marketingAbility/selfManagement/search/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
type=
{
AuthUrl
(
'selfManagement.see'
,
'marketingAbility'
)
?
'link'
:
'button'
}
url=
{
`/memberCenter/marketingAbility/selfManagement/search/preview?id=${record.id}`
}
>
{
text
}
</
EyePreview
>
},
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
...
...
@@ -101,9 +103,21 @@ const Search = () => {
dataIndex
:
'state'
,
render
:
(
_text
,
record
)
=>
(
<
Fragment
>
{
record
.
update
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/edit?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.modifyThe'
})
}
</
Button
>
}
{
record
.
stop
&&
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'stop'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.terminationOf'
})
}
</
Button
>
}
{
record
.
restart
&&
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'start'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.restartThe'
})
}
</
Button
>
}
{
record
.
update
&&
<
AuthButton
btnCode=
'selfManagement.update'
menuCode=
'marketingAbility'
>
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/edit?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.modifyThe'
})
}
</
Button
>
</
AuthButton
>
}
{
record
.
stop
&&
<
AuthButton
btnCode=
'selfManagement.stop'
menuCode=
'marketingAbility'
>
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'stop'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.terminationOf'
})
}
</
Button
>
</
AuthButton
>
}
{
record
.
restart
&&
<
AuthButton
btnCode=
'selfManagement.restart'
menuCode=
'marketingAbility'
>
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'start'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.restartThe'
})
}
</
Button
>
</
AuthButton
>
}
</
Fragment
>
)
}
...
...
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