后台排序

   
 




 methods: {
    
    sortChange(val) {
      if (val.order == "descending") {
        this.desc = "desc";
      } else if (val.order == "ascending") {
        this.desc = "asc";
      } else {
        this.desc = "";
      }
      this.prop = val.prop;

      this.getDataList();
    },



   getDataList() {
   
      // let data = Object.assign({}, page, search, currentSearch)
      var data = {
        materialName: this.materialName,
        systemCategory: this.formbg.typeId,
        brand: this.brandZh,
        brandLevel: this.formbg.brandLevel,
        currentPage: this.currentPage,
        pageSize: this.pageSize,
        sortBy: this.prop,
        sort: this.desc
      };
      console.log(1111111111111111111111111111, data);

你可能感兴趣的:(后台排序)