Commit a848e31f by 王志慧

fixed

1 parent 65ea12aa
...@@ -179,7 +179,7 @@ export default { ...@@ -179,7 +179,7 @@ export default {
data() { data() {
return { return {
loading: false, loading: false,
activePage: 2, activePage: 1,
templateList: [], templateList: [],
couponList: [], couponList: [],
afterRangePickerOptions, afterRangePickerOptions,
...@@ -305,8 +305,7 @@ export default { ...@@ -305,8 +305,7 @@ export default {
} }
}, },
mounted() { mounted() {
// this.getRedEnvelopeTemplateList()
this.getCouponList()
if (this.configForm.id) this.getRedEnvelopeActivityDetail() if (this.configForm.id) this.getRedEnvelopeActivityDetail()
}, },
methods: { methods: {
...@@ -369,7 +368,8 @@ export default { ...@@ -369,7 +368,8 @@ export default {
getCouponList() { getCouponList() {
let params = { let params = {
pageSize: 10000, pageSize: 10000,
pageNum: 1 pageNum: 1,
status: 2
} }
this.$apis.redenvelope.getCouponList(params).then(res => { this.$apis.redenvelope.getCouponList(params).then(res => {
this.couponList = res.list this.couponList = res.list
...@@ -384,6 +384,7 @@ export default { ...@@ -384,6 +384,7 @@ export default {
}, },
async handleConfirm(val) { async handleConfirm(val) {
if (this.activePage == 1) { if (this.activePage == 1) {
this.getCouponList()
this.result = await this.$refs.configRef.validate() this.result = await this.$refs.configRef.validate()
} }
if (this.result) { if (this.result) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!