石广澎
2023-12-13 3c9c1a4f8ccbf765c35e44b21c790ef428e12868
admin-web/src/components/myTable/myTableV2.vue
@@ -198,6 +198,7 @@
import mySwitch from '@/components/mySwitch/mySwitch'
import request from '@/utils/request'
import * as valid from '@/utils/validate'
export default {
  components: { myButton, mySwitch },
  props: {
@@ -251,6 +252,7 @@
      myTable: {
        url: '',
        params: {},
        autoLoad: true,
        border: false,
        showIndex: true, // 是否显示序号
        expand: true, // 是否显示详情数据
@@ -347,9 +349,11 @@
            total: 0
          })
        }
        this.$nextTick(() => {
          this.search({ pageNum: 1 })
        })
        if (this.myTable.autoLoad) {
          this.$nextTick(() => {
            this.search({pageNum: 1})
          })
        }
        this.myTable.columns.forEach((column, idx) => {
          if (!column.hidden) {
            this.checkColumns.push(idx)