From 75d06e5df404557b2955f33e948ef8c530729631 Mon Sep 17 00:00:00 2001
From: DYZ_ZHENG <920608700@qq.com>
Date: Mon, 13 Sep 2021 16:51:27 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E6=8F=90=E4=BA=A41?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/course/Course.vue | 2 +-
src/components/teacher/TeacherClassHour.vue | 36 +++++++++++++++++++++
2 files changed, 37 insertions(+), 1 deletion(-)
diff --git a/src/components/course/Course.vue b/src/components/course/Course.vue
index c4782f0..c342870 100644
--- a/src/components/course/Course.vue
+++ b/src/components/course/Course.vue
@@ -294,7 +294,7 @@
question_id: '',
forecast_id: '',
// 课程id
- courseId: '',
+ F: '',
// chNum: '',
// 预测板块-----start------
diff --git a/src/components/teacher/TeacherClassHour.vue b/src/components/teacher/TeacherClassHour.vue
index 6fc6d8c..b3cee5c 100644
--- a/src/components/teacher/TeacherClassHour.vue
+++ b/src/components/teacher/TeacherClassHour.vue
@@ -10,6 +10,7 @@
+ 修改课时题目
@@ -33,6 +34,18 @@
+
+
+ {{'('+forecast_ques[0].type_name+')'+forecast_ques[0].question_stem}}
+
+
2
@@ -40,6 +53,14 @@
export default {
data() {
return {
+ forecost_dialogVisible: false,
+ // 预测板块
+ forecast_ques: [
+ {
+ type_name: '',
+ question_stem: ''
+ }
+ ],
// 课程id
courseId: '',
url: 'https://onebook-wdq.oss-cn-beijing.aliyuncs.com/ckjy/water-light.PNG',
@@ -56,8 +77,23 @@
created() {
this.getCourseId()
this.getClasshourList()
+
+ this.getForecostQuestionList()
},
methods: {
+ //预测板块题目
+ getForecostQuestionList () {
+ const params = new URLSearchParams()
+ params.append('ch_id', this.chId)
+ this.$http.post(`/student/forecast/getQuestionList`, params)
+ .then(({ data }) => {
+ if (data && data.code === 0) {
+ this.forecast_ques = data.data
+ } else {
+ this.$message.error(data.msg)
+ }
+ })
+ },
getCourseId() {
this.courseId = localStorage.getItem('courseId')
// 去掉双引号
--
Gitee
From 799b578f747c38fe0f32cbc9ac21c04c10cf98b7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=8E=8B=E6=A0=8B=E5=8D=BF?=
Date: Mon, 13 Sep 2021 17:09:40 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E5=90=88=E5=B9=B6master?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/teacher/TeacherClassHour.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/teacher/TeacherClassHour.vue b/src/components/teacher/TeacherClassHour.vue
index c3cf7a9..f411157 100644
--- a/src/components/teacher/TeacherClassHour.vue
+++ b/src/components/teacher/TeacherClassHour.vue
@@ -48,7 +48,7 @@
-2
+
diff --git a/src/components/teacher/CourseData.vue b/src/components/teacher/CourseData.vue
index 60dc3ed..9d51d69 100644
--- a/src/components/teacher/CourseData.vue
+++ b/src/components/teacher/CourseData.vue
@@ -27,7 +27,7 @@
label="操作"
width="100">
- 编辑
+ 修改题目
@@ -47,17 +47,131 @@
+
+
+
+
+
+
+
+
+
+ 修改题目
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+
+
+
+
+
+
+
+ 修改题目
+
+
+
+
+
+
+
+
+
+
+ 确定
+ 取消
+
+
+
+