|
@@ -603,16 +603,23 @@ export default {
|
|
if (res.status == 200) {
|
|
if (res.status == 200) {
|
|
this.participantsNum = res.data.participantsNum
|
|
this.participantsNum = res.data.participantsNum
|
|
this.state = res.data.state
|
|
this.state = res.data.state
|
|
|
|
+ res.data.luckyDrawPrizeList.map(item => {
|
|
|
|
+ if (!item.prizeRate) {
|
|
|
|
+ item.prizeRate = ''
|
|
|
|
+ }
|
|
|
|
+ if (!item.prizeNum) {
|
|
|
|
+ item.prizeNum = ''
|
|
|
|
+ }
|
|
|
|
+ delete item.id
|
|
|
|
+ delete item.createDate
|
|
|
|
+ delete item.luckyDrawNo
|
|
|
|
+ })
|
|
this.form = Object.assign({}, this.form, res.data)
|
|
this.form = Object.assign({}, this.form, res.data)
|
|
this.form.isPeopleLimit = this.form.isPeopleLimit == 1
|
|
this.form.isPeopleLimit = this.form.isPeopleLimit == 1
|
|
this.form.time = [moment(this.form.activeStartTime), moment(this.form.activeEndTime)]
|
|
this.form.time = [moment(this.form.activeStartTime), moment(this.form.activeEndTime)]
|
|
this.form.zjXz = this.getGzVal(this.form.luckyDrawWinPrizeLimitList, 0)
|
|
this.form.zjXz = this.getGzVal(this.form.luckyDrawWinPrizeLimitList, 0)
|
|
this.form.cjGz = this.getGzVal(this.form.luckyDrawTaskList, 1)
|
|
this.form.cjGz = this.getGzVal(this.form.luckyDrawTaskList, 1)
|
|
- this.form.luckyDrawPrizeList.map(item => {
|
|
|
|
- delete item.id
|
|
|
|
- delete item.createDate
|
|
|
|
- delete item.luckyDrawNo
|
|
|
|
- })
|
|
|
|
|
|
+ console.log(this.form.luckyDrawPrizeList)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|