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:仓位库存调拨按钮
...
@@ -75,10 +75,35 @@ repositories.edit:仓位库存调拨按钮
营销能力-marketingAbility
营销能力-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 平台营销活动查询 平台营销活动查询-按钮
paltformSign.see 平台营销活动查询 平台营销活动查询-按钮
商家营销活动页管理
management.add 商家营销活动页管理新曾 商家营销活动页管理新曾-按钮
平台营销活动报名
待提交审核报名资料
待提交审核报名资料
readySubmitExamine.see 待提交审核报名资料-查询 待提交审核报名资料-查询-按钮
readySubmitExamine.see 待提交审核报名资料-查询 待提交审核报名资料-查询-按钮
readySubmitExamine.update 待提交审核报名资料-修改 待提交审核报名资料-修改-按钮
readySubmitExamine.update 待提交审核报名资料-修改 待提交审核报名资料-修改-按钮
...
...
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/index.tsx
View file @
0d45374e
...
@@ -12,6 +12,7 @@ import { getTemplateWebActivityPagePage, GetTemplateWebActivityPagePageRequest,
...
@@ -12,6 +12,7 @@ import { getTemplateWebActivityPagePage, GetTemplateWebActivityPagePageRequest,
import
{
useIntl
}
from
'umi'
import
{
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
;
import
AuthButton
from
'@/components/AuthButton'
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
type
SearchParamsType
=
{
type
SearchParamsType
=
{
...
...
src/pages/transaction/marketingAbility/selfManagement/readyExamineOne/index.tsx
View file @
0d45374e
...
@@ -15,7 +15,10 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
...
@@ -15,7 +15,10 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep1
,
postMarketingMerchantActivityExamineStep1Batch
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep1
,
postMarketingMerchantActivityExamineStep1Batch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyExamineOne
=
()
=>
{
const
ReadyExamineOne
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -37,36 +40,36 @@ const ReadyExamineOne = () => {
...
@@ -37,36 +40,36 @@ const ReadyExamineOne = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
key
:
'id'
,
dataIndex
:
'id'
,
dataIndex
:
'id'
,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -74,7 +77,7 @@ const ReadyExamineOne = () => {
...
@@ -74,7 +77,7 @@ const ReadyExamineOne = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -82,10 +85,14 @@ const ReadyExamineOne = () => {
...
@@ -82,10 +85,14 @@ const ReadyExamineOne = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'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 = () => {
...
@@ -131,7 +138,7 @@ const ReadyExamineOne = () => {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -167,7 +174,7 @@ const ReadyExamineOne = () => {
...
@@ -167,7 +174,7 @@ const ReadyExamineOne = () => {
activityName
:
{
activityName
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -176,7 +183,7 @@ const ReadyExamineOne = () => {
...
@@ -176,7 +183,7 @@ const ReadyExamineOne = () => {
'[startTime,endTime]'
:
{
'[startTime,endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'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
:
{
style
:
{
width
:
240
,
width
:
240
,
},
},
...
@@ -185,7 +192,7 @@ const ReadyExamineOne = () => {
...
@@ -185,7 +192,7 @@ const ReadyExamineOne = () => {
activityType
:
{
activityType
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -200,7 +207,7 @@ const ReadyExamineOne = () => {
...
@@ -200,7 +207,7 @@ const ReadyExamineOne = () => {
span
:
1
span
:
1
},
},
"x-component-props"
:
{
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
}
}
}
...
@@ -210,11 +217,14 @@ const ReadyExamineOne = () => {
...
@@ -210,11 +217,14 @@ const ReadyExamineOne = () => {
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
AuthButton
btnCode=
'selfManagementreadyExamineOne.batch'
menuCode=
{
menuCode
}
>
loading=
{
submitLoading
}
<
Button
onClick=
{
fetchSubmitBatch
}
loading=
{
submitLoading
}
disabled=
{
rowkeys
.
length
===
0
}
onClick=
{
fetchSubmitBatch
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readyExamineTwo/index.tsx
View file @
0d45374e
...
@@ -14,7 +14,11 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
...
@@ -14,7 +14,11 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep2
,
postMarketingMerchantActivityExamineStep2Batch
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageExamineStep2
,
postMarketingMerchantActivityExamineStep2Batch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyExamineTwo
=
()
=>
{
const
ReadyExamineTwo
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -31,41 +35,41 @@ const ReadyExamineTwo = () => {
...
@@ -31,41 +35,41 @@ const ReadyExamineTwo = () => {
ref
.
current
.
reload
();
ref
.
current
.
reload
();
setRowKeys
([])
setRowKeys
([])
setSubmitLoading
(
false
)
setSubmitLoading
(
false
)
}).
catch
(
_e
=>
{
setSubmitLoading
(
false
)
})
}).
catch
(
_e
=>
{
setSubmitLoading
(
false
)
})
}
}
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
key
:
'id'
,
dataIndex
:
'id'
,
dataIndex
:
'id'
,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -73,7 +77,7 @@ const ReadyExamineTwo = () => {
...
@@ -73,7 +77,7 @@ const ReadyExamineTwo = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -81,10 +85,14 @@ const ReadyExamineTwo = () => {
...
@@ -81,10 +85,14 @@ const ReadyExamineTwo = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'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 = () => {
...
@@ -130,7 +138,7 @@ const ReadyExamineTwo = () => {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -166,7 +174,7 @@ const ReadyExamineTwo = () => {
...
@@ -166,7 +174,7 @@ const ReadyExamineTwo = () => {
activityName
:
{
activityName
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -175,7 +183,7 @@ const ReadyExamineTwo = () => {
...
@@ -175,7 +183,7 @@ const ReadyExamineTwo = () => {
'[startTime,endTime]'
:
{
'[startTime,endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'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
:
{
style
:
{
width
:
240
,
width
:
240
,
},
},
...
@@ -184,7 +192,7 @@ const ReadyExamineTwo = () => {
...
@@ -184,7 +192,7 @@ const ReadyExamineTwo = () => {
activityType
:
{
activityType
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -199,7 +207,7 @@ const ReadyExamineTwo = () => {
...
@@ -199,7 +207,7 @@ const ReadyExamineTwo = () => {
span
:
1
span
:
1
},
},
"x-component-props"
:
{
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
}
}
}
...
@@ -209,11 +217,14 @@ const ReadyExamineTwo = () => {
...
@@ -209,11 +217,14 @@ const ReadyExamineTwo = () => {
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
AuthButton
btnCode=
'selfManagementreadyExamineTwo.batch'
menuCode=
{
menuCode
}
>
loading=
{
submitLoading
}
<
Button
onClick=
{
fetchSubmitBatch
}
loading=
{
submitLoading
}
disabled=
{
rowkeys
.
length
===
0
}
onClick=
{
fetchSubmitBatch
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readyLive/index.tsx
View file @
0d45374e
...
@@ -13,6 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
...
@@ -13,6 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeOnline
,
postMarketingMerchantActivityOnline
,
postMarketingMerchantActivityOnlineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeOnline
,
postMarketingMerchantActivityOnline
,
postMarketingMerchantActivityOnlineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadyLive
=
()
=>
{
const
ReadyLive
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
...
@@ -39,36 +42,36 @@ const ReadyLive = () => {
...
@@ -39,36 +42,36 @@ const ReadyLive = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
key
:
'id'
,
dataIndex
:
'id'
,
dataIndex
:
'id'
,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -76,7 +79,7 @@ const ReadyLive = () => {
...
@@ -76,7 +79,7 @@ const ReadyLive = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -84,15 +87,18 @@ const ReadyLive = () => {
...
@@ -84,15 +87,18 @@ const ReadyLive = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
,
_record
)
=>
(
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
<
Fragment
>
{
_record
.
online
&&
(
{
_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
)
}
>
<
AuthButton
btnCode=
'readyLive.online'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.onlineActivity'
})
}
</
Button
>
<
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
)
}
>
</
Popconfirm
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.onlineActivity'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
)
}
</
Fragment
>
</
Fragment
>
)
)
...
@@ -141,7 +147,7 @@ const ReadyLive = () => {
...
@@ -141,7 +147,7 @@ const ReadyLive = () => {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -177,7 +183,7 @@ const ReadyLive = () => {
...
@@ -177,7 +183,7 @@ const ReadyLive = () => {
activityName
:
{
activityName
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -186,7 +192,7 @@ const ReadyLive = () => {
...
@@ -186,7 +192,7 @@ const ReadyLive = () => {
'[startTime,endTime]'
:
{
'[startTime,endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'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
:
{
style
:
{
width
:
240
,
width
:
240
,
},
},
...
@@ -195,7 +201,7 @@ const ReadyLive = () => {
...
@@ -195,7 +201,7 @@ const ReadyLive = () => {
activityType
:
{
activityType
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -210,7 +216,7 @@ const ReadyLive = () => {
...
@@ -210,7 +216,7 @@ const ReadyLive = () => {
span
:
1
span
:
1
},
},
"x-component-props"
:
{
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
}
}
}
...
@@ -220,11 +226,14 @@ const ReadyLive = () => {
...
@@ -220,11 +226,14 @@ const ReadyLive = () => {
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
AuthButton
btnCode=
'readyLive.batch'
menuCode=
{
menuCode
}
>
loading=
{
submitLoading
}
<
Button
onClick=
{
()
=>
fetchSubmitBatch
()
}
loading=
{
submitLoading
}
disabled=
{
rowkeys
.
length
===
0
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchOnlineActivities'
})
}
</
Button
>
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchOnlineActivities'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmit/index.tsx
View file @
0d45374e
...
@@ -13,7 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
...
@@ -13,7 +13,9 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmit
,
postMarketingMerchantActivitySubmit
,
postMarketingMerchantActivitySubmitBatch
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmit
,
postMarketingMerchantActivitySubmit
,
postMarketingMerchantActivitySubmitBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadySubmit
=
()
=>
{
const
ReadySubmit
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -39,36 +41,36 @@ const ReadySubmit = () => {
...
@@ -39,36 +41,36 @@ const ReadySubmit = () => {
const
columns
:
ColumnType
<
any
>
[]
=
[
const
columns
:
ColumnType
<
any
>
[]
=
[
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityID'
})}
`
,
key
:
'id'
,
key
:
'id'
,
dataIndex
:
'id'
,
dataIndex
:
'id'
,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
,
key
:
'activityType'
,
dataIndex
:
'activityType'
,
dataIndex
:
'activityType'
,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
render
:
(
_text
,
record
)
=>
<>
{
record
.
activityTypeName
}
</>,
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activitiesStartTime'
})}
`
,
key
:
'startTime'
,
key
:
'startTime'
,
dataIndex
:
'startTime'
,
dataIndex
:
'startTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.activityOverTime'
})}
`
,
key
:
'endTime'
,
key
:
'endTime'
,
dataIndex
:
'endTime'
,
dataIndex
:
'endTime'
,
render
:
(
text
)
=>
format
(
text
)
render
:
(
text
)
=>
format
(
text
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.externalState'
})}
`
,
key
:
'outerStatus'
,
key
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
dataIndex
:
'outerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -76,7 +78,7 @@ const ReadySubmit = () => {
...
@@ -76,7 +78,7 @@ const ReadySubmit = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.internalState'
})}
`
,
key
:
'innerStatus'
,
key
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
dataIndex
:
'innerStatus'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
...
@@ -84,15 +86,18 @@ const ReadySubmit = () => {
...
@@ -84,15 +86,18 @@ const ReadySubmit = () => {
)
)
},
},
{
{
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.operation'
})}
`
,
key
:
'state'
,
key
:
'state'
,
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
,
_record
)
=>
(
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
<
Fragment
>
{
_record
.
submit
&&
(
{
_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
)
}
>
<
AuthButton
btnCode=
'selfManagementreadySubmit.Submit'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
<
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
)
}
>
</
Popconfirm
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
)
}
</
Fragment
>
</
Fragment
>
)
)
...
@@ -141,7 +146,7 @@ const ReadySubmit = () => {
...
@@ -141,7 +146,7 @@ const ReadySubmit = () => {
type
:
'string'
,
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.activityID'
})}`
,
},
},
'x-rules'
:
[
'x-rules'
:
[
{
{
...
@@ -177,7 +182,7 @@ const ReadySubmit = () => {
...
@@ -177,7 +182,7 @@ const ReadySubmit = () => {
activityName
:
{
activityName
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theNameOfTheEvent'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -186,7 +191,7 @@ const ReadySubmit = () => {
...
@@ -186,7 +191,7 @@ const ReadySubmit = () => {
'[startTime,endTime]'
:
{
'[startTime,endTime]'
:
{
type
:
'daterange'
,
type
:
'daterange'
,
'x-component-props'
:
{
'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
:
{
style
:
{
width
:
240
,
width
:
240
,
},
},
...
@@ -195,7 +200,7 @@ const ReadySubmit = () => {
...
@@ -195,7 +200,7 @@ const ReadySubmit = () => {
activityType
:
{
activityType
:
{
type
:
'string'
,
type
:
'string'
,
'x-component-props'
:
{
'x-component-props'
:
{
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'})}`
,
placeholder
:
`${intl.formatMessage({ id: 'selfManagement.theActivityType'
})}`
,
style
:
{
style
:
{
width
:
160
,
width
:
160
,
},
},
...
@@ -210,7 +215,7 @@ const ReadySubmit = () => {
...
@@ -210,7 +215,7 @@ const ReadySubmit = () => {
span
:
1
span
:
1
},
},
"x-component-props"
:
{
"x-component-props"
:
{
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'})}`
children
:
`${intl.formatMessage({ id: 'selfManagement.theQuery'
})}`
}
}
}
}
}
}
...
@@ -220,11 +225,13 @@ const ReadySubmit = () => {
...
@@ -220,11 +225,13 @@ const ReadySubmit = () => {
controllerBtns=
{
controllerBtns=
{
<
Row
>
<
Row
>
<
Col
span=
{
6
}
>
<
Col
span=
{
6
}
>
<
Button
<
AuthButton
btnCode=
'selfManagementreadySubmit.batch'
menuCode=
{
menuCode
}
>
disabled=
{
rowkeys
.
length
===
0
}
<
Button
loading=
{
submitLoading
}
disabled=
{
rowkeys
.
length
===
0
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
loading=
{
submitLoading
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
onClick=
{
()
=>
fetchSubmitBatch
()
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
Button
>
</
AuthButton
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
}
}
...
...
src/pages/transaction/marketingAbility/selfManagement/readySubmitExamine/index.tsx
View file @
0d45374e
...
@@ -19,7 +19,10 @@ import {
...
@@ -19,7 +19,10 @@ import {
import
{
InnerStatusColor
,
OuterStatusColor
}
from
'../../common/tagColor'
;
import
{
InnerStatusColor
,
OuterStatusColor
}
from
'../../common/tagColor'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmitExam
,
postMarketingMerchantActivityDelete
,
postMarketingMerchantActivityDeleteBatch
,
postMarketingMerchantActivitySubmitExamine
,
postMarketingMerchantActivitySubmitExamineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityPageTobeSubmitExam
,
postMarketingMerchantActivityDelete
,
postMarketingMerchantActivityDeleteBatch
,
postMarketingMerchantActivitySubmitExamine
,
postMarketingMerchantActivitySubmitExamineBatch
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
menuCode
=
'marketingAbility'
;
const
ReadySubmitExamine
=
()
=>
{
const
ReadySubmitExamine
=
()
=>
{
const
intl
=
useIntl
();
const
intl
=
useIntl
();
const
ref
=
useRef
<
any
>
({});
const
ref
=
useRef
<
any
>
({});
...
@@ -71,7 +74,8 @@ const ReadySubmitExamine = () => {
...
@@ -71,7 +74,8 @@ const ReadySubmitExamine = () => {
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
...
@@ -114,15 +118,25 @@ const ReadySubmitExamine = () => {
...
@@ -114,15 +118,25 @@ const ReadySubmitExamine = () => {
render
:
(
_text
,
_record
)
=>
(
render
:
(
_text
,
_record
)
=>
(
<
Fragment
>
<
Fragment
>
{
_record
.
submit
&&
(
{
_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
)
}
>
<
AuthButton
btnCode=
'selfManagementready.Submit'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.submit'
})
}
</
Button
>
<
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
)
}
>
</
Popconfirm
>
<
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
&&
(
{
_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
)
}
>
<
AuthButton
btnCode=
'selfManagementready.del'
menuCode=
{
menuCode
}
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.delete'
})
}
</
Button
>
<
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
)
}
>
</
Popconfirm
>
<
Button
type=
'link'
>
{
intl
.
formatMessage
({
id
:
'selfManagement.delete'
})
}
</
Button
>
</
Popconfirm
>
</
AuthButton
>
)
}
)
}
</
Fragment
>
</
Fragment
>
)
)
...
@@ -251,22 +265,29 @@ const ReadySubmitExamine = () => {
...
@@ -251,22 +265,29 @@ const ReadySubmitExamine = () => {
<
Row
>
<
Row
>
<
Col
span=
{
24
}
>
<
Col
span=
{
24
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Space
direction=
"horizontal"
size=
{
16
}
>
<
Button
<
AuthButton
btnCode=
'selfManagementready.add'
menuCode=
{
menuCode
}
>
type=
"primary"
<
Button
icon=
{
<
PlusOutlined
/>
}
type=
"primary"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/add`
)
}
icon=
{
<
PlusOutlined
/>
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.new'
})
}
</
Button
>
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/add`
)
}
<
Button
>
{
intl
.
formatMessage
({
id
:
'selfManagement.new'
})
}
</
Button
>
icon=
{
<
DeleteOutlined
/>
}
</
AuthButton
>
loading=
{
deleteLoading
}
onClick=
{
()
=>
fetchDeleteBatch
()
}
<
AuthButton
btnCode=
'selfManagementready.batchdel'
menuCode=
{
menuCode
}
>
disabled=
{
rowkeys
.
length
===
0
}
<
Button
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchDelete'
})
}
</
Button
>
icon=
{
<
DeleteOutlined
/>
}
<
Button
loading=
{
deleteLoading
}
loading=
{
submitLoading
}
onClick=
{
()
=>
fetchDeleteBatch
()
}
onClick=
{
()
=>
fetchSubmitBatch
()
}
disabled=
{
rowkeys
.
length
===
0
}
disabled=
{
rowkeys
.
length
===
0
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchDelete'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'selfManagement.batchSubmitAudit'
})
}
</
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
>
</
Space
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
...
src/pages/transaction/marketingAbility/selfManagement/search/index.tsx
View file @
0d45374e
...
@@ -15,6 +15,8 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
...
@@ -15,6 +15,8 @@ import { InnerStatusColor, OuterStatusColor } from '../../common/tagColor';
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityGetInnerStatusList
,
getMarketingMerchantActivityGetOuterStatusList
,
getMarketingMerchantActivityPage
,
postMarketingMerchantActivityRestart
,
postMarketingMerchantActivityStop
}
from
'@/services/MarketingV2Api'
;
import
{
getMarketingMerchantActivityGetActivityTypeList
,
getMarketingMerchantActivityGetInnerStatusList
,
getMarketingMerchantActivityGetOuterStatusList
,
getMarketingMerchantActivityPage
,
postMarketingMerchantActivityRestart
,
postMarketingMerchantActivityStop
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
{
onFormMount$
}
=
FormEffectHooks
;
import
AuthButton
from
'@/components/AuthButton'
;
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
type
dateInfoProps
=
{
type
dateInfoProps
=
{
/** id */
/** id */
...
@@ -59,7 +61,7 @@ const Search = () => {
...
@@ -59,7 +61,7 @@ const Search = () => {
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theNameOfTheEvent'
})}
`
,
key
:
'activityName'
,
key
:
'activityName'
,
dataIndex
:
'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'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'selfManagement.theActivityType'
})}
`
,
...
@@ -101,9 +103,21 @@ const Search = () => {
...
@@ -101,9 +103,21 @@ const Search = () => {
dataIndex
:
'state'
,
dataIndex
:
'state'
,
render
:
(
_text
,
record
)
=>
(
render
:
(
_text
,
record
)
=>
(
<
Fragment
>
<
Fragment
>
{
record
.
update
&&
<
Button
type=
'link'
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/selfManagement/readySubmitExamine/edit?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.modifyThe'
})
}
</
Button
>
}
{
record
.
update
&&
{
record
.
stop
&&
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'stop'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.terminationOf'
})
}
</
Button
>
}
<
AuthButton
btnCode=
'selfManagement.update'
menuCode=
'marketingAbility'
>
{
record
.
restart
&&
<
Button
type=
'link'
onClick=
{
()
=>
handleOperate
(
record
,
'start'
)
}
>
{
intl
.
formatMessage
({
id
:
'selfManagement.restartThe'
})
}
</
Button
>
}
<
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
>
</
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