Selaa lähdekoodia

提交代码测试

朱鑫波 3 vuotta sitten
vanhempi
commit
33276ddfd4

+ 3 - 1
src/mixins/JeecgListMixin.js

@@ -9,6 +9,7 @@ import {deleteAction, getAction, downFile} from '@/api/manage'
 import Vue from 'vue'
 import {ACCESS_TOKEN} from "@/store/mutation-types"
 import { transformTozTreeFormat } from '@/utils/util.js'
+import {mapGetters} from 'vuex';
 export const JeecgListMixin = {
   data() {
     return {
@@ -63,6 +64,7 @@ export const JeecgListMixin = {
     this.initDictConfig();
   },
   methods: {
+    ...mapGetters(['nickname', 'avatar', 'userInfo']),
     // 二级树
     expand(expanded,record){
         if(this.url.listTwo){
@@ -144,7 +146,7 @@ export const JeecgListMixin = {
       // if(params.endDate){
       //   params.endDate = moment(params.endDate).format('YYYY-MM-DD')
       // }
-
+      params.userId = this.userInfo().id
       this.loading = true;
       await getAction(this.url.list, params).then((res) => {
         if (res.success) {

+ 3 - 0
src/mixins/videoMaterialMixin.js

@@ -9,6 +9,7 @@
  import Vue from 'vue'
  import {ACCESS_TOKEN} from "@/store/mutation-types"
  import { transformTozTreeFormat } from '@/utils/util.js'
+ import {mapGetters} from 'vuex';
  export const JeecgListMixin = {
    data() {
      return {
@@ -93,6 +94,7 @@
              }
          }
      },
+     ...mapGetters(['nickname', 'avatar', 'userInfo']),
      async loadData(arg) {
        this.cancel()
        this.spinning= true
@@ -144,6 +146,7 @@
         params.syncBytedance = null
       }
        this.loading = true;
+       params.userId = this.userInfo().id
        await getAction(this.url.list, params).then((res) => {
          if (res.success) {
            this.loading = false;

+ 4 - 4
src/views/modules/advertiser/ProjectList.vue

@@ -362,10 +362,10 @@ export default {
         })
         .finally(() => {})
     },
-    searchQuery(){
-      this.queryParam.userId = this.userInfo().id;
-      this.getList();
-    },
+    // searchQuery(){
+    //   this.queryParam.userId = this.userInfo().id;
+    //   this.getList();
+    // },
     filterOption(input, option) {
       return option.componentOptions.children[0].text.toLowerCase().indexOf(input.toLowerCase()) >= 0
     },