|
|
@@ -18,7 +18,7 @@ var bootstrap = function ($, learun) { |
|
|
|
}, 220, 400); |
|
|
|
$('#Name').lrDataSourceSelect({ code: 'TeacherInfo',value: 'f_encode',text: 'f_realname' }); |
|
|
|
$('#Department').lrDataSourceSelect({ code: 'classdata',value: 'id',text: 'name' }); |
|
|
|
$('#Types').lrDataItemSelect({ code: 'NewAssType' }); |
|
|
|
$('#Types').lrDataItemSelect({ code: 'AssType' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -103,7 +103,7 @@ var bootstrap = function ($, learun) { |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'NewAssType', |
|
|
|
code: 'AssType', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
@@ -153,6 +153,18 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "数量", name: "Nuantity", width: 100, align: "left" }, |
|
|
|
{ |
|
|
|
label: "使用状态", name: "Status", width: 100, align: "left", |
|
|
|
formatterAsync: function (callback, value, row, op, $cell) { |
|
|
|
learun.clientdata.getAsync('dataItem', { |
|
|
|
key: value, |
|
|
|
code: 'AssState', |
|
|
|
callback: function (_data) { |
|
|
|
callback(_data.text); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}, |
|
|
|
{ label: "备注", name: "Remark", width: 100, align: "left"}, |
|
|
|
], |
|
|
|
mainId:'Id', |
|
|
|