|
|
@ -9,6 +9,7 @@ |
|
|
|
$('#manage').addClass('active'); |
|
|
|
|
|
|
|
this.ReLayout(); |
|
|
|
this.InitOrgList(); |
|
|
|
this.InitDataGrid(); |
|
|
|
this.ReLoadTableData(); |
|
|
|
|
|
|
@ -33,6 +34,27 @@ |
|
|
|
$('.manage-table, .manage-table .datagrid').height(height - 109); |
|
|
|
}; |
|
|
|
|
|
|
|
this.InitOrgList = function () { |
|
|
|
$.ajax({ |
|
|
|
type: "POST", |
|
|
|
dataType: 'text', |
|
|
|
url: '/OrgManagement/Query', |
|
|
|
data: { |
|
|
|
pageIndex: 1, |
|
|
|
pageSize: 10000 |
|
|
|
}, |
|
|
|
success: function (result) { |
|
|
|
console.log(JSON.parse(result)); |
|
|
|
$('#org-list').combobox({ |
|
|
|
valueField: 'Id', |
|
|
|
textField: 'Name', |
|
|
|
data: JSON.parse(result).rows |
|
|
|
|
|
|
|
}); |
|
|
|
}.bind(this) |
|
|
|
}); |
|
|
|
}; |
|
|
|
|
|
|
|
this.InitDataGrid = function () { |
|
|
|
$('#task-grid').datagrid({ |
|
|
|
columns: [[ |
|
|
@ -67,7 +89,6 @@ |
|
|
|
pageSize: 10 |
|
|
|
}, |
|
|
|
success: function (result) { |
|
|
|
console.log(JSON.parse(result)) |
|
|
|
$('#task-grid').datagrid('loadData', JSON.parse(result)); |
|
|
|
}.bind(this) |
|
|
|
}); |
|
|
|