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