React开发(188):参数作为形参传入

  handleGetpageWalletAccount = async (params) => {
    const { pageIndex, pageSize, customerType, customerName, mobile } = this.state;
    try {
      const res = await getpageWalletAccount({
        pageIndex: this.state.pageIndex,
        pageSize: this.state.pageSize,
        ...params,
      });
      console.log(res.data);
      this.setState({ balanceList: res.data.records });
      this.setState({ total: res.data.total });
    } catch (error) {}
  };

上一篇:Linq表达式树系列


下一篇:vue table排序 (正序&倒序