lsc 9 달 전
부모
커밋
b730b1b03e
1개의 변경된 파일21개의 추가작업 그리고 0개의 파일을 삭제
  1. 21 0
      src/components/pages/test/check/index.vue

+ 21 - 0
src/components/pages/test/check/index.vue

@@ -846,6 +846,7 @@ export default {
       role: this.$route.query.role,
       cid: this.$route.query.cid,
       isN: this.$route.query.isN,
+      peopleId: this.$route.query.peopleId,
       screenWidth: window.innerWidth,
       isDesktop: false,
       title: "",
@@ -2016,12 +2017,32 @@ export default {
           });
       });
 		},
+    getUserInfo() {
+      let params = {
+        uid: this.peopleId,
+      };
+      this.ajax
+        .get(this.$store.state.api + "selectTestUser", params)
+        .then((res) => {
+          console.log('111111111111111111111',res.data[0][0]);
+          // 用于存储归类后的数据的对象
+          this.checkDataType(2)
+          this.courseName = res.data[0][0].name
+          this.searchCourse()
+        })
+        .catch((err) => {
+          console.error(err);
+        });
+    },
   },
   beforeDestroy() {
     document.getElementsByTagName('html')[0].style.overflow = '';
     window.removeEventListener("resize", this.checkScreenSize);
   },
   mounted() {
+    if(this.peopleId){
+      this.getUserInfo();
+    }
     this.checkScreenSize();
     window.addEventListener("resize", this.checkScreenSize);
     document.getElementsByTagName('html')[0].scrollTop = 0