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
project
jinfa-admin
Commits
d8846e3b
Commit
d8846e3b
authored
Nov 16, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 修改page/pageCustomized/components & mobileClientEdit文件夹下的接口引入
parent
66eb3198
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
22 deletions
+26
-22
index.tsx
...ageCustomized/components/drawers/activityDrawer/index.tsx
+2
-2
effect.ts
...geCustomized/components/drawers/commodityDrawer/effect.ts
+5
-4
index.tsx
...geCustomized/components/drawers/commodityDrawer/index.tsx
+2
-2
index.tsx
...pageCustomized/components/drawers/couponsDrawer/index.tsx
+3
-3
index.tsx
...ges/pageCustomized/components/drawers/mixDrawer/index.tsx
+10
-7
index.tsx
src/pages/pageCustomized/components/toolBar/index.tsx
+2
-2
platform.tsx
src/pages/pageCustomized/components/toolBar/platform.tsx
+2
-2
index.tsx
src/pages/pageCustomized/mobileClientEdit/index.tsx
+0
-0
preview.tsx
src/pages/pageCustomized/mobileClientEdit/preview.tsx
+0
-0
No files found.
src/pages/pageCustomized/components/drawers/activityDrawer/index.tsx
View file @
d8846e3b
...
...
@@ -6,7 +6,7 @@ import { StandardTable } from 'god';
import
*
as
tableSchemas
from
'./schema'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getTemplateWebActivityPageListAdorn
}
from
'@/services/Template2A
pi'
;
import
{
formatTimeString
}
from
'@/utils'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
...
...
@@ -102,7 +102,7 @@ const ActivityDrawer: React.FC<ActivityDrawerProps> = (props: ActivityDrawerProp
const
fetchTableData
=
async
(
params
:
any
)
=>
{
const
_params
=
{
...
params
,
environment
,
type
,
shopId
};
const
{
data
}
=
await
PublicApi
.
getTemplateWebActivityPageListAdorn
(
_params
);
const
{
data
}
=
await
getTemplateWebActivityPageListAdorn
(
_params
);
return
data
;
};
const
rowSelection
:
any
=
{
...
...
src/pages/pageCustomized/components/drawers/commodityDrawer/effect.ts
View file @
d8846e3b
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getSearchCommodityTemplateGetBrandList
,
getSearchCommodityTemplateGetFirstCategoryListByMemberId
}
from
'@/services/SearchV2Api'
;
// 高级筛选schema中用于输入搜索品牌的Effect
...
...
@@ -8,7 +9,7 @@ export const searchBrandOptionEffect = (
fieldName
:
string
,
)
=>
{
context
.
getFieldState
(
fieldName
,
state
=>
{
PublicApi
.
getSearchCommodityTemplateGetBrandList
({
getSearchCommodityTemplateGetBrandList
({
current
:
'1'
,
pageSize
:
'100'
,
name
:
state
.
props
[
'x-component-props'
].
searchValue
,
...
...
@@ -31,10 +32,10 @@ export const searchCustomerCategoryOptionEffect = (
fieldName
:
string
,
)
=>
{
context
.
getFieldState
(
fieldName
,
state
=>
{
PublicApi
.
getSearchCommodityTemplateGetFirstCategoryListByMemberId
({
getSearchCommodityTemplateGetFirstCategoryListByMemberId
({
shopId
,
}).
then
(
res
=>
{
//
PublicApi.
getProductPlatformGetCategoryTree().then(res => {
// getProductPlatformGetCategoryTree().then(res => {
context
.
setFieldState
(
fieldName
,
state
=>
{
state
.
props
[
'x-component-props'
].
dataoption
=
res
.
data
?.
map
(
item
=>
{
return
{
title
:
item
.
name
,
id
:
item
.
id
};
...
...
src/pages/pageCustomized/components/drawers/commodityDrawer/index.tsx
View file @
d8846e3b
...
...
@@ -8,7 +8,7 @@ import styles from './index.less';
import
CommoditySchema
from
'./schema'
;
import
{
searchBrandOptionEffect
,
searchCustomerCategoryOptionEffect
}
from
'./effect'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMarketingAdornGoodsListAdorn
}
from
'@/services/MaketingV2A
pi'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
useStateFilterSearchLinkageEffect
}
from
'@/formSchema/effects/useFilterSearch'
;
import
Search
from
'@/components/NiceForm/components/Search'
;
...
...
@@ -143,7 +143,7 @@ const CommodityDrawer: React.FC<CommodityDrawerProps> = (props: CommodityDrawerP
...
filterParam
};
console
.
log
(
_params
,
filterParam
,
'_params'
)
const
{
data
}
=
await
PublicApi
.
getMarketingAdornGoodsListAdorn
(
_params
);
const
{
data
}
=
await
getMarketingAdornGoodsListAdorn
(
_params
);
setExpandedRowKeys
(
data
?.
data
?.
map
((
item
)
=>
item
.
id
)
||
[]);
return
data
;
};
...
...
src/pages/pageCustomized/components/drawers/couponsDrawer/index.tsx
View file @
d8846e3b
...
...
@@ -6,7 +6,7 @@ import { StandardTable } from 'god';
import
*
as
tableSchemas
from
'./schema'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
getMarketingCouponPlatformActivityPageSelectPage
,
getMarketingCouponPlatformActivityPageSelectMerchantPage
}
from
'@/services/MaketingV2A
pi'
;
import
{
formatTimeString
}
from
'@/utils'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
...
...
@@ -130,10 +130,10 @@ const CouponsDrawer: React.FC<CouponsDrawerProps> = (props: CouponsDrawerProps)
let
_fetch
:
any
;
switch
(
type
)
{
case
1
:
_fetch
=
PublicApi
.
getMarketingCouponPlatformActivityPageSelectPage
_fetch
=
getMarketingCouponPlatformActivityPageSelectPage
break
;
case
2
:
_fetch
=
PublicApi
.
getMarketingCouponPlatformActivityPageSelectMerchantPage
_fetch
=
getMarketingCouponPlatformActivityPageSelectMerchantPage
break
;
}
const
{
data
}
=
await
_fetch
(
_params
);
...
...
src/pages/pageCustomized/components/drawers/mixDrawer/index.tsx
View file @
d8846e3b
...
...
@@ -7,7 +7,10 @@ import { GlobalConfig } from '@/global/config'
import
styles
from
'./index.less'
;
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
{
getManageShopListAdorn
,
getManageContentInformationListAdorn
}
from
'@/services/PlatformApi'
;
import
{
getProductCommodityGetPlatformCommodityList
}
from
'@/services/Product2Api'
;
import
{
postSearchCommodityTemplateGetCommodityList
,
getSearchCommodityTemplateGetBrandList
}
from
'@/services/SearchV2Api'
;
import
{
getTemplateWebMemberShopWebMemberShopListAdorn
}
from
'@/services/Template2Api'
;
interface
MixDrawerProps
{
...
...
@@ -85,7 +88,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
if
(
keyWord
)
{
_params
.
name
=
keyWord
;
}
_fetch
=
PublicApi
.
getManageShopListAdorn
;
_fetch
=
getManageShopListAdorn
;
break
;
case
3
:
if
(
keyWord
)
{
...
...
@@ -95,12 +98,12 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params
.
priceType
=
3
;
_params
.
status
=
5
;
_fetch
=
PublicApi
.
getProductCommodityGetPlatformCommodityList
;
_fetch
=
getProductCommodityGetPlatformCommodityList
;
}
else
{
_params
.
priceTypeList
=
[
3
];
_params
.
idNotInList
=
selectId
;
_params
.
shopId
=
getPointMallId
()
_fetch
=
PublicApi
.
postSearchCommodityTemplateGetCommodityList
;
_fetch
=
postSearchCommodityTemplateGetCommodityList
;
}
break
;
...
...
@@ -108,7 +111,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
if
(
keyWord
)
{
_params
.
memberName
=
keyWord
;
}
_fetch
=
PublicApi
.
getTemplateWebMemberShopWebMemberShopListAdorn
;
_fetch
=
getTemplateWebMemberShopWebMemberShopListAdorn
;
break
;
// 资讯
case
5
:
...
...
@@ -119,7 +122,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
_params
.
shopId
=
shopId
;
_params
.
idNotInList
=
selectId
;
}
_fetch
=
PublicApi
.
getManageContentInformationListAdorn
;
_fetch
=
getManageContentInformationListAdorn
;
break
;
// 品牌
case
6
:
...
...
@@ -128,7 +131,7 @@ const MixDrawer: React.FC<MixDrawerProps> = (props: MixDrawerProps) => {
}
_params
.
shopId
=
shopId
;
_params
.
idNotInList
=
selectId
;
_fetch
=
PublicApi
.
getSearchCommodityTemplateGetBrandList
;
_fetch
=
getSearchCommodityTemplateGetBrandList
;
break
;
}
_fetch
&&
_fetch
(
_params
).
then
((
res
)
=>
{
...
...
src/pages/pageCustomized/components/toolBar/index.tsx
View file @
d8846e3b
import
React
,
{
useCallback
,
useState
}
from
'react'
;
import
{
Modal
,
Button
,
message
}
from
'antd'
;
import
{
ArrowLeftOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTemplateAdornAppEnterpriseSave
}
from
'@/services/Template2A
pi'
;
import
{
STATE_PROPS
,
PageConfigType
,
PROPS_SETTING_TYPES
}
from
'@lingxi-disign/core'
;
import
{
useSelector
}
from
'@lingxi-disign/react'
;
...
...
@@ -54,7 +54,7 @@ const ToolBar: React.FC<ToolBarPropsType> = (props) => {
const
saveAppEnterprise
=
(
param
)
=>
{
setSaveLoading
(
true
);
PublicApi
.
postTemplateAdornAppEnterpriseSave
(
param
).
then
(
res
=>
{
postTemplateAdornAppEnterpriseSave
(
param
).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
();
message
.
success
(
"保存成功"
);
...
...
src/pages/pageCustomized/components/toolBar/platform.tsx
View file @
d8846e3b
...
...
@@ -2,7 +2,7 @@
import
React
,
{
useCallback
,
useState
}
from
'react'
;
import
{
Modal
,
Button
,
message
}
from
'antd'
;
import
{
ArrowLeftOutlined
,
SaveOutlined
}
from
'@ant-design/icons'
;
import
{
PublicApi
}
from
'@/services/a
pi'
;
import
{
postTemplateAdornWebPlatformSave
}
from
'@/services/Template2A
pi'
;
import
{
// selectComponent,
STATE_PROPS
,
...
...
@@ -224,7 +224,7 @@ const PlatformToolBar: React.FC<ToolBarPropsType> = (props) => {
templateId
,
list
:
configList
};
PublicApi
.
postTemplateAdornWebPlatformSave
(
param
).
then
((
res
)
=>
{
postTemplateAdornWebPlatformSave
(
param
).
then
((
res
)
=>
{
if
(
res
.
code
===
1000
)
{
message
.
destroy
();
message
.
success
(
'保存成功'
);
...
...
src/pages/pageCustomized/mobileClientEdit/index.tsx
View file @
d8846e3b
This diff is collapsed.
Click to expand it.
src/pages/pageCustomized/mobileClientEdit/preview.tsx
View file @
d8846e3b
This diff is collapsed.
Click to expand it.
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