unchecked.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  1. // var page_size=10;
  2. function queryUncheckedTask(){
  3. var data = {
  4. "start_time": $("#start_time").val(),
  5. "end_time": $("#end_time").val(),
  6. "dept": $("#dept").val()
  7. }
  8. var cols = [
  9. {width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center',field: 'num'},
  10. {width: 160, text: '任务名称', type: 'string', flex: true, sort: 'down',field: 'name'},
  11. {width: 80, text: '考核人员', type: 'string', flex: true, colClass: '',field: 'checked_person'},
  12. {width: 160, text: '考核部门', type: 'string', flex: true, sort: 'down',field: 'checked_dept'},
  13. {width: 80, text: '稽查人员', type: 'string', flex: true, colClass: '',field: 'checkman'},
  14. {width: 160, text: '稽查时间段', type: 'string', flex: true, sort: 'down',field: 'start_time'},
  15. {width: 80, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'},
  16. {width: 160, text: '操作', type: 'string', flex: true, field: 'id',
  17. oper:[
  18. {func:'showCheck',text:'稽查',icon_class:'icon-edit'}
  19. ]
  20. }
  21. ];
  22. // var pager = {
  23. // page_size:10
  24. // }
  25. $('.datatable').mytable({'cols':cols,
  26. 'url':"/task/getTaskList/",
  27. 'param':data}
  28. );
  29. }
  30. function showCheck(id){
  31. // $('#myModal').modal({name:"dd"});
  32. $.checkTask =getItemByIdFromArr(id,$('.datatable').mytable('getTableData'));
  33. changePage("/view/mytask/check.html");
  34. }