Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit af737713
authored
Oct 27, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复BUG
1 parent
542e1553
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
src/views/rightsCard/index.vue
src/views/rightsCard/index.vue
View file @
af73771
...
...
@@ -746,7 +746,7 @@ export default {
}
,
activityRedEnvelopeList
:
[],
activityRedEnvelopeKey
:
Date
.
now
(),
dialogTitle
:
'新建权益卡'
dialogTitle
:
'新建权益卡'
}
}
,
components
:
{
...
...
@@ -777,13 +777,13 @@ export default {
}
}
,
methods
:
{
async
getActivityRedEnvelopeList
(
merchantId
)
{
const
res
=
await
this
.
$apis
.
equityApi
.
getActivityRedEnvelopeList
({
merchantId
}
)
async
getActivityRedEnvelopeList
(
merchantId
,
activityRedEnvelopeId
=
''
)
{
const
res
=
await
this
.
$apis
.
equityApi
.
getActivityRedEnvelopeList
({
merchantId
,
activityRedEnvelopeId
}
)
this
.
activityRedEnvelopeList
=
res
}
,
chooseRed
(
id
)
{
const
{
activityRedEnvelopeId
}
=
this
.
ruleForm
if
(
activityRedEnvelopeId
&&
activityRedEnvelopeId
==
id
)
id
=
''
const
{
activityRedEnvelopeId
}
=
this
.
ruleForm
if
(
activityRedEnvelopeId
&&
activityRedEnvelopeId
==
id
)
id
=
''
this
.
ruleForm
.
activityRedEnvelopeId
=
id
this
.
activityRedEnvelopeKey
=
Date
.
now
()
}
,
...
...
@@ -952,7 +952,7 @@ export default {
delete
row
.
activityRedEnvelopeResponseList
}
this
.
dialogTitle
=
'编辑权益卡'
this
.
getActivityRedEnvelopeList
(
row
.
merchantId
)
this
.
getActivityRedEnvelopeList
(
row
.
merchantId
,
row
.
activityRedEnvelopeId
)
this
.
ruleForm
=
row
this
.
dialogVisible
=
true
this
.
ruleForm
.
effectiveType
=
row
.
effectiveType
+
''
...
...
@@ -973,7 +973,11 @@ export default {
this
.
disableSelect
=
false
this
.
isAdd
=
true
this
.
dialogVisible
=
true
this
.
getActivityRedEnvelopeList
(
row
.
merchantId
)
if
(
row
.
activityRedEnvelopeResponseList
&&
row
.
activityRedEnvelopeResponseList
.
length
)
{
row
.
activityRedEnvelopeId
=
row
.
activityRedEnvelopeResponseList
[
0
].
activityRedEnvelopeId
delete
row
.
activityRedEnvelopeResponseList
}
this
.
getActivityRedEnvelopeList
(
row
.
merchantId
,
row
.
activityRedEnvelopeId
)
this
.
ruleForm
=
row
this
.
ruleForm
.
effectiveType
=
row
.
effectiveType
+
''
if
(
this
.
ruleForm
.
effectiveType
==
2
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment