Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
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-admin
Commits
21c1e0e9
Commit
21c1e0e9
authored
Jan 14, 2022
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商家营销活动管理BUG修复
parent
1eee144e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
96 additions
and
85 deletions
+96
-85
index.tsx
src/components/TableLayout/index.tsx
+5
-1
index.tsx
...ages/marketingManage/marketing/marketingExecute/index.tsx
+71
-69
index.tsx
src/pages/marketingManage/merchantMarketing/detail/index.tsx
+10
-10
index.tsx
...anage/merchantMarketing/merchantMarketingSearch/index.tsx
+10
-5
No files found.
src/components/TableLayout/index.tsx
View file @
21c1e0e9
...
...
@@ -63,7 +63,11 @@ const Table: React.FC<Iprops> = (props: any) => {
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
!
Array
.
isArray
(
fetch
))
{
fetch
({
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
const
data
=
{
totalCount
:
res
.
data
.
totalCount
,
data
:
res
.
data
.
data
||
[]
}
resolve
(
data
)
}).
catch
(
error
=>
{
console
.
warn
(
error
)
})
...
...
src/pages/marketingManage/marketing/marketingExecute/index.tsx
View file @
21c1e0e9
import
React
from
'react'
;
import
React
,
{
useRef
}
from
'react'
;
import
{
history
}
from
'umi'
;
import
{
Button
,
Tag
,
Typography
}
from
'antd'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
...
...
@@ -13,6 +13,7 @@ import { getMarketingPlatformActivityExecutePage, getMarketingPlatformActivityGe
const
{
onFormMount$
}
=
FormEffectHooks
;
const
Search
=
()
=>
{
const
ref
=
useRef
<
any
>
({})
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'ID'
,
...
...
@@ -91,40 +92,35 @@ const Search = () => {
return
(
<
TableLayout
reload=
{
ref
}
columns=
{
columns
}
effects=
"id"
fetch=
{
getMarketingPlatformActivityExecutePage
}
useStateEffects=
{
useStateEffects
}
schema=
{
{
type
:
'object'
,
type
:
"object"
,
properties
:
{
m
ageL
ayout
:
{
m
egal
ayout
:
{
type
:
"object"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
'space-between'
}
},
"x-component"
:
"mega-layout"
,
properties
:
{
id
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-rules'
:
[{
pattern
:
PATTERN_MAPS
.
quantity
,
message
:
'请输入活动ID'
,
}],
'x-component-props'
:
{
placeholder
:
'活动ID'
placeholder
:
'活动ID'
,
align
:
"flex-left"
,
},
'x-rules'
:
[
{
pattern
:
PATTERN_MAPS
.
quantity
,
message
:
'请输入ID'
,
},
],
},
}
,
}
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'Flex-Layout'
,
type
:
"object"
,
"x-component"
:
"flex-layout"
,
"x-component-props"
:
{
rowStyle
:
{
justifyContent
:
"flex-start"
,
...
...
@@ -135,62 +131,68 @@ const Search = () => {
}
},
properties
:
{
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'活动名称'
,
allowClear
:
true
,
style
:
{
width
:
160
,
},
PRO_LAYOUT
:
{
type
:
"object"
,
"x-component"
:
"mega-layout"
,
"x-mega-props"
:
{
span
:
5
},
},
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
'开始时间'
,
'结束时间'
],
allowClear
:
true
,
style
:
{
width
:
240
,
},
"x-component-props"
:
{
inline
:
true
},
},
activityType
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'活动类型'
,
allowClear
:
true
,
style
:
{
width
:
160
,
properties
:
{
activityName
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'活动名称'
,
style
:
{
width
:
160
,
},
},
},
},
},
outerStatus
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[],
'x-component-props'
:
{
placeholder
:
'外部状态'
,
allowClear
:
true
,
style
:
{
width
:
160
,
'[startTime,endTime]'
:
{
type
:
'daterange'
,
'x-component-props'
:
{
placeholder
:
[
'开始时间'
,
'结束时间'
],
style
:
{
width
:
240
,
},
},
},
},
activityType
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'活动类型'
,
style
:
{
width
:
160
,
},
},
enum
:
[],
},
outerStatus
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'外部状态'
,
style
:
{
width
:
160
,
},
},
enum
:
[],
},
}
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
span
:
1
,
},
'x-component-props'
:
{
children
:
'查询'
,
sumbit
:
{
"x-component"
:
"Submit"
,
"x-mega-props"
:
{
span
:
1
},
},
},
},
},
"x-component-props"
:
{
children
:
"查询"
}
}
}
}
}
}
}
/>
);
...
...
src/pages/marketingManage/merchantMarketing/detail/index.tsx
View file @
21c1e0e9
...
...
@@ -92,11 +92,11 @@ const DetialLayout = () => {
return
}
let
{
data
}
=
res
;
let
external
LogStates
:
any
=
[];
let
external
Logs
:
any
=
[];
if
(
data
.
out
erTaskList
)
{
data
.
out
erTaskList
.
forEach
((
item
:
any
)
=>
{
external
LogStates
.
push
({
let
interior
LogStates
:
any
=
[];
let
interior
Logs
:
any
=
[];
if
(
data
.
inn
erTaskList
)
{
data
.
inn
erTaskList
.
forEach
((
item
:
any
)
=>
{
interior
LogStates
.
push
({
state
:
item
.
step
,
stateName
:
null
,
isExecute
:
item
.
isExecute
,
...
...
@@ -104,11 +104,11 @@ const DetialLayout = () => {
roleName
:
item
.
roleName
,
})
})
data
.
externalLogStates
=
external
LogStates
;
data
.
interiorLogStates
=
interior
LogStates
;
}
if
(
data
.
out
erRecordDOList
)
{
data
.
out
erRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
external
Logs
.
push
({
if
(
data
.
inn
erRecordDOList
)
{
data
.
inn
erRecordDOList
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
interior
Logs
.
push
({
operation
:
item
.
operate
,
createTime
:
item
.
operateTime
,
roleName
:
item
.
roleName
,
...
...
@@ -119,7 +119,7 @@ const DetialLayout = () => {
step
:
index
,
})
})
data
.
externalLogs
=
external
Logs
;
data
.
interiorLogs
=
interior
Logs
;
}
if
(
data
.
activityType
===
ACTIVITY_TYPE_6
)
{
setRemind
(
remindLayout
(
data
.
activityType
,
data
.
activityDefined
.
giveType
,
data
.
activityDefined
.
giftType
));
...
...
src/pages/marketingManage/merchantMarketing/merchantMarketingSearch/index.tsx
View file @
21c1e0e9
...
...
@@ -9,9 +9,10 @@ import { FormEffectHooks } from '@formily/antd';
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
getMarketingPlatformMerchantActivityGetActivityTypeList
,
getMarketingPlatformMerchantActivityGet
Out
erStatusList
,
getMarketingPlatformMerchantActivityGet
Inn
erStatusList
,
getMarketingPlatformMerchantActivityPage
}
from
'@/services/MarketingV2Api'
;
import
{
PATTERN_MAPS
}
from
'@/constants/regExp'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
MerchantMarketingSearch
=
()
=>
{
...
...
@@ -71,9 +72,9 @@ const MerchantMarketingSearch = () => {
console
.
warn
(
err
)
})
/** 外部状态 */
getMarketingPlatformMerchantActivityGet
Out
erStatusList
().
then
(
res
=>
{
getMarketingPlatformMerchantActivityGet
Inn
erStatusList
().
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
status
}
});
linkage
.
enum
(
'
out
erStatus'
,
_enum
);
linkage
.
enum
(
'
inn
erStatus'
,
_enum
);
}).
catch
(
err
=>
{
console
.
warn
(
err
)
})
...
...
@@ -97,6 +98,10 @@ const MerchantMarketingSearch = () => {
id
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-rules'
:
[{
pattern
:
PATTERN_MAPS
.
quantity
,
message
:
'请输入活动ID'
,
}],
'x-component-props'
:
{
placeholder
:
'活动ID'
,
align
:
"flex-left"
,
...
...
@@ -155,10 +160,10 @@ const MerchantMarketingSearch = () => {
},
enum
:
[],
},
out
erStatus
:
{
inn
erStatus
:
{
type
:
'string'
,
'x-component-props'
:
{
placeholder
:
'
外
部状态'
,
placeholder
:
'
内
部状态'
,
style
:
{
width
:
160
,
},
...
...
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