Browse Source

projectId

panhui 4 năm trước cách đây
mục cha
commit
58951402c2

+ 5 - 0
src/main/comos/src/mixins/list.js

@@ -27,6 +27,11 @@ export default {
                 };
             }
 
+            data.query = {
+                ...data.query,
+                projectId: this.$store.state.projectId
+            };
+
             if (this.httpType === 'get') {
                 this.$http.get(this.url, data, { body: 'json' }).then(res => {
                     if (res.first) {

+ 2 - 1
src/main/comos/src/store/index.js

@@ -8,7 +8,8 @@ export default createStore({
         firstUrl: '',
         couponInfo: null,
         invitor: null,
-        review: false
+        review: false,
+        projectId: 1
     },
     mutations: {
         setFinished(state, finished) {

+ 1 - 1
src/main/comos/src/views/Creator.vue

@@ -62,7 +62,7 @@ export default {
                     '/user/all',
                     {
                         page: this.page,
-                        query: { hasRole: 'ROLE_MINTER' },
+                        query: { hasRole: 'ROLE_MINTER', projectId: this.$store.state.projectId },
                         size: 20,
                         sort: this.sort
                     },

+ 8 - 5
src/main/comos/src/views/Discover.vue

@@ -2,7 +2,7 @@
     <div class="discover">
         <van-sticky ref="top" :offset-top="bar.value.show ? 46 : 0">
             <div class="top">
-                <img src="@assets/nav_logo.png" class="logo" alt="" />
+                <!-- <img src="@assets/nav_logo.png" class="logo" alt="" /> -->
 
                 <div class="search" @click="$router.push('/productSearch')">
                     <img src="@assets/icon-sosuo.png" alt="" />
@@ -195,7 +195,8 @@ export default {
                             type: type,
                             onShelf: true,
                             del: false,
-                            source: source
+                            source: source,
+                            projectId: this.$store.state.projectId
                         },
                         sort: sort
                     },
@@ -211,7 +212,8 @@ export default {
                     '/banner/all',
                     {
                         query: {
-                            type: 'DISCOVER'
+                            type: 'DISCOVER',
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'sort,asc;createdAt,desc'
                     },
@@ -238,7 +240,8 @@ export default {
                         query: {
                             onShelf: true,
                             del: false,
-                            source: 'OFFICIAL,TRANSFER'
+                            source: 'OFFICIAL,TRANSFER',
+                            projectId: this.$store.state.projectId
                         },
                         sort: this.sortOptions['更多藏品']
                     },
@@ -260,7 +263,7 @@ export default {
                     '/user/all',
                     {
                         page: 0,
-                        query: { hasRole: 'ROLE_MINTER' },
+                        query: { hasRole: 'ROLE_MINTER', projectId: this.$store.state.projectId },
                         size: 5,
                         sort: 'sales,desc'
                     },

+ 4 - 2
src/main/comos/src/views/DiscoverPre.vue

@@ -120,7 +120,8 @@ export default {
                     '/banner/all',
                     {
                         query: {
-                            type: 'DISCOVER'
+                            type: 'DISCOVER',
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'sort,asc;createdAt,desc'
                     },
@@ -146,7 +147,8 @@ export default {
                         size: 20,
                         query: {
                             onShelf: true,
-                            del: false
+                            del: false,
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'createdAt,desc'
                     },

+ 5 - 3
src/main/comos/src/views/Home.vue

@@ -104,7 +104,8 @@ export default {
                     '/banner/all',
                     {
                         query: {
-                            type: 'HOME'
+                            type: 'HOME',
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'sort,asc;createdAt,desc'
                     },
@@ -130,7 +131,8 @@ export default {
                         size: 20,
                         query: {
                             onShelf: true,
-                            del: false
+                            del: false,
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'createdAt,desc'
                     },
@@ -152,7 +154,7 @@ export default {
                     '/user/all',
                     {
                         page: 0,
-                        query: { hasRole: 'ROLE_MINTER' },
+                        query: { hasRole: 'ROLE_MINTER', projectId: this.$store.state.projectId },
                         size: 5,
                         sort: 'sales,desc'
                     },

+ 5 - 3
src/main/comos/src/views/HomePre.vue

@@ -119,7 +119,8 @@ export default {
                     '/banner/all',
                     {
                         query: {
-                            type: 'HOME'
+                            type: 'HOME',
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'sort,asc;createdAt,desc'
                     },
@@ -150,7 +151,8 @@ export default {
                         query: {
                             type: type,
                             onShelf: true,
-                            del: false
+                            del: false,
+                            projectId: this.$store.state.projectId
                         },
                         sort: 'createdAt,desc'
                     },
@@ -166,7 +168,7 @@ export default {
                     '/user/all',
                     {
                         page: 0,
-                        query: { hasRole: 'ROLE_MINTER' },
+                        query: { hasRole: 'ROLE_MINTER', projectId: this.$store.state.projectId },
                         size: 5,
                         sort: 'sales,desc'
                     },

+ 2 - 1
src/main/comos/src/views/Mine.vue

@@ -181,7 +181,8 @@ export default {
                     '/identityAuth/all',
                     {
                         query: {
-                            userId: this.$store.state.userInfo.id
+                            userId: this.$store.state.userInfo.id,
+                            projectId: this.$store.state.projectId
                         }
                     },
                     { body: 'json' }

+ 2 - 1
src/main/comos/src/views/Store.vue

@@ -221,7 +221,8 @@ export default {
                 sort: this.sort,
                 query: {
                     userId: this.$store.state.userInfo.id,
-                    ...this.beforeQuery()
+                    ...this.beforeQuery(),
+                    projectId: this.$store.state.projectId
                 }
             };
             this.$http

+ 6 - 2
src/main/comos/src/views/Submit.vue

@@ -236,7 +236,11 @@ export default {
                 .post(
                     '/userCoupon/all',
                     {
-                        query: { userId: this.$store.state.userInfo.id, used: false }
+                        query: {
+                            userId: this.$store.state.userInfo.id,
+                            used: false,
+                            projectId: this.$store.state.projectId
+                        }
                     },
                     { body: 'json' }
                 )
@@ -407,7 +411,7 @@ export default {
                     break;
             }
         }
-    },
+    }
 };
 </script>
 

+ 2 - 1
src/main/comos/src/views/account/VerifiedSuc.vue

@@ -92,7 +92,8 @@ export default {
                 '/identityAuth/all',
                 {
                     query: {
-                        userId: this.$store.state.userInfo.id
+                        userId: this.$store.state.userInfo.id,
+                        projectId: this.$store.state.projectId
                     }
                 },
                 { body: 'json' }

+ 1 - 1
src/main/comos/src/views/creator/Detail.vue

@@ -265,7 +265,7 @@ export default {
                     '/user/all',
                     {
                         page: 0,
-                        query: { hasRole: 'ROLE_MINTER' },
+                        query: { hasRole: 'ROLE_MINTER', projectId: this.$store.state.projectId },
                         size: 3,
                         sort: 'sales,desc'
                     },

+ 2 - 1
src/main/comos/src/views/product/Detail.vue

@@ -419,7 +419,8 @@ export default {
                             '/blindBoxItem/all',
                             {
                                 query: {
-                                    blindBoxId: res.id
+                                    blindBoxId: res.id,
+                                    projectId: this.$store.state.projectId
                                 }
                             },
                             { body: 'json' }

+ 2 - 1
src/main/comos/src/views/product/DetailMode.vue

@@ -239,7 +239,8 @@ export default {
                             '/blindBoxItem/all',
                             {
                                 query: {
-                                    blindBoxId: res.id
+                                    blindBoxId: res.id,
+                                    projectId: this.$store.state.projectId
                                 }
                             },
                             { body: 'json' }

+ 2 - 1
src/main/comos/src/views/product/DetailPre.vue

@@ -237,7 +237,8 @@ export default {
                             '/blindBoxItem/all',
                             {
                                 query: {
-                                    blindBoxId: res.id
+                                    blindBoxId: res.id,
+                                    projectId: this.$store.state.projectId
                                 }
                             },
                             { body: 'json' }