|
|
|
|
@ -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])">
|
|
|
|
|
@ -136,7 +136,8 @@
|
|
|
|
|
sunday: {}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['11:15', '13:00'],
|
|
|
|
|
time: ['11:15', '13:00'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -145,7 +146,8 @@
|
|
|
|
|
sunday: {}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['13:00', '14:00'],
|
|
|
|
|
time: ['13:00', '14:00'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -154,7 +156,8 @@
|
|
|
|
|
sunday: {}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
time: ['14:15', '15:15'],
|
|
|
|
|
time: ['14:15', '15:15'],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
@ -169,7 +172,8 @@
|
|
|
|
|
// 增加一行
|
|
|
|
|
addColum(index) {
|
|
|
|
|
const obj = {
|
|
|
|
|
time: [],
|
|
|
|
|
time: [],
|
|
|
|
|
monday:{},
|
|
|
|
|
tuesday: {},
|
|
|
|
|
wednesday: {},
|
|
|
|
|
thursday: {},
|
|
|
|
|
|