Explorar o código

修改/ctop/advertiser/list接口参数问题-添加userId

朱鑫波 %!s(int64=3) %!d(string=hai) anos
pai
achega
53a40be804

+ 3 - 1
src/views/modules/advertiser/AdvertiserList.vue

@@ -387,7 +387,7 @@ export default {
     },
   },
   created() {
-    // this.queryParam.userId = this.userInfo().id
+    this.queryParam.userId = this.userInfo().id
     this.getList(null)
   },
   methods: {
@@ -494,6 +494,7 @@ export default {
     },
     ...mapGetters(['nickname', 'avatar', 'userInfo']),
     searchRe() {
+      this.queryParam.userId = this.userInfo().id
       this.queryParam.name = null
       this.queryParam.advertiserId = null
       this.queryParam.productId = null
@@ -505,6 +506,7 @@ export default {
     },
     searchQueryOne() {
       console.log(this.allIdUser)
+      this.queryParam.userId = this.userInfo().id
       if (this.allIdUser.key) {
         if (this.active == 'advertiser') {
           this.queryParam.advertiserId = null

+ 3 - 1
src/views/modules/advertiser/ProjectList.vue

@@ -171,7 +171,7 @@ import ProjectModal from './modules/projectListModal'
 import JTreeSelect from '@/components/jeecg/JTreeSelect'
 import { httpAction, getAction } from '@/api/manage'
 import { JeecgListMixin } from '@/mixins/JeecgListMixin'
-
+import { mapActions, mapGetters } from 'vuex'
 export default {
   name: 'ProjectList',
   mixins: [JeecgListMixin],
@@ -322,11 +322,13 @@ export default {
         }
       })
     },
+    ...mapGetters(['nickname', 'avatar', 'userInfo']),
     getList() {
       var params = {}
       // params.userId = this.userInfo().id
       params.pageSize = 1000
       params.pageNo = 1
+      params.userId = this.userInfo().id
       getAction('/ctop/advertiser/list', params)
         .then((res) => {
           if (res.success) {

+ 1 - 1
src/views/modules/advertiser/modules/ProjectModal.vue

@@ -263,7 +263,7 @@ export default {
     },
     getList() {
       var params = {}
-      // params.userId = this.userInfo().id
+      params.userId = this.userInfo().id
       params.pageSize = 1000
       params.pageNo = 1
       console.log(params)

+ 1 - 1
src/views/modules/advertiser/modules/productModal.vue

@@ -165,7 +165,7 @@
       },
       getList() {
         var params = {}
-        // params.userId = this.userInfo().id
+        params.userId = this.userInfo().id
         params.pageSize = 1000
         params.pageNo = 1
         console.log(params)

+ 1 - 1
src/views/modules/advertiser/modules/projectListModal.vue

@@ -276,7 +276,7 @@ export default {
     },
     getList() {
       var params = {}
-      // params.userId = this.userInfo().id
+      params.userId = this.userInfo().id
       params.pageSize = 1000
       params.pageNo = 1
       getAction(this.url.getList, params)

+ 3 - 1
src/views/modules/earlyWarningRules/historyWarning.vue

@@ -67,6 +67,7 @@
 import JTreeSelect from '@/components/jeecg/JTreeSelect'
 import { httpAction, getAction } from '@/api/manage'
 import Treeselect from './pushTreeSelect.vue'
+import { mapActions, mapGetters } from 'vuex'
 export default {
   name: 'ProjectList',
   components: {
@@ -196,9 +197,10 @@ export default {
         }
       })
     },
+    ...mapGetters(['nickname', 'avatar', 'userInfo']),
     getList() {
       var params = {}
-      // params.userId = this.userInfo().id
+      params.userId = this.userInfo().id
       params.pageSize = 1000
       params.pageNo = 1
       getAction('/ctop/advertiser/list', params)

+ 2 - 2
src/views/modules/kuaishouapp/newBatch/result.vue

@@ -378,7 +378,7 @@ export default {
     },
   },
   created() {
-    // this.queryParam.userId = this.userInfo().id
+    this.queryParam.userId = this.userInfo().id
     this.getList(null)
   },
   methods: {
@@ -387,7 +387,7 @@ export default {
     },
     getList(value) {
       var params = {}
-      // params.userId = this.userInfo().id
+      params.userId = this.userInfo().id
       params.pageSize = 50
       params.pageNo = 1
       params.name = value