|
|
@@ -249,6 +249,7 @@ export default {
|
|
|
this.clearResult()
|
|
|
this.drawOption = message;
|
|
|
this.drawList = [];
|
|
|
+ this.count();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
@@ -364,6 +365,7 @@ export default {
|
|
|
} else {
|
|
|
console.log("store error");
|
|
|
}
|
|
|
+ this.count();
|
|
|
this.clearResult();
|
|
|
});
|
|
|
}
|
|
|
@@ -445,7 +447,7 @@ export default {
|
|
|
this.isDrawn = false;
|
|
|
},
|
|
|
count() {
|
|
|
- useJwt.postData('/api/prize/count_by_prize', { prize_id: this.prizeId }).then(res => {
|
|
|
+ useJwt.postData('/api/prize/count_by_prize', { prize_id: this.drawOption.prize_id }).then(res => {
|
|
|
this.drawnCount = res.data.drawnCount;
|
|
|
this.notDrawnCount = res.data.notDrawnCount;
|
|
|
});
|