Commit 58411841 by 匡雅琴

选项添加全部选项

1 parent 9a093028
...@@ -98,9 +98,11 @@ export default { ...@@ -98,9 +98,11 @@ export default {
}, },
created() { created() {
this.$bus.$on('selectAreaChange', val => { this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val this.area = val
}) })
this.$bus.$on('selectMonthChange', val => { this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val this.month = val
}) })
this.getRetailOverview() this.getRetailOverview()
......
...@@ -88,9 +88,11 @@ export default { ...@@ -88,9 +88,11 @@ export default {
created() { created() {
this.$bus.$on('selectAreaChange', val => { this.$bus.$on('selectAreaChange', val => {
if (val === '全部') val = ''
this.area = val this.area = val
}) })
this.$bus.$on('selectMonthChange', val => { this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val this.month = val
}) })
this.getRetailRank() this.getRetailRank()
......
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
created() { created() {
this.$bus.$on('selectMonthChange', val => { this.$bus.$on('selectMonthChange', val => {
if (val === '全部') val = ''
this.month = val this.month = val
this.getWholesaleNum() this.getWholesaleNum()
}) })
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!