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);