wangting
2024-03-29 1d6d5056c496fdb15b2722bf034de633bf268c93
Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
@@ -6,6 +6,8 @@
               :option="option"
               :page.sync="pageType"
               :table-loading="loading"
               @row-click="rowClickChange"
               @search-change='searchChange'
               @selection-change="selectChange">
      <!--top区域按钮-->
      <template slot="menuLeft" slot-scope="scope">
@@ -513,7 +515,7 @@
      });
    },
    pageType() {
      return this.areasName.indexOf('westArea') == 0  ? this.simplePage : this.page;
      return this.areasName === 'westArea' ? this.simplePage : this.page;
    }
  },
  watch: {
@@ -537,12 +539,6 @@
          this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5;
        }
      }
    },
    sourceData:{
      handler(newval) {
        console.log(this.areasName);
        console.log(newval);
      }
    }
  },
  created() {
@@ -555,8 +551,18 @@
    }
  },
  methods: {
    rowClickChange(row){
      this.$refs.dataTable.toggleRowSelection(row);
    },
    selectChange(row) {
      this.selectList = row;
    },
    TreeSelectChange(row) {
      this.TreeSelectList = row;
    },
    searchChange(form,done){
      console.log(form)
      done()
      this.$emit("setDataStore", {
        area: this.areasName,
        dataStore:row