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
shenshaokai
jinfa-platform
Commits
d8d6da2a
Commit
d8d6da2a
authored
Mar 19, 2022
by
Bill
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' into v2-220318
parents
148b475b
ce006a93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
7 deletions
+28
-7
responseCode.ts
src/locales/en-US/responseCode.ts
+3
-1
responseCode.ts
src/locales/ko-KR/responseCode.ts
+4
-1
responseCode.ts
src/locales/zh-CN/responseCode.ts
+4
-1
index.tsx
...ty/marketingActivitiesManagement/activePage/add/index.tsx
+17
-4
No files found.
src/locales/en-US/responseCode.ts
View file @
d8d6da2a
...
...
@@ -1139,5 +1139,7 @@ export default {
"49114"
:
"Sorting cannot be repeated"
,
"49117"
:
'Sorting under the same recommendation label cannot be repeated'
,
"21055"
:
"The payment request amount of the document in the current payment request is greater than the remaining payment amount of the document"
,
"49116"
:
"The sorting cannot be empty when the recommended label is selected"
"49116"
:
"The sorting cannot be empty when the recommended label is selected"
,
"47034"
:
"The deadline must be greater than the start time and greater than the current time"
,
"47035"
:
"You can only modify the active page of 'to be online' or 'offline'"
,
}
src/locales/ko-KR/responseCode.ts
View file @
d8d6da2a
...
...
@@ -1138,5 +1138,8 @@ export default {
"49114"
:
"정렬은 중복될 수 없습니다."
,
"49117"
:
'같은 추천 탭 아래 정렬 중복 불가'
,
"21055"
:
"현재 청구서에 증빙서류가 존재하는 청구금액은 증빙서류의 남은 지불금액보다 크다"
,
"49116"
:
"추천 태그를 선택한 경우 정렬이 비워둘 수 없습니다."
"49116"
:
"추천 태그를 선택한 경우 정렬이 비워둘 수 없습니다."
,
"47034"
:
"마감 시간은 반드시 시작 시간보다 크고 현재 시간보다 커야 한다"
,
"47035"
:
"온라인 또는 오프라인 상태의 활동 페이지만 수정할 수 있습니다."
,
"47036"
:
"'온라인 대기'이벤트 페이지만 삭제 가능"
,
}
src/locales/zh-CN/responseCode.ts
View file @
d8d6da2a
...
...
@@ -1140,5 +1140,8 @@ export default {
"49114"
:
"排序不能重复"
,
"49117"
:
"同一推荐标签下排序不能重复"
,
"21055"
:
"当前请款单中存在单据的请款金额大于单据剩余支付金额"
,
"49116"
:
"选择推荐标签的情况下排序不能为空"
"49116"
:
"选择推荐标签的情况下排序不能为空"
,
"47034"
:
"截止时间必须大于开始时间并且还要大于当前时间"
,
"47035"
:
"只能修改'待上线'或'已下线'的活动页"
,
"47036"
:
"只能删除'待上线'的活动页"
,
}
src/pages/transaction/marketingAbility/marketingActivitiesManagement/activePage/add/index.tsx
View file @
d8d6da2a
...
...
@@ -66,6 +66,10 @@ const Add = () => {
const
[
initialValue
,
setInitialValue
]
=
useState
<
InitialValueType
|
null
>
(
null
);
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
/**
* 只能修改待上线跟已下线的活动
*/
const
isDisabled
=
initialValue
?.
status
===
2
||
initialValue
?.
status
===
3
||
initialValue
?.
status
===
5
const
onSubmit
=
async
(
values
:
SubmitType
)
=>
{
const
{
template
,
startTime
,
endTime
,
...
rest
}
=
values
;
...
...
@@ -102,12 +106,13 @@ const Add = () => {
history
.
push
(
`
${
rest
.
environment
===
WEB
?
WEB_FIXTURE_LINK
:
APP_FIXTURE_LINK
}
?id=
${
data
}
`
);
},
onCancel
:
()
=>
{
// history.push('/memberCenter/marketingAbility/activityPages/management')
history
.
goBack
();
}
});
return
}
history
.
goBack
();
//
history.goBack();
}
};
...
...
@@ -183,7 +188,7 @@ const Add = () => {
onBack=
{
()
=>
history
.
push
(
'/memberCenter/marketingAbility/activityPages/management'
)
}
backIcon=
{
<
ReutrnEle
/>
}
extra=
{
!
isView
&&
(
!
isView
&&
(
<
Space
>
{
isEdit
&&
(
...
...
@@ -193,7 +198,15 @@ const Add = () => {
)
||
null
}
<
Button
icon=
{
<
SaveOutlined
/>
}
loading=
{
loading
}
onClick=
{
()
=>
actions
.
submit
()
}
type=
"primary"
>
{
intl
.
formatMessage
({
id
:
'activityPage.save'
})
}
</
Button
>
<
Button
icon=
{
<
SaveOutlined
/>
}
loading=
{
loading
}
onClick=
{
()
=>
actions
.
submit
()
}
type=
"primary"
disabled=
{
isDisabled
}
>
{
intl
.
formatMessage
({
id
:
'activityPage.save'
})
}
</
Button
>
</
Space
>
)
}
...
...
@@ -231,7 +244,7 @@ const Add = () => {
formAction
.
setFieldValue
(
"shopName"
,
target
.
label
);
});
}
}
editable=
{
!
isView
}
editable=
{
!
isView
||
isDisabled
}
value=
{
initialValue
}
/>
</
div
>
...
...
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