| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- // var page_size=10;
- function queryCheckedTask() {
- var t = getTimeByMonth(GV("#start_time"));
- var data = {
- "start_time": getMomentTimeFormat(t.starttime),
- "end_time": getMomentTimeFormat(t.endtime),
- "checked_dept": $("#fsList").val(),
- "hasScore": $("#hasScoreList").val(),
- "check_status_arr": [4, 5, 6]
- };
- var hide = false;
- if (hasRole(ROLE_FWQ_ADMIN) || hasRole(ROLE_FWQ) || hasRole(ROLE_JICHA) || roleContains('FWQ')) {
- hide = true;
- }
- 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: 160, text: '考核部门', type: 'string', flex: true, sort: 'down', field: 'checked_dept_name' },
- { width: 80, text: '稽查人员', type: 'string', flex: true, hide: hide, field: 'checkman_name' },
- { width: 160, text: '稽查时间段', type: 'string', flex: true, sort: 'down', field: 'check_period' },
- // {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
- // }
- checkedTaskTableObj = $('#checked_datatable').mytable({
- 'cols': cols,
- 'url': "/f/task/getall/",
- 'param': data,
- 'pager': {
- 'page_size': 10,
- 'p_cur': cur_page
- }
- });
- //保存上次查询参数
- $.zui.store.set('store_param_' + current_url, data);
- }
- function showTaskDetail(id) {
- var rowData = getItemByIdFromArr(id, $('#checked_datatable').mytable('getTableData'));
- $.checkTask = rowData;
- changePage("/fwq/view/task/taskDetail.html", checkedTaskTableObj);
- }
|