guhongwei 5 年之前
父节点
当前提交
38948be6d8
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/views/enterpriseProduct/index.vue

+ 3 - 2
src/views/enterpriseProduct/index.vue

@@ -45,8 +45,9 @@ export default {
     async search({ skip = 0, limit = 10, ...info } = {}) {
       skip = this.skip;
       const res = await this.query({ skip, limit, ...info });
-      this.$set(this, `recruitInfo`, res.data);
-      this.$set(this, `total`, res.total);
+      let newData = res.data.filter(i => i.status != '3');
+      this.$set(this, `recruitInfo`, newData);
+      this.$set(this, `total`, newData.length);
     },
     async deleteData(item) {
       const res = await this.delete(item.id);