Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
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
marketing-web
marketing
Commits
f8e3d6d9
Commit
f8e3d6d9
authored
Jun 28, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 排序
parent
738f6757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
prize-config.vue
src/views/game/cmh/prize-config.vue
+5
-1
No files found.
src/views/game/cmh/prize-config.vue
View file @
f8e3d6d9
...
...
@@ -334,6 +334,8 @@ export default {
onEnd
({
newIndex
,
oldIndex
})
{
const
currRow
=
that
.
prizeForm
.
gamePrizeList
.
splice
(
oldIndex
,
1
)[
0
];
that
.
prizeForm
.
gamePrizeList
.
splice
(
newIndex
,
0
,
currRow
);
console
.
log
(
that
.
prizeForm
.
gamePrizeList
);
}
});
},
...
...
@@ -465,8 +467,10 @@ export default {
if
(
val
)
{
let
data
=
{
...
this
.
prizeForm
};
data
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
data
.
gamePrizeList
.
forEach
(
item
=>
{
data
.
gamePrizeList
.
forEach
(
(
item
,
index
)
=>
{
item
.
prizeImageUrl
=
item
.
prizeImageUrl
.
imgUrl
||
''
;
item
.
sort
=
index
;
if
(
item
.
prizeType
==
0
)
{
item
.
prizeStock
=
-
1
;
}
...
...
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