Authored by TaoHuang

fix tab

@@ -34,6 +34,8 @@ export default { @@ -34,6 +34,8 @@ export default {
34 new Date().getMonth() + 1 34 new Date().getMonth() + 1
35 ]}); 35 ]});
36 36
  37 + this.setTab({value: 0});
  38 +
37 const result = await this.fetchOrderDetailList(); 39 const result = await this.fetchOrderDetailList();
38 40
39 this.$refs.list.forceUpdate(result); 41 this.$refs.list.forceUpdate(result);
@@ -43,7 +45,8 @@ export default { @@ -43,7 +45,8 @@ export default {
43 }, 45 },
44 methods: { 46 methods: {
45 ...mapMutations({ 47 ...mapMutations({
46 - setDate: 'SET_DATE' 48 + setDate: 'SET_DATE',
  49 + setTab: 'SET_TAB'
47 }), 50 }),
48 ...mapActions(['fetchOrderDetailList']), 51 ...mapActions(['fetchOrderDetailList']),
49 dateHandler() { 52 dateHandler() {
@@ -81,7 +84,7 @@ export default { @@ -81,7 +84,7 @@ export default {
81 84
82 <style lang="scss" scoped> 85 <style lang="scss" scoped>
83 /deep/ .layout-context { 86 /deep/ .layout-context {
84 - background-color: #fefefe!important; 87 + background-color: #fefefe !important;
85 } 88 }
86 89
87 .date-filter-wrapper { 90 .date-filter-wrapper {