田源
2024-11-14 8835c9e1dec836d6d8159e78b9df12ad6402ad98
Source/plt-web/plt-web-ui/src/components/dynamic-components/dynamic-table.vue
@@ -143,6 +143,8 @@
      //表格数据
      tableList: [],
      option: {
        border:true,
        stripe:true,
        index: true,
        addBtn: false,
        editBtn: false,
@@ -228,7 +230,7 @@
        if(newval) {
          this.sourceDataMapParams=this.sourceDataMap();
          this.getParams();
          this.handleRefresh();
          // this.handleRefresh();
        }
      },
      deep: true,
@@ -325,6 +327,7 @@
    },
    onLoad(page, params = {}) {
      if (Object.keys(this.sourceData).length>0 && this.isShow) {
        this.tableList = [];
        this.loading = true;
        getList(page.currentPage, page.pageSize, Object.assign({},this.params,this.query,params)).then(res => {
          let data = [];
@@ -398,6 +401,7 @@
      this.onLoad(this.page,parms);
    },
    searchReset() {
      console.log('searchReset')
      this.query = {};
      this.onLoad(this.page);
    },
@@ -410,6 +414,7 @@
      }
    },
    handleRefresh(type) {
      console.log('handleRefresh')
      this.onLoad(this.page);
    },
    rowExcel() {