田源
2024-03-22 95110fc987846d9ccfd330bed0b0aefefd395f0f
Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
@@ -1,10 +1,10 @@
<template>
  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
    <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid">
      <avue-crud v-model="form"
                 ref="dataTable"
                 :data="tableList"
                 :option="option"
                 :page.sync="page"
                 :page.sync="pageType"
                 :table-loading="loading"
                 @selection-change="selectChange">
        <!--top区域按钮-->
@@ -55,18 +55,25 @@
      type:Array,
      default: []
    },
    tableType:{
      type:String
    }
  },
  data() {
    return {
      parentHeight:'100%',//当前组件根节点元素高度
      form: {},
      formName: '',
      loading: false,
      visible: false,
      page: {
        pageSize: 10,
        currentPage: 1,
        total: 5,
        total: 50,
      },
      simplePage:{
        currentPage: 1,
        total: 100,
        pagerCount:4,
        layout:"prev, pager, next"
      },
      //表格数据
      tableList: [
@@ -468,14 +475,15 @@
        addBtn: false,
        editBtn: false,
        delBtn: false,
        selection:true,
        selection: true,
        tip:false,
        height: '100%',
        calcHeight: 15,
        indexFixed: false,
        menuFixed: false,
        column: [],
      },
      selectList:[]
      selectList:[],
    }
  },
  computed: {
@@ -494,6 +502,9 @@
        };
      });
    },
    pageType() {
      return this.areasName === 'westArea' ? this.simplePage : this.page;
    }
  },
  watch:{
    parentHeight:{
@@ -530,6 +541,9 @@
  methods: {
    selectChange(row){
      this.selectList = row;
    },
    TreeSelectChange(row){
      this.TreeSelectList = row;
    }
  }
}