Merge branch 'master' into share-lib
This commit is contained in:
commit
f603906409
@ -401,6 +401,7 @@ export default {
|
|||||||
const dataType = this.isDev ? 'dev' : 'pro'
|
const dataType = this.isDev ? 'dev' : 'pro'
|
||||||
this.isLoaded = true
|
this.isLoaded = true
|
||||||
getRewards({
|
getRewards({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
game_id: this.gameInfo.game_id,
|
game_id: this.gameInfo.game_id,
|
||||||
currentPage: this.currentPage,
|
currentPage: this.currentPage,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
@ -470,6 +471,7 @@ export default {
|
|||||||
this.modalForm.game_id = this.gameInfo.game_id
|
this.modalForm.game_id = this.gameInfo.game_id
|
||||||
this.modalForm.isDev = true
|
this.modalForm.isDev = true
|
||||||
this.modalForm.published = false
|
this.modalForm.published = false
|
||||||
|
this.modalForm.uid = this.gameInfo._id
|
||||||
|
|
||||||
delete this.modalForm.keysStr
|
delete this.modalForm.keysStr
|
||||||
|
|
||||||
@ -493,6 +495,9 @@ export default {
|
|||||||
const devData = JSON.parse(JSON.stringify(row))
|
const devData = JSON.parse(JSON.stringify(row))
|
||||||
const proData = JSON.parse(JSON.stringify(row))
|
const proData = JSON.parse(JSON.stringify(row))
|
||||||
|
|
||||||
|
devData.uid = this.gameInfo._id
|
||||||
|
proData.uid = this.gameInfo._id
|
||||||
|
|
||||||
devData.isDev = true
|
devData.isDev = true
|
||||||
devData.published = true
|
devData.published = true
|
||||||
proData.isDev = false
|
proData.isDev = false
|
||||||
@ -518,6 +523,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
switchRewardsState({
|
switchRewardsState({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: [row._id],
|
ids: [row._id],
|
||||||
type: true,
|
type: true,
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
@ -545,6 +551,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
switchRewardsState({
|
switchRewardsState({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: [row._id],
|
ids: [row._id],
|
||||||
type: false,
|
type: false,
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
@ -572,6 +579,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(() => {
|
.then(() => {
|
||||||
delRewards({
|
delRewards({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: [row._id],
|
ids: [row._id],
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
})
|
})
|
||||||
@ -609,6 +617,7 @@ export default {
|
|||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
switchRewardsState({
|
switchRewardsState({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: ids,
|
ids: ids,
|
||||||
type: true,
|
type: true,
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
@ -647,6 +656,7 @@ export default {
|
|||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
switchRewardsState({
|
switchRewardsState({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: ids,
|
ids: ids,
|
||||||
type: false,
|
type: false,
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
@ -685,6 +695,7 @@ export default {
|
|||||||
)
|
)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
delRewards({
|
delRewards({
|
||||||
|
uid: this.gameInfo._id,
|
||||||
ids: ids,
|
ids: ids,
|
||||||
isDev: this.isDev
|
isDev: this.isDev
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user