Przeglądaj źródła

Merge remote-tracking branch 'origin/master'

ct 1 tydzień temu
rodzic
commit
3744723e86

+ 7 - 5
src/views/course/courseUserStatistics/statistics.vue

@@ -557,11 +557,13 @@ export default {
     this.getDicts("sys_course_project").then(response => {
       this.projectLists = response.data;
     })
-    getUserList().then(res=>{
-      if(res.code === 200) {
-        this.companyUserList = res.data
-      }
-    })
+    if (this.queryParams.companyId != null) {
+      getUserList(this.queryParams.companyId).then(res=>{
+        if(res.code === 200) {
+          this.companyUserList = res.data
+        }
+      })
+    }
   },
   methods: {
     courseChange(row){