|
|
@ -1,60 +1,62 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<el-table :data="tableData" :span-method="objectSpanMethod" @cell-click="cClick" :cell-style="cStyle">
|
|
|
|
<el-dialog :visible.sync="courseDialog" append-to-body :close-on-click-modal="false" :title="lab.position+' '+lab.name">
|
|
|
|
<el-table-column :label="tableLabel" align="center ">
|
|
|
|
<el-table :data="tableData" :span-method="objectSpanMethod" @cell-click="cClick" :cell-style="cStyle">
|
|
|
|
<el-table-column prop="daytime" label="" fixed align="center" width="60"></el-table-column>
|
|
|
|
<el-table-column :label="tableLabel" align="center ">
|
|
|
|
<el-table-column prop="time" label="" fixed align="center" width="100"></el-table-column>
|
|
|
|
<el-table-column prop="daytime" label="" fixed align="center" width="60"></el-table-column>
|
|
|
|
<el-table-column :index="1" prop="Monday" label="星期一" align="center">
|
|
|
|
<el-table-column prop="time" label="" fixed align="center" width="100"></el-table-column>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<el-table-column :index="1" prop="Monday" label="星期一" align="center">
|
|
|
|
{{scope.row.Monday.name}} <br>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
{{scope.row.Monday.classes}} {{scope.row.Monday.population}}<br>
|
|
|
|
{{scope.row.Monday.name}} <br>
|
|
|
|
{{scope.row.Monday.software}}
|
|
|
|
{{scope.row.Monday.classes}} {{scope.row.Monday.population}}<br>
|
|
|
|
</template>
|
|
|
|
{{scope.row.Monday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="2" prop="Tuesday" label="星期二" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Tuesday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Tuesday.classes}} {{scope.row.Tuesday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Tuesday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="3" prop="Wednesday" label="星期三" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.classes}} {{scope.row.Wednesday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="4" prop="Thursday" label="星期四" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Thursday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Thursday.classes}} {{scope.row.Thursday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Thursday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="5" prop="Friday" label="星期五" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Friday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Friday.classes}} {{scope.row.Friday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Friday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="6" prop="Saturday" label="星期六" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Saturday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Saturday.classes}} {{scope.row.Saturday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Saturday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="7" prop="Sunday" label="星期日" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Sunday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Sunday.classes}} {{scope.row.Sunday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Sunday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column :index="2" prop="Tuesday" label="星期二" align="center">
|
|
|
|
</el-table>
|
|
|
|
<template slot-scope="scope">
|
|
|
|
</el-dialog>
|
|
|
|
{{scope.row.Tuesday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Tuesday.classes}} {{scope.row.Tuesday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Tuesday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="3" prop="Wednesday" label="星期三" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.classes}} {{scope.row.Wednesday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Wednesday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="4" prop="Thursday" label="星期四" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Thursday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Thursday.classes}} {{scope.row.Thursday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Thursday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="5" prop="Friday" label="星期五" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Friday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Friday.classes}} {{scope.row.Friday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Friday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="6" prop="Saturday" label="星期六" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Saturday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Saturday.classes}} {{scope.row.Saturday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Saturday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column :index="7" prop="Sunday" label="星期日" align="center">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
{{scope.row.Sunday.name}} <br>
|
|
|
|
|
|
|
|
{{scope.row.Sunday.classes}} {{scope.row.Sunday.population}}<br>
|
|
|
|
|
|
|
|
{{scope.row.Sunday.software}}
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
@ -65,10 +67,15 @@
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "tb_course",
|
|
|
|
name: "tb_course",
|
|
|
|
components: {navBar},
|
|
|
|
components: {navBar},
|
|
|
|
props: ['tableLabel','cClick', 'cStyle',],
|
|
|
|
props: ['tableLabel', 'cClick', 'cStyle',],
|
|
|
|
data() {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
item: '',
|
|
|
|
item: '',
|
|
|
|
|
|
|
|
lab: {
|
|
|
|
|
|
|
|
name: '',
|
|
|
|
|
|
|
|
position: ''
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
courseDialog:false,
|
|
|
|
data: [],
|
|
|
|
data: [],
|
|
|
|
tableData: [
|
|
|
|
tableData: [
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -113,94 +120,94 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
console.log('aaaaaaaaaaaaaaa')
|
|
|
|
console.log('aaaaaaaaaaaaaaa')
|
|
|
|
// this.data = [
|
|
|
|
// this.data = [
|
|
|
|
// [
|
|
|
|
// [
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "Web开发",
|
|
|
|
// "name": "Web开发",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// {
|
|
|
|
// {
|
|
|
|
// "ucId": 1,
|
|
|
|
// "ucId": 1,
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "name": "课程设计",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "software": "IDEA",
|
|
|
|
// "year": "2019",
|
|
|
|
// "year": "2019",
|
|
|
|
// "semester": 2,
|
|
|
|
// "semester": 2,
|
|
|
|
// "population": 50,
|
|
|
|
// "population": 50,
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "classes": "17软件工程6班",
|
|
|
|
// "remind": "",
|
|
|
|
// "remind": "",
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "ishavedocuments": 1,
|
|
|
|
// "uid": 1
|
|
|
|
// "uid": 1
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// ]
|
|
|
|
// ]
|
|
|
|
// ]
|
|
|
|
// ]
|
|
|
|
for (let i = 0; i < this.data.length; i++) {
|
|
|
|
for (let i = 0; i < this.data.length; i++) {
|
|
|
|
this.tableData[i].Monday = this.data[i][0]
|
|
|
|
this.tableData[i].Monday = this.data[i][0]
|
|
|
|
this.tableData[i].Tuesday = this.data[i][1]
|
|
|
|
this.tableData[i].Tuesday = this.data[i][1]
|
|
|
|