Browse Source

项目列表修改传参

liubei@c-top.com.cn 3 years ago
parent
commit
1d83149967
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/modules/advertiser/ProjectList.vue

+ 8 - 0
src/views/modules/advertiser/ProjectList.vue

@@ -320,6 +320,9 @@ export default {
       return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
       return `${window._CONFIG['domianURL']}/${this.url.importExcelUrl}`
     },
     },
   },
   },
+  created() {
+    this.queryParam.userId = this.userInfo().id;
+  },
   methods: {
   methods: {
     onChange(text,record) {
     onChange(text,record) {
       this.spinning=true;
       this.spinning=true;
@@ -341,6 +344,7 @@ export default {
         }
         }
       })
       })
     },
     },
+   
     ...mapGetters(['nickname', 'avatar', 'userInfo']),
     ...mapGetters(['nickname', 'avatar', 'userInfo']),
     getList() {
     getList() {
       var params = {}
       var params = {}
@@ -358,6 +362,10 @@ export default {
         })
         })
         .finally(() => {})
         .finally(() => {})
     },
     },
+    searchQuery(){
+      this.queryParam.userId = this.userInfo().id;
+      this.getList();
+    },
     filterOption(input, option) {
     filterOption(input, option) {
       return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
       return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
     },
     },