فهرست منبع

项目列表修改传参

liubei@c-top.com.cn 3 سال پیش
والد
کامیت
1d83149967
1فایلهای تغییر یافته به همراه8 افزوده شده و 0 حذف شده
  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}`
     },
   },
+  created() {
+    this.queryParam.userId = this.userInfo().id;
+  },
   methods: {
     onChange(text,record) {
       this.spinning=true;
@@ -341,6 +344,7 @@ export default {
         }
       })
     },
+   
     ...mapGetters(['nickname', 'avatar', 'userInfo']),
     getList() {
       var params = {}
@@ -358,6 +362,10 @@ export default {
         })
         .finally(() => {})
     },
+    searchQuery(){
+      this.queryParam.userId = this.userInfo().id;
+      this.getList();
+    },
     filterOption(input, option) {
       return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
     },