-
-
-
-
-
-
- {{scope.row.Monday.name}}
- {{scope.row.Monday.classes}} {{scope.row.Monday.population}}
- {{scope.row.Monday.software}}
-
+
+
+
+
+
+
+
+ {{scope.row.Monday.name}}
+ {{scope.row.Monday.classes}} {{scope.row.Monday.population}}
+ {{scope.row.Monday.software}}
+
+
+
+
+ {{scope.row.Tuesday.name}}
+ {{scope.row.Tuesday.classes}} {{scope.row.Tuesday.population}}
+ {{scope.row.Tuesday.software}}
+
+
+
+
+ {{scope.row.Wednesday.name}}
+ {{scope.row.Wednesday.classes}} {{scope.row.Wednesday.population}}
+ {{scope.row.Wednesday.software}}
+
+
+
+
+ {{scope.row.Thursday.name}}
+ {{scope.row.Thursday.classes}} {{scope.row.Thursday.population}}
+ {{scope.row.Thursday.software}}
+
+
+
+
+ {{scope.row.Friday.name}}
+ {{scope.row.Friday.classes}} {{scope.row.Friday.population}}
+ {{scope.row.Friday.software}}
+
+
+
+
+ {{scope.row.Saturday.name}}
+ {{scope.row.Saturday.classes}} {{scope.row.Saturday.population}}
+ {{scope.row.Saturday.software}}
+
+
+
+
+ {{scope.row.Sunday.name}}
+ {{scope.row.Sunday.classes}} {{scope.row.Sunday.population}}
+ {{scope.row.Sunday.software}}
+
+
-
-
- {{scope.row.Tuesday.name}}
- {{scope.row.Tuesday.classes}} {{scope.row.Tuesday.population}}
- {{scope.row.Tuesday.software}}
-
-
-
-
- {{scope.row.Wednesday.name}}
- {{scope.row.Wednesday.classes}} {{scope.row.Wednesday.population}}
- {{scope.row.Wednesday.software}}
-
-
-
-
- {{scope.row.Thursday.name}}
- {{scope.row.Thursday.classes}} {{scope.row.Thursday.population}}
- {{scope.row.Thursday.software}}
-
-
-
-
- {{scope.row.Friday.name}}
- {{scope.row.Friday.classes}} {{scope.row.Friday.population}}
- {{scope.row.Friday.software}}
-
-
-
-
- {{scope.row.Saturday.name}}
- {{scope.row.Saturday.classes}} {{scope.row.Saturday.population}}
- {{scope.row.Saturday.software}}
-
-
-
-
- {{scope.row.Sunday.name}}
- {{scope.row.Sunday.classes}} {{scope.row.Sunday.population}}
- {{scope.row.Sunday.software}}
-
-
-
-
+
+
@@ -65,10 +67,15 @@
export default {
name: "tb_course",
components: {navBar},
- props: ['tableLabel','cClick', 'cStyle',],
+ props: ['tableLabel', 'cClick', 'cStyle',],
data() {
return {
item: '',
+ lab: {
+ name: '',
+ position: ''
+ },
+ courseDialog:false,
data: [],
tableData: [
{
@@ -113,94 +120,94 @@
},
mounted() {
console.log('aaaaaaaaaaaaaaa')
- // this.data = [
- // [
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "Web开发",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // },
- // {
- // "ucId": 1,
- // "name": "课程设计",
- // "software": "IDEA",
- // "year": "2019",
- // "semester": 2,
- // "population": 50,
- // "classes": "17软件工程6班",
- // "remind": "",
- // "ishavedocuments": 1,
- // "uid": 1
- // }
- // ]
- // ]
+ // this.data = [
+ // [
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "Web开发",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // },
+ // {
+ // "ucId": 1,
+ // "name": "课程设计",
+ // "software": "IDEA",
+ // "year": "2019",
+ // "semester": 2,
+ // "population": 50,
+ // "classes": "17软件工程6班",
+ // "remind": "",
+ // "ishavedocuments": 1,
+ // "uid": 1
+ // }
+ // ]
+ // ]
for (let i = 0; i < this.data.length; i++) {
this.tableData[i].Monday = this.data[i][0]
this.tableData[i].Tuesday = this.data[i][1]
diff --git a/element-vue/src/pages/teacher/applyLab.vue b/element-vue/src/pages/teacher/applyLab.vue
index ce3d107..791a5ac 100644
--- a/element-vue/src/pages/teacher/applyLab.vue
+++ b/element-vue/src/pages/teacher/applyLab.vue
@@ -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()
- // }
- this.weekDialog = false
- },
+ // 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()
+ // // }
+ // 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('这里本来要验证的,为了方便查看表格,暂无设置,需要验证请把代码行注释解除掉')