From 8aa8d9d4718eb1ccb9e8d639144e56aa682f1435 Mon Sep 17 00:00:00 2001 From: taoxu <2622874537@qq.com> Date: Thu, 7 Dec 2023 17:28:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=B2=E6=9F=93=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages_teacher/teacher_class/class_detail.vue | 43 ++++++++++++++++---- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/pages_teacher/teacher_class/class_detail.vue b/pages_teacher/teacher_class/class_detail.vue index 2c5fd91..620a48c 100644 --- a/pages_teacher/teacher_class/class_detail.vue +++ b/pages_teacher/teacher_class/class_detail.vue @@ -2,7 +2,7 @@ - + @@ -24,11 +24,11 @@ - + 安排作业 - + @@ -51,8 +51,11 @@ 带班老师 - - + + + + {{classinfo.members.length}} + @@ -94,7 +97,7 @@ data() { return { - isShow: false, + isShow: true, operation:[ { @@ -120,7 +123,9 @@ ], classid:0, - classinfo:{} + classinfo:{}, + workinfo:{}, + loading:true } }, onLoad(option) { @@ -130,8 +135,18 @@ }, onShow(){ this.getclassinfo() + this.getworkinfo() }, methods:{ + toaddwork(){ + uni.navigateTo({ + url: "/pages_teacher/teacher_teachers/teacher_addOperation?id=" + this.classinfo.id + }).then(res => { + + }).catch(err => { + + }); + }, getclassinfo() { this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/detail?id=${this.classid}`).then(res => { @@ -140,6 +155,20 @@ this.classinfo=res.data // this.classlist = res.data.list // this.isloding = false + this.loading=false + + + } + }) + }, + getworkinfo() { + this.$u.get(`https://api.admin-v2.langsi.online/admin-api/classroom/work-record?classroomId=${this.classid}`).then(res => { + + + if (res.code == 0) { + this.workinfo=res.data + // this.classlist = res.data.list + // this.isloding = false } })