From 88fc295058f346e7d27cfe3851a9a35f9c7aaccc Mon Sep 17 00:00:00 2001
From: libowei <3423564950@qq.com>
Date: Thu, 7 Dec 2023 00:17:07 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E5=88=86=E5=8C=85=E5=A4=84=E7=90=86?=
=?UTF-8?q?=E5=AE=8C=E6=88=90=E5=86=99=E4=BD=9C=E6=B8=B2=E6=9F=93?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
common/http.interceptor.js | 2 +-
.../teacher_teachers/components/audiology.vue | 27 +++++++++----------
.../teacher_teachers/components/compose.vue | 16 +++++++----
3 files changed, 25 insertions(+), 20 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index e15194c..2c5f949 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -41,7 +41,7 @@ const install = (Vue, vm) => {
// 方式四,如果token放在了Storage本地存储中,拦截是每次请求都执行的
// 所以哪怕您重新登录修改了Storage,下一次的请求将会是最新值
// const token = uni.getStorageSync('token');
- const token = " Bearer 47c982b63064436bb905144c082ffba3"
+ const token = " Bearer ce1a0c1ec5344cefbc7a185e29353c7c"
// console.log("我是token", token)
config.header.Authorization = token;
// config.header.Tenant-Id=1
diff --git a/pages_teacher/teacher_teachers/components/audiology.vue b/pages_teacher/teacher_teachers/components/audiology.vue
index c135a19..9ac4a7d 100644
--- a/pages_teacher/teacher_teachers/components/audiology.vue
+++ b/pages_teacher/teacher_teachers/components/audiology.vue
@@ -9,14 +9,13 @@
-
+
{{TextItem.name}}
-
@@ -57,18 +56,13 @@
export default {
data() {
return {
- selepad: [],
listHearing: [],
+ itemActive: {}, // 存储每个项目的活动状态
checked: [],
subsets: [],
itemActive: {},
- firstActive:true,
image: true,
tk: null,
- list2: [{
- value: '选项1',
- id: '1'
- }],
}
},
@@ -78,17 +72,22 @@
methods: {
// 听力调取接口渲染
hearing() {
- this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', {
- classify: 1
- }).then(res => {
+ this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', {classify: 1}).then(res => {
this.listHearing = res.data
+ let arr =res.data
+ for(let a of arr){
+ a.active = 'Test 1'
+ }
+ this.listHearing= arr
})
},
// 听力test点击事件
- Bages_addActive(idex, id) {
+ Bages_addActive(idex, id,TextItem) {
this.itemActive[id] = idex
this.$forceUpdate()
-
+
+
+
},
// 点击变化图表
icon(id) {
diff --git a/pages_teacher/teacher_teachers/components/compose.vue b/pages_teacher/teacher_teachers/components/compose.vue
index 8a5fd33..4e33ba1 100644
--- a/pages_teacher/teacher_teachers/components/compose.vue
+++ b/pages_teacher/teacher_teachers/components/compose.vue
@@ -25,7 +25,7 @@
- {{item.name}}
+ {{item.name}}
@@ -41,7 +41,6 @@
return {
transformedData: [],
// 复选框
- subsets:[],
subsetArr:[],
textArr:['test1','test2','test3','test4'],
taskArr:['task1','task2'],
@@ -76,9 +75,16 @@
item.active = text
this.$forceUpdate()
},
- checkboxChange(e){
- this.subsetArr.push(e)
- console.log((this.subsetArr))
+ checkboxChange(e,id){
+ if(id.value) {
+ this.subsetArr.push(e)
+ }else {
+ let index=this.subsetArr.indexOf(e);
+ if(e!==-1) {
+ this.subsetArr.splice(index, 1);
+ }
+ }
+ console.log(this.subsetArr)
}
}
}
From 1f09e30dfe3936653d7486d605769d729f6ae298 Mon Sep 17 00:00:00 2001
From: libowei <3423564950@qq.com>
Date: Thu, 7 Dec 2023 15:09:23 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E5=AF=B9=E5=86=85=E5=AE=B9=E8=BF=9B?=
=?UTF-8?q?=E8=A1=8C=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../teacher_teachers/components/audiology.vue | 17 +-
.../teacher_teachers/teacher_addOperation.vue | 314 ++++++++++++------
2 files changed, 211 insertions(+), 120 deletions(-)
diff --git a/pages_teacher/teacher_teachers/components/audiology.vue b/pages_teacher/teacher_teachers/components/audiology.vue
index 9ac4a7d..a9c3e90 100644
--- a/pages_teacher/teacher_teachers/components/audiology.vue
+++ b/pages_teacher/teacher_teachers/components/audiology.vue
@@ -9,14 +9,14 @@
-
+
{{TextItem.name}}
-
+
@@ -57,7 +57,6 @@
data() {
return {
listHearing: [],
- itemActive: {}, // 存储每个项目的活动状态
checked: [],
subsets: [],
itemActive: {},
@@ -74,16 +73,12 @@
hearing() {
this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', {classify: 1}).then(res => {
this.listHearing = res.data
- let arr =res.data
- for(let a of arr){
- a.active = 'Test 1'
- }
- this.listHearing= arr
+
})
},
// 听力test点击事件
- Bages_addActive(idex, id,TextItem) {
- this.itemActive[id] = idex
+ Bages_addActive(TextIndex, id) {
+ this.itemActive[id] = TextIndex
this.$forceUpdate()
diff --git a/pages_teacher/teacher_teachers/teacher_addOperation.vue b/pages_teacher/teacher_teachers/teacher_addOperation.vue
index bc107fc..eefbc23 100644
--- a/pages_teacher/teacher_teachers/teacher_addOperation.vue
+++ b/pages_teacher/teacher_teachers/teacher_addOperation.vue
@@ -128,59 +128,138 @@
-
- 作业安排
-
-
-
- +
- 添加
+
+
+ 作业安排
+
+
+ IELTS 18
+
+
+
+
+
+
+
+ Test 2
+
+ 听力
+
+
+
+ Part 1:多选题
+
+
+
+
+
+
+
+
+
+ Test 2
+
+ 听力
+
+
+
+ Part 1:多选题
+
+
+
+
+
+
+
+
+
+ Test 2
+
+ 听力
+
+
+
+ Part 1:多选题
+
+
+
+
+
-
-
-
- 听力-IELTS 18-Test 2
-
-
-
-
-
-
-
+
+ IELTS 18
+
+
+
+ Test 2
+ 听力
+
+
+ Part 1:多选题
-
-
-
- Part 1:Questions1-10
- Complete the notes below.
-
-
-
-
+
-
- 听力-IELTS 18-Test 2
-
-
-
-
-
-
-
-
+ IELTS 18
+
+
+
+
+
+
+
+ Test 2
+
+ 听力
+
+
+
+ Part 1:多选题
+
+
+
+
+
+
+
+
+
+
+
+
+ Test 2
+
+ 听力
+
+
+
+
+
+ Part 1:多选题
+
+
+
+
+
+
+
+
+
-
-
-
- Part 1:Questions1-10
- Complete the notes below.
+
+
+
+
+ 添加
+
+
+
@@ -191,7 +270,7 @@
-
+
@@ -204,7 +283,7 @@
描述
-
+
@@ -253,6 +332,10 @@
}
From af0a8ee6ea77bfdb0f22cc8e8a9ce7151187513a Mon Sep 17 00:00:00 2001
From: libowei <3423564950@qq.com>
Date: Thu, 7 Dec 2023 17:10:15 +0800
Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages_teacher/teacher_teachers/components/audiology.vue | 2 --
1 file changed, 2 deletions(-)
diff --git a/pages_teacher/teacher_teachers/components/audiology.vue b/pages_teacher/teacher_teachers/components/audiology.vue
index a9c3e90..de2af31 100644
--- a/pages_teacher/teacher_teachers/components/audiology.vue
+++ b/pages_teacher/teacher_teachers/components/audiology.vue
@@ -80,8 +80,6 @@
Bages_addActive(TextIndex, id) {
this.itemActive[id] = TextIndex
this.$forceUpdate()
-
-
},
// 点击变化图表