|
@@ -110,6 +110,10 @@ export default {
|
|
|
type: Array,
|
|
|
default: () => []
|
|
|
},
|
|
|
+ id: {
|
|
|
+ type: [String,Number],
|
|
|
+ default: false,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -214,7 +218,7 @@ export default {
|
|
|
}
|
|
|
this.$emit('input', this.awardsList)
|
|
|
this.$emit('close')
|
|
|
- if (this.ticketType != 'offline') {
|
|
|
+ if (this.ticketType != 'offline' && this.id == 0) {
|
|
|
this.getQuantity();
|
|
|
}
|
|
|
},
|
|
@@ -233,7 +237,7 @@ export default {
|
|
|
handleChangeAll(e, item) {
|
|
|
this.$set(item, "quantity", e);
|
|
|
this.$forceUpdate();
|
|
|
- if (this.ticketType != 'offline') {
|
|
|
+ if (this.ticketType != 'offline' && this.id == 0) {
|
|
|
this.getQuantity();
|
|
|
}
|
|
|
},
|
|
@@ -242,7 +246,7 @@ export default {
|
|
|
handleChange(e, index) {
|
|
|
this.prizeIndex = index;
|
|
|
this.$forceUpdate();
|
|
|
- if (this.ticketType != 'offline') {
|
|
|
+ if (this.ticketType != 'offline' && this.id == 0) {
|
|
|
this.getQuantity();
|
|
|
}
|
|
|
},
|
|
@@ -253,7 +257,7 @@ export default {
|
|
|
let list = item.prizeList;
|
|
|
list.splice(index, 1);
|
|
|
this.$set(item, "prizeList", list);
|
|
|
- if (this.ticketType != 'offline') {
|
|
|
+ if (this.ticketType != 'offline' && this.id == 0) {
|
|
|
this.getQuantity();
|
|
|
}
|
|
|
},
|