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
9d62b917
Commit
9d62b917
authored
Dec 28, 2021
by
前端-许佳敏
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
222b8962
accea56d
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
62 additions
and
25 deletions
+62
-25
AuthUrl.ts
src/components/AuthButton/AuthUrl.ts
+3
-1
index.tsx
src/components/AuthButton/index.tsx
+3
-1
按钮状态.mad
src/components/AuthButton/按钮状态.mad
+18
-1
checkBrand.tsx
src/pages/trademark/checkBrand.tsx
+0
-1
coupon.tsx
...marketingAbility/merchantCoupon/common/columns/coupon.tsx
+0
-2
index.tsx
...y/merchantCoupon/merchantCouponAnalysis/deliver/index.tsx
+2
-0
index.tsx
...Ability/merchantCoupon/merchantCouponNotVerify1/index.tsx
+13
-6
index.tsx
...Ability/merchantCoupon/merchantCouponNotVerify2/index.tsx
+13
-7
index.tsx
...gAbility/merchantCoupon/merchantCouponToConfirm/index.tsx
+10
-6
No files found.
src/components/AuthButton/AuthUrl.ts
View file @
9d62b917
// 这里是处理比较特殊的url 跳转的
import
userBtn
from
"../../../config/router.config.json"
export
const
AuthUrl
=
(
btnCode
:
string
,
menuCode
:
string
)
=>
{
const
userBtn
=
require
(
'../../../config/router.config.json'
)
//
const userBtn = require('../../../config/router.config.json')
const
AuthRoutes
=
userBtn
.
find
((
item
:
any
)
=>
item
?.
relationParentCode
===
menuCode
);
let
AuthCode
:
any
=
[];
if
(
AuthRoutes
)
{
...
...
src/components/AuthButton/index.tsx
View file @
9d62b917
...
...
@@ -9,13 +9,15 @@ export interface AuthButtonProps {
* @param {String} menuCode 页面标识
* @param {String} btnCode 按钮标识
*/
import
userBtn
from
"../../../config/router.config.json"
const
AuthButton
=
(
props
:
AuthButtonProps
)
=>
{
const
{
children
,
btnCode
,
// 按钮标识
menuCode
,
// 按钮页面标识
}
=
props
const
userBtn
=
require
(
'../../../config/router.config.json'
)
//
const userBtn = require('../../../config/router.config.json')
const
AuthRoutes
=
userBtn
.
find
((
item
:
any
)
=>
item
?.
relationParentCode
===
menuCode
);
let
AuthCode
:
any
=
[];
if
(
AuthRoutes
)
{
...
...
src/components/AuthButton/按钮状态.mad
View file @
9d62b917
btnCo
de 是pass 平台配置唯一表示
btnCo
de 是pass 平台配置唯一表示
...
...
@@ -74,6 +74,23 @@ repositories.batchedit:仓位批量修改按钮
repositories.edit:仓位库存调拨按钮
营销能力-marketingAbility
营销能力-商家优惠劵管理
merchantCouponUnsubmitted.batchSubmit 待提交审核商家优惠劵-批量提交 待提交审核商家优惠劵-批量提交-按钮 删除
merchantCouponUnsubmitted.batchdel 待提交审核商家优惠劵-批量删除 待提交审核商家优惠劵-批量删除-按钮 删除
merchantCouponUnsubmitted.add 待提交审核商家优惠劵-新曾 待提交审核商家优惠劵-新曾-按钮 删除
merchantCouponUnsubmitted.del 待提交审核商家优惠劵-删除 待提交审核商家优惠劵-删除-按钮 删除
merchantCouponUnsubmitted.edit 待提交审核商家优惠劵-修改 待提交审核商家优惠劵-修改-按钮 删除
merchantCouponUnsubmitted.Submit 待提交审核商家优惠劵-提交 待提交审核商家优惠劵-提交-按钮 删除
待审核商家优惠劵(一级)-批量
merchantCouponNotVerify1.examine 待审核商家优惠劵(一级)-提交 待审核商家优惠劵(一级)-提交-按钮
merchantCouponNotVerify1.batch 待审核商家优惠劵(二级)-批量 待审核商家优惠劵(二级)-批量
待审核商家优惠劵(二级)-批量
merchantCouponNotVerify2.examine 待审核商家优惠劵(二级)-提交 待审核商家优惠劵(二级)-提交-按钮
merchantCouponNotVerify2.batch 待审核商家优惠劵(二级)-批量 待审核商家优惠劵(二级)-批量
toConfirm.Submit 待提交商家优惠劵提交 待提交商家优惠劵提交按钮
// 内容管理-contentAbility
// 内容管理-栏目管理
...
...
src/pages/trademark/checkBrand.tsx
View file @
9d62b917
...
...
@@ -60,7 +60,6 @@ const CheckBrand: React.FC<{}> = () => {
})
})
}
const
columns
:
ColumnType
<
any
>
[]
=
[
{
title
:
'ID'
,
...
...
src/pages/transaction/marketingAbility/merchantCoupon/common/columns/coupon.tsx
View file @
9d62b917
...
...
@@ -11,7 +11,6 @@ import moment from 'moment';
import
EyePreview
from
'@/components/EyePreview'
;
import
{
getIntl
}
from
'umi'
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
/**
*
* @param target string 会员详情路径前缀
...
...
@@ -30,7 +29,6 @@ const columns = (target = '/memberCenter/marketingAbility/merchantCoupon/unsubmi
align
:
'center'
,
render
:
(
text
,
record
)
=>
(
<
EyePreview
type=
{
AuthUrl
(
'deliver.see'
,
'marketingAbility'
)
?
'link'
:
'button'
}
url=
{
`${target}?id=${record.id}`
}
>
{
text
}
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponAnalysis/deliver/index.tsx
View file @
9d62b917
...
...
@@ -24,6 +24,8 @@ import BacisInfo from '../../components/BacisInfo';
import
CouponRules
from
'../../components/CouponRules'
;
import
DeliverCoupon
,
{
ChangeValueItem
}
from
'../../components/DeliverCoupon'
;
import
{
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
import
{
AuthUrl
}
from
'@/components/AuthButton/AuthUrl'
const
MerchantCouponAnalysisDeliver
:
React
.
FC
<
{}
>
=
()
=>
{
const
intl
=
useIntl
();
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponNotVerify1/index.tsx
View file @
9d62b917
...
...
@@ -28,7 +28,8 @@ import useSpliceArray from '@/hooks/useSpliceArray';
import
verifySchema
from
'../common/schemas/verify'
;
import
commonColumn
from
'../common/columns/coupon'
;
import
{
getMarketingCouponTypeList
,
getMarketingCouponWaitAuditOnePage
,
postMarketingCouponWaitAuditOneAuditBatch
}
from
'@/services/MarketingV2Api'
;
import
{
useIntl
}
from
'umi'
import
{
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
const
{
confirm
}
=
Modal
;
...
...
@@ -63,15 +64,18 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
defaultColumns
=
commonColumn
(
'/memberCenter/marketingAbility/merchantCoupon/notVerify1/detail'
).
concat
([
{
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
dataIndex
:
'option'
,
align
:
'center'
,
render
:
(
_
,
record
)
=>
(
<>
<
AuthButton
btnCode=
'merchantCouponNotVerify1.examine'
menuCode=
'marketingAbility'
>
<
Button
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/merchantCoupon/notVerify1/verify?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Review'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Review'
})
}
</
Button
>
</
AuthButton
>
</>
),
},
...
...
@@ -102,11 +106,11 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
handleBatchVerify
=
()
=>
{
if
(
!
selectedRowKeys
.
length
)
{
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
return
;
}
confirm
({
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.DeterminepassCoupon'
})}
`
,
onOk
()
{
...
...
@@ -132,9 +136,12 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
ControllerBtns
=
()
=>
(
<
Space
size=
{
16
}
>
<
AuthButton
btnCode=
'merchantCouponNotVerify1.batch'
menuCode=
'marketingAbility'
>
<
Button
onClick=
{
handleBatchVerify
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
);
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponNotVerify2/index.tsx
View file @
9d62b917
...
...
@@ -6,7 +6,7 @@
* @Description: 待审核商家优惠劵(二级)
*/
import
React
,
{
useState
,
useRef
}
from
'react'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
history
,
useIntl
}
from
'umi'
;
import
{
Card
,
Space
,
...
...
@@ -28,7 +28,7 @@ import useSpliceArray from '@/hooks/useSpliceArray';
import
verifySchema
from
'../common/schemas/verify'
;
import
commonColumn
from
'../common/columns/coupon'
;
import
{
getMarketingCouponTypeList
,
getMarketingCouponWaitAuditTwoPage
,
postMarketingCouponWaitAuditTwoAuditBatch
}
from
'@/services/MarketingV2Api'
;
import
AuthButton
from
'@/components/AuthButton'
const
{
confirm
}
=
Modal
;
const
formActions
=
createFormActions
();
...
...
@@ -62,15 +62,18 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
defaultColumns
=
commonColumn
(
'/memberCenter/marketingAbility/merchantCoupon/notVerify2/detail'
).
concat
([
{
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
dataIndex
:
'option'
,
align
:
'center'
,
render
:
(
_
,
record
)
=>
(
<>
<
AuthButton
btnCode=
'merchantCouponNotVerify2.examine'
menuCode=
'marketingAbility'
>
<
Button
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/merchantCoupon/notVerify2/verify?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Review'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Review'
})
}
</
Button
>
</
AuthButton
>
</>
),
},
...
...
@@ -101,11 +104,11 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
handleBatchVerify
=
()
=>
{
if
(
!
selectedRowKeys
.
length
)
{
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
return
;
}
confirm
({
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
intl
.
formatMessage
({
id
:
'merchantCoupon.DeterminepassCoupon'
}),
onOk
()
{
...
...
@@ -131,9 +134,12 @@ const MerchantCouponNotVerify1: React.FC = () => {
const
ControllerBtns
=
()
=>
(
<
Space
size=
{
16
}
>
<
AuthButton
btnCode=
'merchantCouponNotVerify2.batch'
menuCode=
'marketingAbility'
>
<
Button
onClick=
{
handleBatchVerify
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
</
AuthButton
>
</
Space
>
);
...
...
src/pages/transaction/marketingAbility/merchantCoupon/merchantCouponToConfirm/index.tsx
View file @
9d62b917
...
...
@@ -28,7 +28,8 @@ import useSpliceArray from '@/hooks/useSpliceArray';
import
verifySchema
from
'../common/schemas/verify'
;
import
commonColumn
from
'../common/columns/coupon'
;
import
{
getMarketingCouponTypeList
,
getMarketingCouponWaitSubmitPage
,
postMarketingCouponWaitSubmitSubmitBatch
}
from
'@/services/MarketingV2Api'
;
import
{
useIntl
}
from
'umi'
import
{
useIntl
}
from
'umi'
import
AuthButton
from
'@/components/AuthButton'
const
{
confirm
}
=
Modal
;
...
...
@@ -63,15 +64,18 @@ const MerchantCouponToConfirm: React.FC = () => {
const
defaultColumns
=
commonColumn
(
'/memberCenter/marketingAbility/merchantCoupon/toConfirm/detail'
).
concat
([
{
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.operation'
})}
`
,
dataIndex
:
'option'
,
align
:
'center'
,
render
:
(
_
,
record
)
=>
(
<>
<
AuthButton
btnCode=
"toConfirm.Submit"
menuCode=
'marketingAbility'
>
<
Button
type=
"link"
onClick=
{
()
=>
history
.
push
(
`/memberCenter/marketingAbility/merchantCoupon/toConfirm/verify?id=${record.id}`
)
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.submit'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.submit'
})
}
</
Button
>
</
AuthButton
>
</>
),
},
...
...
@@ -102,11 +106,11 @@ const MerchantCouponToConfirm: React.FC = () => {
const
handleBatchVerify
=
()
=>
{
if
(
!
selectedRowKeys
.
length
)
{
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
message
.
warning
(
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.Nocouponsareselected'
})}
`
);
return
;
}
confirm
({
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
title
:
`
${
intl
.
formatMessage
({
id
:
'merchantCoupon.tip'
})}
`
,
icon
:
<
QuestionCircleOutlined
/>,
content
:
intl
.
formatMessage
({
id
:
'merchantCoupon.DeterminepassCoupon'
}),
onOk
()
{
...
...
@@ -134,7 +138,7 @@ const MerchantCouponToConfirm: React.FC = () => {
<
Space
size=
{
16
}
>
<
Button
onClick=
{
handleBatchVerify
}
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
>
{
intl
.
formatMessage
({
id
:
'merchantCoupon.Batchauditpassed'
})
}
</
Button
>
</
Space
>
);
...
...
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