// var page_size=10; function queryCheckedTask(){ var data = { "start_time": $("#start_time").val(), "end_time": $("#end_time").val(), "dept": $("#dept").val(), "status_search_type":1, "check_status":4 } var cols = [ {width: 80, text: '序号', type: 'number', flex: true, colClass: 'text-center',field: 'num'}, {width: 160, text: '任务名称', type: 'string', flex: true, sort: 'down',field: 'name'}, {width: 80, text: '考核人员', type: 'string', flex: true, colClass: '',field: 'checked_person_name'}, {width: 160, text: '考核部门', type: 'string', flex: true, sort: 'down',field: 'checked_dept_name'}, {width: 80, text: '稽查人员', type: 'string', flex: true, colClass: '',field: 'checkman_name'}, {width: 160, text: '稽查时间段', type: 'string', flex: true, sort: 'down',field: 'start_time'}, {width: 80, text: '状态', type: 'string', flex: true, colClass: '',field: 'check_status_name'}, {width: 160, text: '操作', type: 'string', flex: true, field: 'id', oper:[ {func:'showTaskDetail',text:'任务详情',icon_class:'icon-tasks'} ] } ]; // var pager = { // page_size:10 // } $('#checked_datatable').mytable({'cols':cols, 'url':"/task/getTaskList/", 'param':data} ); } function showTaskDetail(id){ var rowData=getItemByIdFromArr(id,$('#checked_datatable').mytable('getTableData')); $.checkTask = rowData; changePage("/view/mytask/taskDetail.html"); }