|
|
|
@ -33,7 +33,10 @@
|
|
|
|
|
|
|
|
|
|
<!-- 表格:节数选择-->
|
|
|
|
|
|
|
|
|
|
<el-dialog :visible.sync="courseDialog" append-to-body :close-on-click-modal="false"
|
|
|
|
|
:title="lab.position+' '+lab.name">
|
|
|
|
|
<tb_course :cClick="cellClick" :cStyle="cellStyle" table-label="点击相应的位置选取时间段" ref="times"></tb_course>
|
|
|
|
|
</el-dialog>
|
|
|
|
|
<!-- checkbox:周次选择-->
|
|
|
|
|
<el-dialog :visible.sync="weekDialog" title="请选择周数" width="400px" :close-on-click-modal="false" append-to-body>
|
|
|
|
|
<week-selection @add="addWeek" @cancel="cancelSelection" ref="weekSelection"
|
|
|
|
@ -102,9 +105,8 @@
|
|
|
|
|
methods: {
|
|
|
|
|
//设置周次与节次
|
|
|
|
|
async showCourseDialog() {
|
|
|
|
|
this.$refs.times.lab = this.lab
|
|
|
|
|
this.tableAlive = true
|
|
|
|
|
this.$refs.times.courseDialog = true
|
|
|
|
|
this.courseDialog = true
|
|
|
|
|
},
|
|
|
|
|
//表格中每个格子的风格
|
|
|
|
|
cellStyle: function ({row, column, rowIndex, columnIndex}) {
|
|
|
|
@ -186,7 +188,7 @@
|
|
|
|
|
console.log(this.$refs.times)
|
|
|
|
|
console.log(this.allWeeksValue)
|
|
|
|
|
// this.form.schedule=this.allWeeksValue.toString()
|
|
|
|
|
this.$refs.times.courseDialog = false
|
|
|
|
|
this.courseDialog = false
|
|
|
|
|
// console.log(this.$refs.times)
|
|
|
|
|
this.tableAlive = false
|
|
|
|
|
if (this.allWeeksValue.length !== 0) {
|
|
|
|
@ -198,7 +200,7 @@
|
|
|
|
|
cancelSetWeeks: function () {
|
|
|
|
|
this.allWeeksValue = []
|
|
|
|
|
this.form.schedule = ""
|
|
|
|
|
this.$refs.times.courseDialog = false
|
|
|
|
|
this.courseDialog = false
|
|
|
|
|
this.formDialog = true
|
|
|
|
|
console.log(this.allWeeksValue)
|
|
|
|
|
this.tableAlive = false //表格失活
|
|
|
|
|