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 @@
- 添加课程 + 添加课程 查询
- - - - - - - - - - - - -