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
37a261ca
Commit
37a261ca
authored
Jan 07, 2022
by
XieZhiXiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
7a9bbec3
4dd1c415
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
index.tsx
...ction/marketingAbility/platformexeCution/detail/index.tsx
+19
-0
index.tsx
...tion/marketingAbility/selfbuiltexeCution/detail/index.tsx
+19
-0
No files found.
src/pages/transaction/marketingAbility/platformexeCution/detail/index.tsx
View file @
37a261ca
...
...
@@ -23,6 +23,11 @@ import TableModal from '@/pages/transaction/components/tableModal';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
FormEffectHooks
}
from
'@formily/antd'
;
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
DetialLayout
=
()
=>
{
const
intl
=
useIntl
();
...
...
@@ -243,6 +248,19 @@ const DetialLayout = () => {
setTableModalVisible
(
flag
)
}
const
useStateEffects
=
()
=>
{
const
linkage
=
useLinkageUtils
();
onFormMount$
().
subscribe
(()
=>
{
/** 活动类型 */
postManageWebShopWebAll
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
hasMemberType
:
1
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
id
}
});
linkage
.
enum
(
'shopId'
,
_enum
);
}).
catch
(
err
=>
{
console
.
warn
(
err
)
})
})
}
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
<
PeripheralLayout
...
...
@@ -306,6 +324,7 @@ const DetialLayout = () => {
}
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
"orderNo"
,
FORM_FILTER_PATH
)
useStateEffects
()
}
}
schema=
{
{
type
:
'object'
,
...
...
src/pages/transaction/marketingAbility/selfbuiltexeCution/detail/index.tsx
View file @
37a261ca
...
...
@@ -23,6 +23,11 @@ import TableModal from '@/pages/transaction/components/tableModal';
import
{
ColumnType
}
from
'antd/lib/table/interface'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
{
useLinkageUtils
}
from
'@/utils/formEffectUtils'
;
import
{
FormEffectHooks
}
from
'@formily/antd'
;
import
{
postManageWebShopWebAll
}
from
'@/services/ManageV2Api'
;
import
{
GlobalConfig
}
from
'@/global/config'
;
const
{
onFormMount$
}
=
FormEffectHooks
;
const
DetialLayout
=
()
=>
{
const
intl
=
useIntl
();
...
...
@@ -241,6 +246,19 @@ const DetialLayout = () => {
setTableModalVisible
(
flag
)
}
const
useStateEffects
=
()
=>
{
const
linkage
=
useLinkageUtils
();
onFormMount$
().
subscribe
(()
=>
{
/** 活动类型 */
postManageWebShopWebAll
({
siteId
:
GlobalConfig
.
global
.
siteInfo
.
id
,
hasMemberType
:
1
},
{
ctlType
:
'none'
}).
then
(
res
=>
{
const
_enum
=
res
.
data
.
map
((
item
)
=>
{
return
{
label
:
item
.
name
,
value
:
item
.
id
}
});
linkage
.
enum
(
'shopId'
,
_enum
);
}).
catch
(
err
=>
{
console
.
warn
(
err
)
})
})
}
return
(
<
Context
.
Provider
value=
{
dataSource
}
>
<
PeripheralLayout
...
...
@@ -304,6 +322,7 @@ const DetialLayout = () => {
}
}
effects=
{
(
$
,
actions
)
=>
{
useStateFilterSearchLinkageEffect
(
$
,
actions
,
"orderNo"
,
FORM_FILTER_PATH
)
useStateEffects
()
}
}
schema=
{
{
type
:
'object'
,
...
...
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