zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<template>
  <div class="search-form">
    <div style="height: 40px;">{{ tableTitle }}</div>
    <CommTable
      
      :total="total"
      :loading="loading"
      :list="records"
      :header="tableHeader"
      v-bind="$attrs"
    ></CommTable>
  </div>
</template>
<script>
import CommTable from '@/components/CommTable'
import dayjs from 'dayjs'
export default {
  components: {
    CommTable
  },
  props: {
    tableTitle: {
      type: String,
      required: true
    },
    model: {
      type: Object,
      required: true
    },
  },
  data() {
    return {
      pageInfo: {
        currentPage: 1,
        pageSize: 10
      },
      total: 0,
      records: [],
      loading: false,
      tableHeader: [],
    }
  },
  created() {
    this.init()
  },
  methods: {
    async init() {
      this.tableHeader = this.model.tableList
      const result = await this.model.request({queryMonth:dayjs().format('YYYY/MM')})
      if(result.list) {
        this.records = result.list
      }
    }
  }
}
</script>
 
 
<style lang="postcss" scoped>
 
</style>