|
|
@@ -2,16 +2,10 @@
|
|
|
<div class="app-container">
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
<el-col :span="1.5">
|
|
|
- <el-button type="primary" icon="el-icon-plus" @click="handleAdd">设置工作天数</el-button>
|
|
|
+ <el-button type="primary" icon="el-icon-setting" size="mini" @click="handleWorkDay">设置工作日</el-button>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<FullCalendar class="fullCalendar" ref="fullCalendar" :options="calendarOptions">
|
|
|
- <template v-slot:eventContent="arg">
|
|
|
- <div style="width: 100%;font-size: 14px;">
|
|
|
- <span>{{ arg.event.extendedProps.startTieme }} ~ {{ arg.event.extendedProps.endTieme }}</span>
|
|
|
- <div>{{ arg.event.title }}</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
</FullCalendar>
|
|
|
</div>
|
|
|
</template>
|
|
|
@@ -55,7 +49,7 @@ export default {
|
|
|
// center: 'title',
|
|
|
// left: 'dayGridMonth,dayGridWeek,dayGridDay'
|
|
|
},
|
|
|
- height: 'auto',
|
|
|
+ // height: 'auto',
|
|
|
eventTimeFormat: { // 在每个事件上显示的时间的格式
|
|
|
hour: 'numeric',
|
|
|
minute: '2-digit',
|
|
|
@@ -93,6 +87,10 @@ export default {
|
|
|
// this.getEvents();
|
|
|
},
|
|
|
methods: {
|
|
|
+ //设置工作日
|
|
|
+ handleWorkDay(){
|
|
|
+
|
|
|
+ },
|
|
|
// 获取当前年月
|
|
|
nowDate() {
|
|
|
var d = new Date();
|