diff --git a/element-vue/src/components/tb_course.vue b/element-vue/src/components/tb_course.vue index 5628856..b45839b 100644 --- a/element-vue/src/components/tb_course.vue +++ b/element-vue/src/components/tb_course.vue @@ -6,51 +6,72 @@ @@ -65,12 +86,17 @@ export default { name: "tb_course", components: {navBar}, - props: ['tableLabel', 'cClick', 'cStyle',], + props: { + tableLabel: {}, + cClick: {}, + cStyle: {}, + custom: {default: false}, + data: {default: () => []} + }, data() { return { item: '', courseDialog: false, - data: [], tableData: [ { index: 1, daytime: '上午', time: '第一节', Monday: '', Tuesday: '', Wednesday: '', Thursday: '', @@ -113,7 +139,6 @@ } }, mounted() { - console.log('aaaaaaaaaaaaaaa') // this.data = [ // [ // { @@ -202,15 +227,15 @@ // } // ] // ] - 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] - this.tableData[i].Wednesday = this.data[i][2] - this.tableData[i].Thursday = this.data[i][3] - this.tableData[i].Friday = this.data[i][4] - this.tableData[i].Saturday = this.data[i][5] - this.tableData[i].Sunday = this.data[i][6] - } + // 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] + // this.tableData[i].Wednesday = this.data[i][2] + // this.tableData[i].Thursday = this.data[i][3] + // this.tableData[i].Friday = this.data[i][4] + // this.tableData[i].Saturday = this.data[i][5] + // this.tableData[i].Sunday = this.data[i][6] + // } } }