Vue 选中表格中的行,并勾选复选框,并查询表格第一页

querySelectedPackageProductList() {
          let param = {
            content: {
              id: this.childParam.content.packageId
            }
          };
          log('查询所有已勾选的列表元素入参', param);
          getPackageList(param).then((resp) => {
            if (200 === resp.status) {

              this.$refs.multipleTable.clearSelection();
              if (resp.content && resp.content.length > 0) {

                this.selectedItemData = resp.content;
                log('查询所有已勾选的列表元素结果集', this.selectedItemData);

                this.selectedItemData.forEach(tagItem => {
                  this.$refs.multipleTable.selection.push(tagItem);
                });

                this.$refs.multipleTablePagination.lastEmittedPage = 1;
                this.param.page.pageNum = 1;
                this.queryPage();
              }

            }
          });
      },

你可能感兴趣的:(Vue 选中表格中的行,并勾选复选框,并查询表格第一页)