Blame view

src/views/pdasection.vue 661 Bytes
eb6d1150   liuqimichale   title 总计 简单封装
1
  <template>
cb40959e   liuqimichale   添加mock 数据
2
3
    <div>
      <titlesection></titlesection>
841f35d2   liuqimichale   filter
4
      <totalsection :totalNum="totalVal"></totalsection>
cb40959e   liuqimichale   添加mock 数据
5
6
      <div class="flexfm"></div>
    </div>
eb6d1150   liuqimichale   title 总计 简单封装
7
8
9
10
11
  </template>
  
  <script>
  import titlesection from '../components/titlesection'
  import totalsection from '../components/total'
cb40959e   liuqimichale   添加mock 数据
12
13
  import {fetchList} from '../api/api'
  
eb6d1150   liuqimichale   title 总计 简单封装
14
  export default {
cb40959e   liuqimichale   添加mock 数据
15
    name: 'pdasection',
eb6d1150   liuqimichale   title 总计 简单封装
16
17
18
    components: {
      titlesection,
      totalsection
cb40959e   liuqimichale   添加mock 数据
19
    },
841f35d2   liuqimichale   filter
20
21
22
23
24
    data() {
      return {
        totalVal: '1000',
      }
    },
cb40959e   liuqimichale   添加mock 数据
25
26
27
28
29
30
31
32
33
34
35
    created() {
      this.getList()
    },
    methods: {
      getList() {
        fetchList()
          .then(res => {
            console.log(res);
  
          });
      },
eb6d1150   liuqimichale   title 总计 简单封装
36
37
38
39
40
41
42
    }
  }
  </script>
  
  <style scoped>
  
  </style>