1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
| <template>
| <div class="calender-box">
| <div class="header">
| <img class="celebrate deblurring" src="/img/icon/school-celebrate.png" alt />
| 校园活动
| <img
| @click="closeCurrent"
| class="close deblurring"
| src="/img/navicon/close.png"
| alt
| />
| </div>
| <div class="content">
| <full-calendar ref="fullCalendar" style="height: 100%" :options="calendarOptions"></full-calendar>
| </div>
| </div>
| </template>
|
| <script>
|
| import FullCalendar from '@fullcalendar/vue'
| import dayGridPlugin from '@fullcalendar/daygrid'
| import interactionPlugin from '@fullcalendar/interaction'
| import timeGridPlugin from '@fullcalendar/timegrid'
| // import '@fullcalendar/core/main.css'
| import '@fullcalendar/daygrid/main.css'
|
| import moment from 'moment'
| import tippy from 'tippy.js'
| import 'tippy.js/dist/tippy.css'
| import 'tippy.js/themes/light-border.css'
| // const getTime = (time) => {
| // const datetime = new Date(time)
| // const year = datetime.getFullYear()
|
| // const month = datetime.getMonth()
| // const date = datetime.getDate()
| // const hour = datetime.getHours()
| // const minute = datetime.getMinutes()
| // const second = datetime.getSeconds()
|
| // const result1 = year +
| // '-' +
| // ((month + 1) >= 10 ? (month + 1) : '0' + (month + 1)) +
| // '-' +
| // ((date + 1) < 10 ? '0' + date : date) +
| // ' ' +
| // ((hour + 1) < 10 ? '0' + hour : hour) +
| // ':' +
| // ((minute + 1) < 10 ? '0' + minute : minute) +
| // ':' +
| // ((second + 1) < 10 ? '0' + second : second)
|
| // const result2 = year +
| // '-' +
| // ((month + 1) >= 10 ? (month + 1) : '0' + (month + 1)) +
| // '-' +
| // ((date + 1) < 10 ? '0' + date : date)
|
| // const result = {
| // hasTime: result1,
| // withoutTime: result2
| // }
|
| // return result
| // }
|
| const timeEvents = [{
| id: '92963',
| title: '文化素质教育讲座:逻辑的现实性意义——大学生为何需要逻辑学?',
| start: '2022-03-25T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '本科生院',
| url2: 'http://today.hit.edu.cn/event/2022/03/23/92963',
| color: '#337ab7'
| },
| {
| id: '92944',
| title: '青年教师交流发展论坛之对话“青椒“第二期',
| start: '2022-03-23T13:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '人事处',
| url2: 'http://today.hit.edu.cn/event/2022/03/22/92944',
| color: '#337ab7'
| },
| {
| id: '92862',
| title: '国际组织实习项目线上宣讲会预告',
| start: '2022-03-22T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '学工处',
| url2: 'http://today.hit.edu.cn/event/2022/03/20/92862',
| color: '#337ab7'
| },
| {
| id: '92769',
| title: '文化素质教育讲座:物理与创新漫谈',
| start: '2022-03-20T18:30:00',
| end: null,
| location: null,
| category:
| '讲座报告',
| department: '本科生院',
| url2: 'http://today.hit.edu.cn/event/2022/03/15/92769',
| color: '#337ab7'
| },
| {
| id: '92763',
| title: '马克思主义学院“世界大变局与疫情交织背景下的时代盛会”两会专题讲座预告',
| start: '2022-03-18T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '马克思主义学院',
| url2: 'http://today.hit.edu.cn/event/2022/03/15/92763',
| color: '#337ab7'
| },
| {
| id: '92736',
| title: '青年教师交流发展论坛之对话“青椒”第一期',
| start: '2022-03-17T12:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '人事处',
| url2: 'http://today.hit.edu.cn/event/2022/03/14/92736',
| color: '#337ab7'
| },
| {
| id: '92733',
| title: '【因斯图们交流会】仪器学院研究生微沙龙第三十六期活动——关注心理健康',
| start: '2022-03-16T18:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '仪器科学与工程学院',
| url2: 'http://today.hit.edu.cn/event/2022/03/14/92733',
| color: '#337ab7'
| },
| {
| id: '92653',
| title: '仪器学院寒假政务实习分享交流会',
| start: '2022-03-12T18:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '仪器科学与工程学院',
| url2: 'http://today.hit.edu.cn/event/2022/03/11/92653',
| color: '#337ab7'
| },
| {
| id: '92624',
| title: '文化素质教育讲座:“核”你有约',
| start: '2022-03-18T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '本科生院',
| url2: 'http://today.hit.edu.cn/event/2022/03/10/92624',
| color: '#337ab7'
| },
| {
| id: '92500',
| title: '德累斯顿工业大学硕士团审项目介绍及校友经验分享',
| start: '2022-03-12T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '国际合作部',
| url2: 'http://today.hit.edu.cn/event/2022/03/07/92500',
| color: '#337ab7'
| },
| {
| id: '92496',
| title: '德国亚琛工业大学4+2项目招生宣讲会',
| start: '2022-03-10T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '国际合作部',
| url2: 'http://today.hit.edu.cn/event/2022/03/07/92496',
| color: '#337ab7'
| },
| {
| id: '92358',
| title: '【生科青年说第3期】博士生郑善亮关于iASPP与内质网Ca2+稳态的研究分享',
| start: '2022-03-02T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '生命科学与技术学院',
| url2: 'http://today.hit.edu.cn/event/2022/03/02/92358',
| color: '#337ab7'
| },
| {
| id: '92313',
| title: '文化素质教育讲座:从物理,到“悟理”——对科技、文化与人生的若干思考',
| start: '2022-03-02T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
|
| department: '本科生院',
| url2: 'http://today.hit.edu.cn/event/2022/02/28/92313',
| color: '#337ab7'
| },
| {
| id: '92026',
| title: '【career讲坛】公职系列“银行校招考情介绍备考指导”讲座',
| start: '2022-01-18T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '学工处',
| url2: 'http://today.hit.edu.cn/event/2022/01/15/92026',
| color: '#337ab7'
| }, {
| id: '91997',
| title: '伦敦国王学院Kawal Rhode教授线上学术讲座',
| start: '2022-01-20T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '医学与健康学院',
| url2: 'http://today.hit.edu.cn/event/2022/01/11/91997',
| color: '#337ab7'
| }, {
| id: '91982',
| title: '【career讲坛】公职系列“人民银行考情介绍备考指导”讲座',
| start: '2022-01-11T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '学工处',
| url2: 'http://today.hit.edu.cn/event/2022/01/09/91982',
| color: '#337ab7'
| }, {
| id: '91879',
| title: '“全驱系统方法---诞生背景、优越性及展望”段广仁院士报告通知',
| start: '2021-12-29T15:30:18',
| end: null,
| location: null,
| category: '讲座报告',
| department: '科工院',
| url2: 'http://today.hit.edu.cn/event/2021/12/29/91879',
| color: '#337ab7'
| }, {
| id: '91825',
| title: '【生科青年说第2期】博士生徐珍媚关于G蛋白偶联受体结构与功能的研究分享',
| start: '2021-12-30T18:30:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '生命科学与技术学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/26/91825',
| color: '#337ab7'
| },
|
| {
| id: '91817',
| title: '美国大学生数学建模竞赛经验分享会(第二期)',
| start: '2021-12-26T15:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '数学学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/25/91817',
| color: '#337ab7'
| },
| {
| id: '91758',
| title: '第六届国际青年学者神舟论坛机电分论坛学术报告通知',
| start: '2021-12-23T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '机电学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/23/91758',
| color: '#337ab7'
| },
| {
| id: '91737',
| title: '【新百年 睿思无界】哈尔滨工业大学建筑学院2021学术月——专题系列讲座',
| start: '2021-12-22T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '建筑学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/22/91737',
| color: '#337ab7'
| },
| {
| id: '91731',
| title: '第六届国际青年学者神舟论坛化工与化学分论坛学术报告通知',
| start: '2021-12-26T08:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '化工化学学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/22/91731',
| color: '#337ab7'
| },
| {
| id: '91708',
| title: '【Career讲坛】公职系列“军队文职考情介绍及备考”讲座预告',
| start: '2021-12-22T18:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '学工处',
| url2: 'http://today.hit.edu.cn/event/2021/12/21/91708',
| color: '#337ab7'
| },
| {
| id: '91696',
| title: '【新百年 睿思无界】哈尔滨工业大学建筑学院2021学术月——专题系列讲座',
| start: '2021-12-20T19:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '建筑学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/20/91696',
| color: '#337ab7'
| }, {
| id: '91678',
| title: '预告| 第六届哈尔滨工业大学国际青年学者神舟论坛-电气工程及自动化学院分论坛学术报告通知',
| start: '2021-12-21T08:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '电气工程及自动化学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/20/91678',
| color: '#337ab7'
| },
| {
| id: '91655',
| title: '【从炘创新讲坛】特邀报告第2期:《数学分析》课程学习的点滴体会(多元积分学部分)',
| start: '2021-12-20T14:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '数学学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/19/91655',
| color: '#337ab7'
| }, {
| id: '91645',
| title: '哈尔滨工业大学国际青年学者神舟论坛宇航分论坛学术报告会',
| start: '2021-12-21T14:00:00',
| end: null,
| location: null,
| category: '会议',
| department: '航天学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/17/91645',
| color: '#f0ad4e'
| }, {
| id: '91621',
| title: '【Career讲坛】公职系列“国考、省考、选调生考情介绍及备考”讲座预告',
| start: '2021-12-18T15:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '学工处',
| url2: 'http://today.hit.edu.cn/event/2021/12/17/91621',
| color: '#337ab7'
| }, {
| id: '91552',
| title: '【预告】美国大学生数学建模竞赛经验分享',
| start: '2021-12-19T15:00:00',
| end: null,
| location: null,
| category: '讲座报告',
| department: '数学学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/14/91552',
| color: '#337ab7'
| }, {
| id: '91548',
| title: '“炘火•学知”讲师团开展《数学分析》考前知识梳理',
| start: '2021-12-14T19:00:00',
| end: null,
| location: null,
| category: '其它',
| department: '数学学院',
| url2: 'http://today.hit.edu.cn/event/2021/12/14/91548',
| color: '#996600'
| }]
|
| export default {
| name: 'calender',
|
| components: {
| FullCalendar
| },
|
| data () {
| return {
| calendarOptions: {
| // timeGridPlugin 可显示每日时间段
| height: 600,
| plugins: [dayGridPlugin, interactionPlugin, timeGridPlugin], // 引用的插件
| // 日历头部按钮位置
| headerToolbar: {
| left: 'prev,next today',
| center: 'title',
| right: 'dayGridMonth,timeGridWeek,timeGridDay'
| // right: 'dayGridMonth,dayGridWeek,dayGrid'
| // right: 'agendaWeek,dayGridWeek,dayGrid'
| },
| // 日历头部按钮位置
| buttonText: {
| // 设置按钮
| today: '今天',
| month: '月',
| week: '周',
| day: '天'
| },
| initialView: 'dayGridMonth', // 设置默认显示月,可选周、日
| locale: 'zh-cn', // 设置语言
| firstDay: '1', // 设置一周中显示的第一天是周几,周日是0,周一是1,以此类推
| weekNumberCalculation: 'ISO', // 与firstDay配套使用
| eventColor: '#2196f3', // 修改日程背景色
| timeGridEventMinHeight: '20', // 设置事件的最小高度
| aspectRatio: '1.5', // 设置日历单元格宽高比
| displayEventTime: false, // 是否显示事件时间
| allDaySlot: false, // 周、日视图时,all-day不显示
| eventLimit: true, // 设置月日程,与all-day slot 的最大显示数量,超过的通过弹窗展示
| // eventLimitText: '更多',
| eventTimeFormat: {
| hour: 'numeric',
| minute: '2-digit',
| hour12: false
| },
| slotLabelFormat: {
| hour: '2-digit',
| minute: '2-digit',
| meridiem: false,
| hour12: false // 设置时间为24小时制
| },
|
| // 日程函数
| events (time, callback) {
| // const startTime = getTime(time.start).withoutTime
| // const endTime = getTime(time.end).withoutTime
|
| const events = []
|
| timeEvents.forEach(item => {
| events.push({
| id: item.id,
| title: item.title,
| start: moment(item.start).format('YYYY-MM-DD HH:mm:ss'), // 事件开始时间必须
| // end: item.endTime, // 事件结束事件,可选
| // allDay: item.allDay, // 是否为全天事件,可选
| color: item.color,
| textColor: '#fff'
| // className: item.className
| })
| })
|
| callback(events)
| },
|
| // [
| // {
| // id: 1,
| // title: '09:30~11:30 小破孩',
| // start: '2022-03-11', // 事件开始时间必须
| // end: '2022-03-20', // 事件结束事件,可选
| // allDay: false, // 是否为全天事件,可选
| // // color: '#f08f00',
| // // textColor: '#000',
| // className: 'read-all-day'
| // },
| // {
| // id: 3,
| // title: '09:30~11:30 小1破孩',
| // start: '2022-03-11',
| // end: '2022-03-20',
| // color: '#f08f01'
| // },
| // {
| // id: 2,
| // title: '9:30~14:30 项目会议',
| // start: '2022-03-21',
| // end: '2022-03-25',
| // color: '#6bb377'
| // }
| // ]
|
| // 事件
| editable: false, // 是否可以进行(拖动、缩放)修改
| eventStartEditable: false, // Event日程开始时间可以改变,默认为true,若为false,则表示开始结束时间范围不能拉伸,只能拖拽
| eventDurationEditable: false, // Event日程的开始结束时间距离是否可以改变,默认为true,若为false,则表示开始结束时间范围不能拉伸,只能拖拽
| selectable: false, // 是否可以选中日历格
| selectMirror: false,
| selectMinDistance: 0, // 选中日历格的最小距离
| weekends: true,
| weekMode: 'liquid', // 在月视图里显示周的模式,因为每月周数可能不同,所以月视图高度不一定。
| navLinks: true, // 天链接
| selectHelper: false,
| selectEventOverlap: false, // 相同时间段的多个日程视觉上是否允许重叠,默认为true,允许
| dayMaxEvents: false,
| dateClick: this.handleDateClick, // 日期点击
| eventMouseEnter: this.handleEventMouseEnter,
| eventsSet: this.handleEvents, // 事件点击
| eventClick: this.handleEventClick, // 日程点击信息展示
| eventDrop: this.handleEventDrop, // 日程拖动事件
| eventResize: this.eventResize, // 日程缩放事件
| select: this.handleDateSelect,
| customButtons: {
| prev: { // this overrides the prev button
| // text: 'PREV',
| click: (e) => {
| this.prev(e)
| }
| },
| next: { // this overrides the next button
| // text: 'PREV',
| click: () => {
| this.next()
| }
| },
| today: {
| text: '今天',
| click: (e) => {
| this.today(e)
| }
| }
| }
| }
| }
| },
|
| mounted () {
| this.calendarApi = this.$refs.fullCalendar.getApi()
| },
|
| methods: {
|
| prev (e) {
| this.calendarApi.prev()
| },
| // 切换下一个按钮事件
| next (e) {
| this.calendarApi.next()
| },
| // 点击今天按钮
| today (e) {
| this.calendarApi.today()
| },
| // 日程保存
| saveEvent (val) {
| const eventsArr = this.calendarOptions.events
| try {
| if (eventsArr.length === 0) {
| eventsArr.push(val)
| } else {
| eventsArr.forEach((item, index, eventsArr) => {
| // 若为修改日程
| if (item.eventID === val.eventID) {
| throw new Error(index)
| }
| })
| // 若为新增日程
| eventsArr.push(val)
| }
| } catch (e) {
| // 若为修改日程
| eventsArr.splice(e.message, 1, val)
| }
| },
| // 日程删除
| deleteEvent (val) {
| const eventsArr = this.calendarOptions.events
| try {
| eventsArr.forEach((item, index, eventsArr) => {
| if (item.eventID === val) {
| throw new Error(index)
| }
| })
| } catch (e) {
| // 删除指定日程
| eventsArr.splice(parseInt(e.message), 1)
| }
| },
| // 日程事件点击
| handleEvents (info) {
| // console.log('handleEvents.info:', info)
| // this.currentEvents = events
| },
| handleWeekendsToggle () {
| this.calendarOptions.weekends = !this.calendarOptions.weekends
| },
| // 日期点击
| handleDateClick (selectInfo) {
|
| // if (confirm('您是否要在【' + selectInfo.dateStr + '】添加一个新的事件?')) {
| // // 父组件直接调用子组件方法
| // this.$refs.eventDialogue.openDialog('add')
| // // 父组件直接修改子组件变量
| // // this.$refs['eventDialogue'].dialogVisible = true
| // }
|
| },
| // 日程点击信息展示
| handleEventClick (info) {
| // console.log('handleEventClick.info:', info)
| // info.el.style.borderColor = 'red'
| // this.$refs.eventDialogue.openDialog('view', info)
| },
| handleDateSelect (startDate, endDate, allDay, jsEvent, view) {
| console.log(startDate, endDate, allDay, jsEvent, view)
| },
| handleEventMouseEnter (info) {
| const col = info.event.borderColor
| const eve = info.event._def.extendedProps
| const category = info.event._def.extendedProps.category
|
| tippy(info.el, {
| // content:"<div style='width: 280px;background-color:#FAFAFA;padding:5px;font-size:14px;z-index:99999'>" +
| // "<div style='color: #666666;overflow: hidden;'><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议名称:" + info.event.title+"</div>" +
| // "<div style='color: #666666;overflow: hidden;'><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议类型:"+eve.type+"</div>" +
| // "<div style='color: #666666;overflow: hidden;'><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议时间:"+eve.times+"</div>" +
| // "<div style='color: #666666;overflow: hidden;'><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议状态:"+eve.status+"</div>" +
| // "</div>",
| content: `<div style='width: 260px;background-color:#FAFAFA;padding:5px;font-size:14px;z-index:99999;'>
| <div style='display:flex;color: #666666;overflow: hidden;' class="${eve.category == 1 ? 'hidden' : ''}">
| <div><span style='display:inline-block;width:6px;height:6px;background-color:${col};border-radius:50%;margin:0 5px;'></span>活动名称: </div>
| <div style="width:161px;white-space:normal;overflow: auto;table-layout:fixed; word-break: break-all; height:auto;display:inner-block">${info.event.title}</div>
| </div>
|
| </div>`,
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议类型:${eve.type}</div>
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议时间:${eve.times}</div>
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 1 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>会议状态:${eve.status}</div>
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>年份:${eve.year}</div>
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>领域角色:${eve.depRoleName}</div>
| // <div style='color: #666666;overflow: hidden;' class="${eve.category == 0 ? 'hidden' : ''}"><span style='display:inline-block;width:6px;height:6px;background-color:#318DDE;border-radius:50%;margin:0 5px;'></span>姓名:${eve.name}</div>
| theme: 'light-border', // 主题选取
| // trigger: 'click', //触发类型
| interactive: true, // 可交互的
| placement: 'top-start', // 悬浮框位置
| allowHTML: true, // 是否允许html文本
| zIndex: 99999
| })
| },
| // 日程事件触发
| eventClick (info) {
| console.log('eventClick.info:', info)
| info.el.style.borderColor = 'red'
| },
| // 日程拖动事件
| handleEventDrop (info) {
| // this.$refs.eventDialogue.eventFormModel.start = info.event.start
| // this.$refs.eventDialogue.eventFormModel.end = info.event.end
| },
| // 日程缩放事件
| eventResize (info) {
| // this.$refs.eventDialogue.eventFormModel.start = info.event.start
| // this.$refs.eventDialogue.eventFormModel.end = info.event.end
| },
| closeCurrent () {
| this.$store.commit('SET_CALENDERSHOW', false)
| }
| }
| }
| </script>
|
| <style lang="scss" scoped>
| .calender-box {
| position: absolute;
| z-index: 99;
| background: #fff;
| width: 960px;
| height: 660px;
| top: 0;
| left: 0;
| right: 0;
| bottom: 0;
| margin: auto;
| border-radius: 10px;
| overflow: hidden;
| box-shadow: 0 0 4px 2px #dddddd;
|
| .header {
| position: relative;
| padding: 0 10px;
| line-height: 40px;
| background: #2196f3;
| color: #fff;
| font-size: 18px;
| .celebrate {
| width: 20px;
| height: 20px;
| vertical-align: middle;
| }
| .close {
| position: absolute;
| right: 10px;
| top: 0;
| left: auto;
| bottom: 0;
| margin: auto;
| width: 16px;
| height: 16px;
| cursor: pointer;
| }
| }
|
| .content {
| margin-top: 10px;
| padding: 0 10px 10px 10px;
| height: calc(100% - 50px);
| }
| }
| </style>
|
|