@@ -22,7 +22,7 @@ | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | <div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | ||||
<div class="lr-form-item-title">任教学科</div> | <div class="lr-form-item-title">任教学科</div> | ||||
<input id="TCClass" type="text" class="form-control" /> | |||||
<div id="TCClass"></div> | |||||
</div> | </div> | ||||
<div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | <div class="col-xs-12 lr-form-item" data-table="TeacherCertificate"> | ||||
<div class="lr-form-item-title">批准单位</div> | <div class="lr-form-item-title">批准单位</div> | ||||
@@ -18,6 +18,7 @@ var bootstrap = function ($, learun) { | |||||
$('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | $('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); | ||||
$('#TCNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | $('#TCNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); | ||||
$('#FilePath').lrUploader(); | $('#FilePath').lrUploader(); | ||||
$('#TCClass').lrDataItemSelect({ code: 'xkfl' }); | |||||
}, | }, | ||||
initData: function () { | initData: function () { | ||||
if (!!keyValue) { | if (!!keyValue) { | ||||
@@ -125,7 +125,18 @@ var bootstrap = function ($, learun) { | |||||
}); | }); | ||||
} | } | ||||
}, | }, | ||||
{ label: "任教学科", name: "TCClass", width: 100, align: "left" }, | |||||
{ | |||||
label: "任教学科", name: "TCClass", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('dataItem', { | |||||
key: value, | |||||
code: 'xkfl', | |||||
callback: function (_data) { | |||||
callback(_data.text); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "批准时间", name: "TCTime", width: 100, align: "left" }, | { label: "批准时间", name: "TCTime", width: 100, align: "left" }, | ||||
{ label: "批准单位", name: "TCUnit", width: 100, align: "left" }, | { label: "批准单位", name: "TCUnit", width: 100, align: "left" }, | ||||
{ label: "批准文号", name: "TCNum", width: 100, align: "left" }, | { label: "批准文号", name: "TCNum", width: 100, align: "left" }, | ||||