|
|
|
|
@ -30,7 +30,7 @@
|
|
|
|
|
<el-table-column v-for="(column, index) in columns" :key="index" :prop="column.prop" :label="column.label"
|
|
|
|
|
:width="column.width">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<div v-if="column.type === 'time'" @click="openTime(scope.$index,scope.row[column.prop])">
|
|
|
|
|
<div v-if="column.type === 'time'" class="subjectCell" @click="openTime(scope.$index,scope.row[column.prop])">
|
|
|
|
|
{{ formatTime(scope.row[column.prop]) }}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="subjectCell" v-else @click="openSubject(scope.$index,column.prop,scope.row[column.prop])">
|
|
|
|
|
@ -137,6 +137,7 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['11:15', '13:00'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -146,6 +147,7 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['13:00', '14:00'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -155,6 +157,7 @@
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['14:15', '15:15'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -170,6 +173,7 @@
|
|
|
|
|
addColum(index) {
|
|
|
|
|
const obj = {
|
|
|
|
|
time: [],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
|