根据提供的代码片段,在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助手提供,问题来源于学员提问




