guhongwei 5 năm trước cách đây
mục cha
commit
38948be6d8
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  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);