ZBLOG

lastOuery(condition) { this.loading = true; condition.createTime = this.formState.createTime; condition.importDate = this.importDate; this.$http.acm.post( "/gw/api/acm-service/limitManage/getApplyForBatchProcessingQuotaFilelist", ...

根据提供的代码片段,在lastOuery函数中添加判断逻辑,如果importStatus为”A3”,则不展示该条数据。以下是修改后的代码:

lastOuery(condition) {
  this.loading = true;
  condition.createTime = this.formState.createTime;
  condition.importDate = this.importDate;

  this.$http.acm.post(
    "/gw/api/acm-service/limitManage/getApplyForBatchProcessingQuotaFilelist",
    { 
      ...this.formState,
      approvalStatus: "A1",
      importDate: condition.importDate, 
      ...condition
    }
  )
  .then(res => {
    // 过滤掉importStatus为A3的数据
    this.dataSource = res.data.data.filter(item => item.importStatus !== "A3");
    this.pagination.total = res.data.rowCount;
    console.log(res.data.data, 'res.data');
    this.channelData = res.data.data;
    console.log(this.channelData, 'this.channelData');
  })
  .catch(e => {
    this.$message.error(e);
  })
  .finally(() => {
    this.loading = false;
  });
}

在上述代码中,通过使用filter方法过滤了dataSource数组中importStatus为”A3”的数据。这样就可以确保只展示不包含”A3”状态的数据。请注意,上述修改仅针对给出的代码片段进行了处理,并假设在获取到的数据中存在名为 importStatus 的字段。如有其他需求,请相应地调整代码逻辑。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=12279

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?