guhongwei 5 éve
szülő
commit
e4b1a85ace

+ 0 - 4
src/layout/class/achieveList/homeworkAchiece.vue

@@ -71,13 +71,9 @@ export default {
       this.showPicker = false;
       this.showPicker = false;
     },
     },
     clickcds(id) {
     clickcds(id) {
-      console.log(id);
       this.$emit('submitss', { id: id });
       this.$emit('submitss', { id: id });
     },
     },
     clickBtn(taskid, name, score) {
     clickBtn(taskid, name, score) {
-      console.log(taskid);
-      console.log(name);
-
       this.$emit('clickDialog', { id: taskid, name: name, score: score });
       this.$emit('clickDialog', { id: taskid, name: name, score: score });
     },
     },
     onSubmit() {
     onSubmit() {

+ 0 - 1
src/layout/class/classInfo.vue

@@ -142,7 +142,6 @@ export default {
         classinfo.lyteacher = res.data.name;
         classinfo.lyteacher = res.data.name;
       }
       }
       this.$set(this, `classinfo`, classinfo);
       this.$set(this, `classinfo`, classinfo);
-      console.log(classinfo);
     },
     },
   },
   },
 };
 };

+ 0 - 12
src/layout/class/classStuList.vue

@@ -107,8 +107,6 @@ export default {
     async searchInfo() {
     async searchInfo() {
       let classid = this.id;
       let classid = this.id;
       const res = await this.list({ classid });
       const res = await this.list({ classid });
-      console.log(res.data);
-
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, `headStuList`, res.data);
         this.$set(this, `headStuList`, res.data);
       }
       }
