| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 | 
							
- function task() {
 
-     $.get('/api/Orders/todo',{orgid:orgid},function (res) {
 
-         if(res.status === 0) {
 
-             var list = res.data.data;
 
-             if(list.length > 0){
 
-                 var str = '';
 
-                 for (var i=0;i<list.length;i++){
 
-                     list[i]['IMAGES'] = list[i]['IMAGES'] ==='' || list[i]['IMAGES']== null ? '否' : '是';
 
-                     list[i]['VIDEOS'] = list[i]['VIDEOS'] ==='' || list[i]['VIDEOS']== null ? '否' : '是';
 
-                     str += '<tr>';
 
-                     str += '<td>'+list[i]['TODO_ID']+'</td>';
 
-                     str += '<td>'+list[i]['TASK_TYPE']+'</td>';
 
-                     str += '<td class="table-task-name">'+list[i]['CONTENT']+'</td>';
 
-                     str += '<td>'+list[i]['executor']+'</td>';
 
-                     str += '<td class="table-task-name">'+list[i]['DEP']+'</td>';
 
-                     str += '<td>'+list[i]['CREATTE_TIME']+'</td>';
 
-                     str += '<td>'+list[i]['IMAGES']+'</td>';
 
-                     str += '<td>'+list[i]['VIDEOS']+'</td>';
 
-                     str += '<td>'+list[i]['HANDOUT_TIME']+'</td>';
 
-                     if (list[i]['TODO_MODE'] == 3) {
 
-                         str += '<td style="color: #11F000;">' + '已完成' + '</td>';
 
-                     } else {
 
-                         str += '<td style="color: #FD0000;">' + '未完成' + '</td>';
 
-                     }
 
-                     str += '</tr>';
 
-                 }
 
-                 $('#task-order').html(str);
 
-             }
 
-             if (list.length > 10) {
 
-                 $(function(){
 
-                     var text=$("#task-order:first");
 
-                     var clear;
 
-                     text.hover(function(){
 
-                         clearInterval(clear);
 
-                     },function(){
 
-                         clear=setInterval(function(){
 
-                             var field=text.find("tr:first");
 
-                             var high=field.height();
 
-                             text.animate({ marginTop:-high+"px"},600,function(){
 
-                                 field.css("marginTop",0).appendTo(text);
 
-                                 text.css("marginTop",0);
 
-                             })
 
-                         },3000)//滚动间隔时间
 
-                     }).trigger("mouseleave");//自动滚动
 
-                 });
 
-             }
 
-         }
 
-     })
 
- }
 
- task();
 
- setInterval(function () {
 
-     task();
 
- },1000*60);
 
- function realSysTime(clock) {
 
-     var now = new Date();
 
-     var year = now.getFullYear(); //获取年份
 
-     var month = now.getMonth(); //获取月份
 
-     var date = now.getDate(); //获取日期
 
-     var day = now.getDay(); //获取星期
 
-     var hour = now.getHours(); //获取小时
 
-     var minute = now.getMinutes(); //获取分钟
 
-     var seconds = now.getSeconds(); //获取秒
 
-     month = month + 1;
 
-     var arr_week = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");
 
-     var week = arr_week[day];
 
-     if (month<10) {
 
-         month = '0'+month
 
-     }
 
-     if (date<10) {
 
-         date = '0'+date
 
-     }
 
-     if (hour<10) {
 
-         hour = '0'+hour
 
-     }
 
-     if (minute<10) {
 
-         minute = '0'+minute
 
-     }
 
-     if (seconds<10) {
 
-         seconds = '0'+seconds
 
-     }
 
-     var time = year + "年" + month + "月" + date + "日 " + week + " " + hour + ":" + minute + ":" + seconds;
 
-     clock.innerHTML = time;
 
- }
 
- function show() {
 
-     window.setInterval("realSysTime(clock)", 1000);
 
- }
 
- window.onload=show();
 
 
  |