|
|
@@ -17,13 +17,14 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); |
|
|
|
$('#TCNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); |
|
|
|
$('#FilePath').lrUploader(); |
|
|
|
}, |
|
|
|
initData: function () { |
|
|
|
if (!!keyValue) { |
|
|
|
$.lrSetForm(top.$.rootUrl + '/PersonnelManagement/TeacherCertificate/GetFormData?keyValue=' + keyValue, function (data) { |
|
|
|
for (var id in data) { |
|
|
|
if (!!data[id].length && data[id].length > 0) { |
|
|
|
$('#' + id ).jfGridSet('refreshdata', data[id]); |
|
|
|
$('#' + id).jfGridSet('refreshdata', data[id]); |
|
|
|
} |
|
|
|
else { |
|
|
|
$('[data-table="' + id + '"]').lrSetFormData(data[id]); |
|
|
|