checked.js 1.7 KB

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