guhongwei před 4 roky
rodič
revize
7a9439fce3

+ 1 - 0
src/views/adminCenter/company/cashing/coupons/couponsResult.vue

@@ -56,6 +56,7 @@ export default {
   methods: {
     ...cashing(['query']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
+      info.company_id = this.user.id;
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);

+ 1 - 0
src/views/adminCenter/company/cashing/coupons/index.vue

@@ -52,6 +52,7 @@ export default {
   methods: {
     ...declareOrder(['query']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
+      info.user_id = this.user.id;
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);

+ 1 - 0
src/views/adminCenter/company/cashing/reward/rewardResult.vue

@@ -54,6 +54,7 @@ export default {
     ...rewardOrder(['query']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
       info.type = this.type;
+      info.company_id = this.user.id;
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);

+ 1 - 0
src/views/adminCenter/company/coupons/couponsResult.vue

@@ -51,6 +51,7 @@ export default {
   methods: {
     ...couponsApply(['query']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
+      info.user_id = this.user.id;
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);

+ 1 - 1
src/views/adminCenter/company/reward/index.vue

@@ -64,7 +64,7 @@ export default {
     ...reward(['query']),
     async search({ skip = 0, limit = 10, ...info } = {}) {
       info.type = this.type;
-      info.user_id - this.user.id;
+      info.user_id = this.user.id;
       const res = await this.query({ skip, limit, ...info });
       if (this.$checkRes(res)) {
         this.$set(this, `list`, res.data);