From a05982530328eab817bd3ce1a731548f3481312a Mon Sep 17 00:00:00 2001
From: aiyadc <565548447@qq.com>
Date: Wed, 13 May 2020 01:14:01 +0800
Subject: [PATCH] =?UTF-8?q?'=E5=AE=8C=E5=96=84=E8=AF=BE=E7=A8=8B=E7=AE=A1?=
=?UTF-8?q?=E7=90=86=E9=A1=B5=E9=9D=A2'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
element-vue/src/components/tb_course.vue | 6 +-
element-vue/src/pages/teacher/applyLab.vue | 87 +++++++---
.../src/pages/teacher/courseManagement.vue | 159 +++++++++++++-----
element-vue/src/pages/teacher/index.vue | 5 +
.../src/pages/teacher/myApplyRecord.vue | 10 +-
.../src/pages/teacher/myCourseTable.vue | 8 +-
6 files changed, 203 insertions(+), 72 deletions(-)
diff --git a/element-vue/src/components/tb_course.vue b/element-vue/src/components/tb_course.vue
index 8a04ff6..769a312 100644
--- a/element-vue/src/components/tb_course.vue
+++ b/element-vue/src/components/tb_course.vue
@@ -2,7 +2,7 @@
-
+
@@ -27,7 +27,7 @@
props:['tableLabel','courseMessage','cClick','cStyle',],
data(){
return{
-
+ item:'',
tableData:[
{daytime:'上午',time:'第一节',Monday:'',Tuesday:'',Wednesday:'',Thursday:'',
Friday:'',Saturday:'',Sunday:''},
@@ -57,7 +57,7 @@
};
}
}
- }
+ },
},
mounted() {
// cellStyle:function({row, column, rowIndex, columnIndex}){
diff --git a/element-vue/src/pages/teacher/applyLab.vue b/element-vue/src/pages/teacher/applyLab.vue
index e7bfc65..eac35c7 100644
--- a/element-vue/src/pages/teacher/applyLab.vue
+++ b/element-vue/src/pages/teacher/applyLab.vue
@@ -2,10 +2,12 @@
+
+
@@ -28,41 +30,62 @@
width="212">
查看申请详情
- 申请
+ 申请
>
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
- 申请
- 重置
-
+
+
+ 申请
+ 取消
+
-
-
+
+
+
+
-
+
+
@@ -76,6 +99,8 @@
import tb_course from "~/components/tb_course";
import navBar from "~/components/teacher/navBar";
import weekSelection from "~/components/teacher/weekSelection";
+ import {get, post, stop} from "~/utils";
+ import {showDialog, showFail, showSuccess} from "~/utils/dialog";
export default {
name: "applyLab",
components:{
@@ -87,7 +112,7 @@
return{
tableData:[{}
],
- messageDialog:false,
+ formDialog:false,
courseDialog:false,
weekDialog:false,
perTargetValue:'',
@@ -104,7 +129,8 @@
schedule:'',
remind:''
- }
+ },
+
}
},
@@ -123,10 +149,11 @@
this.weekDialog=true
this.perTargetValue=event.target //用target对表格进行定位并保存致target对象
+
}
},
addWeek:function () {
- console.log(this.$refs.weekSelection)
+ console.log(this.perTargetValue)
this.weekDialog=false
var targetValue = this.$refs.weekSelection.checkedValue
if(targetValue.length!==0){
@@ -149,9 +176,21 @@
setWeeks:function () {
this.form.schedule=this.allWeeksValue.toString()
this.courseDialog=false
+ console.log(this.$refs.times)
+
},
cancelSetWeeks:function () {
this.courseDialog=false
+ },
+ sendApply:function () {
+ let form = this.form
+ post('/lb_teacher_applyLab',{
+ formData:form
+ })
+ this.formDialog=false
+ },
+ cancelAppy:function () {
+ this.formDialog=false
}
},
mounted() {
diff --git a/element-vue/src/pages/teacher/courseManagement.vue b/element-vue/src/pages/teacher/courseManagement.vue
index f6e0c13..4c10262 100644
--- a/element-vue/src/pages/teacher/courseManagement.vue
+++ b/element-vue/src/pages/teacher/courseManagement.vue
@@ -4,37 +4,34 @@
- 添加课程
+ 添加课程
查询
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
编辑
@@ -44,16 +41,16 @@
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
添加
取消
@@ -66,24 +63,18 @@
diff --git a/element-vue/src/pages/teacher/index.vue b/element-vue/src/pages/teacher/index.vue
index 5275b03..6b0aba9 100644
--- a/element-vue/src/pages/teacher/index.vue
+++ b/element-vue/src/pages/teacher/index.vue
@@ -32,6 +32,11 @@
name: '我的课表', func: () => {
this.$router.push('/teacher/myCourse')
}
+ },
+ {
+ name:'课程管理',func:()=>{
+ this.$router.push('/teacher/courseManagement')
+ }
}
]
}
diff --git a/element-vue/src/pages/teacher/myApplyRecord.vue b/element-vue/src/pages/teacher/myApplyRecord.vue
index c43ad0a..32bdc6b 100644
--- a/element-vue/src/pages/teacher/myApplyRecord.vue
+++ b/element-vue/src/pages/teacher/myApplyRecord.vue
@@ -21,10 +21,10 @@
-
+
@@ -38,6 +38,7 @@
diff --git a/element-vue/src/pages/teacher/myCourseTable.vue b/element-vue/src/pages/teacher/myCourseTable.vue
index 10fbaca..97313ed 100644
--- a/element-vue/src/pages/teacher/myCourseTable.vue
+++ b/element-vue/src/pages/teacher/myCourseTable.vue
@@ -5,7 +5,7 @@
-
+
@@ -25,6 +25,12 @@
return {}
},
methods:{
+ cellClick(){
+ console.log('click the cell')
+ },
+ tableStyle(){
+
+ }
},
mounted() {
// //获取已被同意的申请信息,利用课程的星期几和节次在表中进行定位