SOURCE

//   默认的分页方法 没用查询条件
  queryAssetList(pageNum: number) {
    this.queryParams.managerId = this.loginUser.userId;
    let mergeParams = Object.assign(this.queryParams, this.searchAsset);
    this.queryParams = AssetsApi.queryAllAsset(mergeParams, pageNum, this.pageSize).then(
      (res) => {
        this.assetList = res.data.list;
        this.currentPage = pageNum;
        this.pageCount = res.data.count;
      },
      (error) => {
        this.$message({
          message: error.response.data.errorMsg,
          type: "error",
        });
      }
    );
  }
// 点击了查询的 方法
   searchInAssets(pageNum: number) {
    this.isSearch = true;
    if (this.selectTime == null) {
      delete this.searchAsset.startTime;
      delete this.searchAsset.endTime;
    }
    if (this.selectTime && this.selectTime.length > 1) {
      this.searchAsset.startTime = this.selectTime[0].getTime();
      this.searchAsset.endTime = this.selectTime[1].getTime();
    }
    this.searchAsset.managerId = this.loginUser.userId;
    this.depreciationTotal = "--"; //累计折旧
    this.surplusValueTotal = "--"; //资产净值
    this.fixedAssetTotal = "--"; //固定资产(税后)
    this.consumablesAssetTotal = "--"; //低值易耗品(税后)
    this.materialAssetTotal = "--"; //物料(税后)

    AssetsApi.queryAllAsset(this.searchAsset, pageNum, this.pageSize).then(
      (res) => {
        this.assetList = res.data.list;
        this.currentPage = pageNum;
        this.pageCount = res.data.count;
      },
      (error) => {
        this.$message({
          message: error.response.data.errorMsg,
          type: "error",
        });
      }
    );
  }

  // 点击详情的接口会塞入  assetMovingHistoryNew
    startDetail(row: Asset) {
    localStorage.setItem("assetsTabIndex", this.activeName);
    localStorage.setItem(
      "assetMovingHistoryNew",
      JSON.stringify(row.assetMovingHistoryNew)
    );
    this.$router.push({
      path: "/assets/assetDetails",
      query: {
        id: row.assetId,
        beFrom: "admin",
      },
    });
  }
 // /asset/asset-stock/list
  // 所以要看  searchInAssets 和 queryAssetList 这两个接口
  // 会不会返回 assetMovingHistoryNew 这个值

 // 以及确定下 999990 还是87 那个值是对的
console 命令行工具 X clear

                    
>
console