@@ -117,9 +115,6 @@ export default {
     async clickAssign({ id, item }) {
     async clickAssign({ id, item }) {
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
-      console.log(banzhang);
-      console.log(xuewei.length);
-
       if (xuewei.length == '1') {
       if (xuewei.length == '1') {
         if (banzhang.length == '2') {
         if (banzhang.length == '2') {
           if (item.job == '班长') {
           if (item.job == '班长') {
@@ -130,8 +125,6 @@ export default {
             this.$set(this, `job_list`, this.job4);
             this.$set(this, `job_list`, this.job4);
           }
           }
         } else if (banzhang.length < '2') {
         } else if (banzhang.length < '2') {
-          console.log('cc');
-
           if (item.job == '学委') {
           if (item.job == '学委') {
             this.$set(this, `job_list`, this.job1);
             this.$set(this, `job_list`, this.job1);
           } else {
           } else {
@@ -140,8 +133,6 @@ export default {
         } else if (xuewei.length == '0') {
         } else if (xuewei.length == '0') {
         }
         }
       } else if (xuewei.length == '0') {
       } else if (xuewei.length == '0') {
-        console.log('a');
-
         if (banzhang.length == '0') {
         if (banzhang.length == '0') {
           this.$set(this, `job_list`, this.job1);
           this.$set(this, `job_list`, this.job1);
         } else if (banzhang.length == '2') {
         } else if (banzhang.length == '2') {
@@ -161,10 +152,7 @@ export default {
     },
     },
     //指派职务
     //指派职务
     async onAssignShow(assignForm) {
     async onAssignShow(assignForm) {
-      console.log(assignForm);
-
       let data = this.assignForm;
       let data = this.assignForm;
-
       let res = await this.updates(data);
       let res = await this.updates(data);
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$message({
         this.$message({

+ 0 - 1
src/layout/index/mainData.vue

@@ -59,7 +59,6 @@ export default {
     },
     },
 
 
     click(item) {
     click(item) {
-      console.log(item);
       this.$router.push({ path: '/home/teacher', query: { teaid: item.teaid, lessonid: item._id } });
       this.$router.push({ path: '/home/teacher', query: { teaid: item.teaid, lessonid: item._id } });
     },
     },
   },
   },

+ 1 - 3
src/layout/user/clickBtn.vue

@@ -38,9 +38,7 @@ export default {
   props: {},
   props: {},
   components: {},
   components: {},
   data: () => ({}),
   data: () => ({}),
-  created() {
-    console.log(this.user.type);
-  },
+  created() {},
   computed: {
   computed: {
     ...mapState(['user']),
     ...mapState(['user']),
   },
   },

+ 0 - 15
src/views/class/achieve.vue

@@ -103,7 +103,6 @@ export default {
       if (this.user.type === '1') classid = this.classid;
       if (this.user.type === '1') classid = this.classid;
       else classid = this.user.classid;
       else classid = this.user.classid;
       const res = await this.list({ classid });
       const res = await this.list({ classid });
-      console.log(res.data);
       this.$set(this, `peaceAchieveList`, res.data);
       this.$set(this, `peaceAchieveList`, res.data);
       let classsid = this.user.classid;
       let classsid = this.user.classid;
       const result = await this.uploadtasklist({ classsid });
       const result = await this.uploadtasklist({ classsid });
@@ -117,21 +116,14 @@ export default {
       let stus = [];
       let stus = [];
       for (const val of result.data) {
       for (const val of result.data) {
         let newsid = val.lessonid;
         let newsid = val.lessonid;
-        console.log(newsid);
-
         let classid = this.user.classid;
         let classid = this.user.classid;
         //查询这个班的课程
         //查询这个班的课程
         const lessonInfo = await this.lessonlist({ classid });
         const lessonInfo = await this.lessonlist({ classid });
 
 
         for (const hic of lessonInfo.data) {
         for (const hic of lessonInfo.data) {
           //过滤出有作业的科目
           //过滤出有作业的科目
-          console.log(hic);
           var fff = hic.lessons.filter(item => item.subid === newsid);
           var fff = hic.lessons.filter(item => item.subid === newsid);
-          console.log(fff);
-
           for (const less of fff) {
           for (const less of fff) {
-            console.log(less.subname);
-
             this.$set(this, `subname`, less.subname);
             this.$set(this, `subname`, less.subname);
           }
           }
         }
         }
@@ -144,14 +136,9 @@ export default {
           //创建学生名字相关数组
           //创建学生名字相关数组
           let stu = [{ stuname: stuInfo.data.name, id: val.studentid, lesson: [] }];
           let stu = [{ stuname: stuInfo.data.name, id: val.studentid, lesson: [] }];
           //合并数组
           //合并数组
-
           stus = [...stu, ...stus];
           stus = [...stu, ...stus];
-
           //去掉重复数组对象
           //去掉重复数组对象
           var appArray = _.uniqBy(stus, _.isEqual);
           var appArray = _.uniqBy(stus, _.isEqual);
-
-          console.log(appArray);
-
           //合并数组
           //合并数组
           this.$set(this, `achieveList`, appArray);
           this.$set(this, `achieveList`, appArray);
           let lessonss = [{ name: this.subname, id: val.studentid, taskid: val.id, score: val.score }];
           let lessonss = [{ name: this.subname, id: val.studentid, taskid: val.id, score: val.score }];
@@ -244,8 +231,6 @@ export default {
     },
     },
     //为了获取当前点击学生id和当前学生上传的作业
     //为了获取当前点击学生id和当前学生上传的作业
     async onsist({ id }) {
     async onsist({ id }) {
-      console.log(id);
-
       var arr = this.task.filter(item => item.id === id);
       var arr = this.task.filter(item => item.id === id);
 
 
       this.$set(this, `lesson`, arr);
       this.$set(this, `lesson`, arr);

+ 0 - 14
src/views/class/classStuList.vue

@@ -106,10 +106,7 @@ export default {
     // 查询学生列表-并带有职务
     // 查询学生列表-并带有职务
     async searchInfo() {
     async searchInfo() {
       let classid = this.id;
       let classid = this.id;
-      console.log(classid);
       const res = await this.list({ classid });
       const res = await this.list({ classid });
-      console.log(res.data);
-
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, `headStuList`, res.data);
         this.$set(this, `headStuList`, res.data);
       }
       }
@@ -118,9 +115,6 @@ export default {
     async clickAssign({ id, item }) {
     async clickAssign({ id, item }) {
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
-      console.log(banzhang);
-      console.log(xuewei.length);
-
       if (xuewei.length == '1') {
       if (xuewei.length == '1') {
         if (banzhang.length == '2') {
         if (banzhang.length == '2') {
           if (item.job == '班长') {
           if (item.job == '班长') {
@@ -131,8 +125,6 @@ export default {
             this.$set(this, `job_list`, this.job4);
             this.$set(this, `job_list`, this.job4);
           }
           }
         } else if (banzhang.length < '2') {
         } else if (banzhang.length < '2') {
-          console.log('cc');
-
           if (item.job == '学委') {
           if (item.job == '学委') {
             this.$set(this, `job_list`, this.job1);
             this.$set(this, `job_list`, this.job1);
           } else {
           } else {
@@ -141,8 +133,6 @@ export default {
         } else if (xuewei.length == '0') {
         } else if (xuewei.length == '0') {
         }
         }
       } else if (xuewei.length == '0') {
       } else if (xuewei.length == '0') {
-        console.log('a');
-
         if (banzhang.length == '0') {
         if (banzhang.length == '0') {
           this.$set(this, `job_list`, this.job1);
           this.$set(this, `job_list`, this.job1);
         } else if (banzhang.length == '2') {
         } else if (banzhang.length == '2') {
@@ -155,17 +145,13 @@ export default {
           this.$set(this, `job_list`, this.job1);
           this.$set(this, `job_list`, this.job1);
         }
         }
       }
       }
-
       this.assignShow = true;
       this.assignShow = true;
       const res = await this.fet(id);
       const res = await this.fet(id);
       this.$set(this, `assignForm`, res.data);
       this.$set(this, `assignForm`, res.data);
     },
     },
     //指派职务
     //指派职务
     async onAssignShow(assignForm) {
     async onAssignShow(assignForm) {
-      console.log(assignForm);
-
       let data = this.assignForm;
       let data = this.assignForm;
-
       let res = await this.updates(data);
       let res = await this.updates(data);
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$message({
         this.$message({

+ 0 - 4
src/views/class/info/achieveList/homeworkAchiece.vue

@@ -71,13 +71,9 @@ export default {
       this.showPicker = false;
       this.showPicker = false;
     },
     },
     clickcds(id) {
     clickcds(id) {
-      console.log(id);
       this.$emit('submitss', { id: id });
       this.$emit('submitss', { id: id });
     },
     },
     clickBtn(taskid, name, score) {
     clickBtn(taskid, name, score) {
-      console.log(taskid);
-      console.log(name);
-
       this.$emit('clickDialog', { id: taskid, name: name, score: score });
       this.$emit('clickDialog', { id: taskid, name: name, score: score });
     },
     },
     onSubmit() {
     onSubmit() {

+ 0 - 1
src/views/class/info/classInfo.vue

@@ -142,7 +142,6 @@ export default {
         classinfo.lyteacher = res.data.name;
         classinfo.lyteacher = res.data.name;
       }
       }
       this.$set(this, `classinfo`, classinfo);
       this.$set(this, `classinfo`, classinfo);
-      console.log(classinfo);
     },
     },
   },
   },
 };
 };

+ 0 - 12
src/views/class/info/classStuList.vue

@@ -107,8 +107,6 @@ export default {
     async searchInfo() {
     async searchInfo() {
       let classid = this.id;
       let classid = this.id;
       const res = await this.list({ classid });
       const res = await this.list({ classid });
-      console.log(res.data);
-
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$set(this, `headStuList`, res.data);
         this.$set(this, `headStuList`, res.data);
       }
       }
@@ -117,9 +115,6 @@ export default {
     async clickAssign({ id, item }) {
     async clickAssign({ id, item }) {
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var banzhang = this.headStuList.filter(item => item.job == '班长');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
       var xuewei = this.headStuList.filter(item => item.job == '学委');
-      console.log(banzhang);
-      console.log(xuewei.length);
-
       if (xuewei.length == '1') {
       if (xuewei.length == '1') {
         if (banzhang.length == '2') {
         if (banzhang.length == '2') {
           if (item.job == '班长') {
           if (item.job == '班长') {
@@ -130,8 +125,6 @@ export default {
             this.$set(this, `job_list`, this.job4);
             this.$set(this, `job_list`, this.job4);
           }
           }
         } else if (banzhang.length < '2') {
         } else if (banzhang.length < '2') {
-          console.log('cc');
-
           if (item.job == '学委') {
           if (item.job == '学委') {
             this.$set(this, `job_list`, this.job1);
             this.$set(this, `job_list`, this.job1);
           } else {
           } else {
@@ -140,8 +133,6 @@ export default {
         } else if (xuewei.length == '0') {
         } else if (xuewei.length == '0') {
         }
         }
       } else if (xuewei.length == '0') {
       } else if (xuewei.length == '0') {
-        console.log('a');
-
         if (banzhang.length == '0') {
         if (banzhang.length == '0') {
           this.$set(this, `job_list`, this.job1);
           this.$set(this, `job_list`, this.job1);
         } else if (banzhang.length == '2') {
         } else if (banzhang.length == '2') {
@@ -161,10 +152,7 @@ export default {
     },
     },
     //指派职务
     //指派职务
     async onAssignShow(assignForm) {
     async onAssignShow(assignForm) {
-      console.log(assignForm);
-
       let data = this.assignForm;
       let data = this.assignForm;
-
       let res = await this.updates(data);
       let res = await this.updates(data);
       if (this.$checkRes(res)) {
       if (this.$checkRes(res)) {
         this.$message({
         this.$message({

+ 0 - 5
src/views/user/index.vue

@@ -60,18 +60,13 @@ export default {
     // 查询登录用户信息
     // 查询登录用户信息
     async searchSite() {
     async searchSite() {
       // 1:班主任,4:学生
       // 1:班主任,4:学生
-      console.log(this.user);
       if (this.user.type === '1') {
       if (this.user.type === '1') {
         const res = await this.directorFetch(this.user.userid);
         const res = await this.directorFetch(this.user.userid);
         const arr = await this.deptFetch(res.data.department);
         const arr = await this.deptFetch(res.data.department);
         res.data.department = arr.data.name;
         res.data.department = arr.data.name;
-
-        console.log(res.data);
-
         this.$set(this, `teainfo`, res.data);
         this.$set(this, `teainfo`, res.data);
       } else if (this.user.type === '3') {
       } else if (this.user.type === '3') {
         const res = await this.teacherfetch(this.user.userid);
         const res = await this.teacherfetch(this.user.userid);
-        console.log(res.data);
         this.$set(this, `jiaoshiinfo`, res.data);
         this.$set(this, `jiaoshiinfo`, res.data);
       }
       }
     },
     },