|
|
|
@ -148,6 +148,7 @@
|
|
|
|
|
},
|
|
|
|
|
//点击格子促发的函数
|
|
|
|
|
async cellClick(row, column, cell, event) {
|
|
|
|
|
this.form.weeks = null
|
|
|
|
|
this.form.day = column.index
|
|
|
|
|
this.form.time = row.index
|
|
|
|
|
this.form.year = this.$refs.timeSelection.year
|
|
|
|
@ -240,22 +241,22 @@
|
|
|
|
|
// console.log(this.allWeeksValue)
|
|
|
|
|
},
|
|
|
|
|
//取消一个格子已选择这些周数
|
|
|
|
|
async cancelSelection() {
|
|
|
|
|
for (let i = 0; i < this.allWeeksValue.length; i++) {
|
|
|
|
|
if (this.aWeekValue[0] === this.allWeeksValue[i][0] && this.aWeekValue[1] === this.allWeeksValue[i][1]) {
|
|
|
|
|
this.allWeeksValue.splice(i, 1)
|
|
|
|
|
console.log(this.allWeeksValue)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.aWeekValue = []
|
|
|
|
|
this.perTargetValue.style.backgroundColor = ''
|
|
|
|
|
this.perTargetValue.textContent = ''
|
|
|
|
|
//此处再设置将allWeeksValue里边减去这个表格原本的内容,要怎么删去呢,思考一下。
|
|
|
|
|
// if (this.perTargetValue!=''){
|
|
|
|
|
// this.allWeeksValue.pop()
|
|
|
|
|
// async cancelSelection() {
|
|
|
|
|
// for (let i = 0; i < this.allWeeksValue.length; i++) {
|
|
|
|
|
// if (this.aWeekValue[0] === this.allWeeksValue[i][0] && this.aWeekValue[1] === this.allWeeksValue[i][1]) {
|
|
|
|
|
// this.allWeeksValue.splice(i, 1)
|
|
|
|
|
// console.log(this.allWeeksValue)
|
|
|
|
|
// }
|
|
|
|
|
this.weekDialog = false
|
|
|
|
|
},
|
|
|
|
|
// }
|
|
|
|
|
// this.aWeekValue = []
|
|
|
|
|
// this.perTargetValue.style.backgroundColor = ''
|
|
|
|
|
// this.perTargetValue.textContent = ''
|
|
|
|
|
// //此处再设置将allWeeksValue里边减去这个表格原本的内容,要怎么删去呢,思考一下。
|
|
|
|
|
// // if (this.perTargetValue!=''){
|
|
|
|
|
// // this.allWeeksValue.pop()
|
|
|
|
|
// // }
|
|
|
|
|
// this.weekDialog = false
|
|
|
|
|
// },
|
|
|
|
|
//确定所有已选择的周数
|
|
|
|
|
// async setWeeks() {
|
|
|
|
|
// console.log(this.allWeeksValue)
|
|
|
|
@ -280,14 +281,14 @@
|
|
|
|
|
//
|
|
|
|
|
// },
|
|
|
|
|
//取消所有已选择的周数
|
|
|
|
|
cancelSetWeeks: function () {
|
|
|
|
|
this.allWeeksValue = []
|
|
|
|
|
this.form.schedule = ""
|
|
|
|
|
this.courseDialog = false
|
|
|
|
|
this.formDialog = true
|
|
|
|
|
console.log(this.allWeeksValue)
|
|
|
|
|
this.tableAlive = false //表格失活
|
|
|
|
|
},
|
|
|
|
|
// cancelSetWeeks: function () {
|
|
|
|
|
// this.allWeeksValue = []
|
|
|
|
|
// this.form.schedule = ""
|
|
|
|
|
// this.courseDialog = false
|
|
|
|
|
// this.formDialog = true
|
|
|
|
|
// console.log(this.allWeeksValue)
|
|
|
|
|
// this.tableAlive = false //表格失活
|
|
|
|
|
// },
|
|
|
|
|
setTime: function () {
|
|
|
|
|
this.tableAlive = true
|
|
|
|
|
// alert('这里本来要验证的,为了方便查看表格,暂无设置,需要验证请把代码行注释解除掉')
|
|
|
|
|