guhongwei 5 years ago
parent
commit
38948be6d8
1 changed files with 3 additions and 2 deletions
  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);