wangxy hace 1 semana
padre
commit
fc3b9a06f1
Se han modificado 1 ficheros con 7 adiciones y 5 borrados
  1. 7 5
      src/views/course/courseUserStatistics/index.vue

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

@@ -242,11 +242,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){