过滤器筛选

38 阅读1分钟

for (let index = 0; index < res.data.length; index++) { const element = res.data[index] this.workflowLogList.push(element) if (element.activityName == '已驳回') { return false}}

res.data.items.forEach((element) => {
        if (element.name == "法律法规") {
          return false;
        }
        this.showData.push(element);
      });

      this.$set(this.formData, "gNoticeList", this.showData);