index.js
471 Bytes
export default {
data() {
return {
activityVisible: '1',
activityId: 0
}
},
methods: {
addActivity() {
this.activityId = 0
this.activityVisible = '2'
},
editActivity(id) {
this.activityId = id
this.activityVisible = true
if (this.$refs.addCoupon) {
this.$refs.addCoupon.getCouponInfo()
}
},
reset() {
this.activityVisible = '1'
this.getAll(this.formInline)
}
}
}