guhongwei 5 years ago
parent
commit
61509bf69f
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/views/enterpriseProduct/index.vue

+ 8 - 6
src/views/enterpriseProduct/index.vue

@@ -55,15 +55,17 @@ export default {
         status = this.forms.status;
         skip = this.skip;
         let code = this.user.code;
-        const arr = await this.comquery({ status, code, ...info });
-        this.$set(this, `recruitInfo`, arr.res);
-        this.$set(this, `total`, arr.res.length);
+        let pid = this.user.uid;
+        const arr = await this.comquery({ status, code, pid, ...info });
+        this.$set(this, `recruitInfo`, arr.data);
+        this.$set(this, `total`, arr.data.length);
       } else {
         skip = this.skip;
         let code = this.user.code;
-        const arr = await this.comquery({ status: 3, code, ...info });
-        this.$set(this, `recruitInfo`, arr.res);
-        this.$set(this, `total`, arr.res.length);
+        let pid = this.user.uid;
+        const arr = await this.comquery({ status: 3, code, uid, ...info });
+        this.$set(this, `recruitInfo`, arr.data);
+        this.$set(this, `total`, arr.data.length);
       }
     },
     // 删除