guhongwei před 5 roky
rodič
revize
61509bf69f
1 změnil soubory, kde provedl 8 přidání a 6 odebrání
  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);
       }
     },
     // 删除