| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
-
- $(document).ready(function() {
- $('#calendar').calendar();
- var calendar = $('#calendar').data('zui.calendar');
- var newEvents =
- [
- {title: '考核二班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
- {title: '考核三班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
- {title: '考核四班-晚班', start: '2017-5-1 ', end: '2017-5-1 '},
- {title: '考核一班-休息', start: '2017-5-1 ', end: '2017-5-1 '},
- {title: '考核二班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
- {title: '考核三班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
- {title: '考核四班-晚班', start: '2017-5-12 ', end: '2017-5-12 '},
- {title: '考核一班-休息', start: '2017-5-12 ', end: '2017-5-12 '},
- {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
- {title: '未排班', start: '2017-5-11 ', end: '2017-5-11'},
- {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
- {title: '未排班', start: '2017-5-11 ', end: '2017-5-11 '},
- {title: '未排班', start: '2017-5-13 ', end: '2017-5-13 '},
- {title: '未排班', start: '2017-5-13 ', end: '2017-5-13'},
- {title: '未排班', start: '2017-5-13 ', end: '2017-5-13 '},
-
- ];
- calendar.addEvents(newEvents);
- // 请求稽查人员排班数据
-
- var data = {
- "dept_id":1 ,
- "start_time":new Date(),
- "end_time":new Date()
- }
- post_common_service( "teamClass/getClassList",data,function(data){
- console.log(data );
- },function(error){})
- $('#calendar').calendar().on("clickEvent.zui.calendar", function(event) {
- console.log(event.event);
- // alert(event.event.title);
- // console.log("你点击了一个事件");
- // 处理 clickEvent 事件
- // ...
- // 对话框弹出
- $('#myModal').modal();
- });
- })
|