From e70d8a765aa4f8f3ed0f25a27635128f13a27d83 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 11 Nov 2024 13:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E8=AF=81=E4=B9=A6=E7=AE=A1?= =?UTF-8?q?=E7=90=86=20[=E4=BB=BB=E6=95=99=E5=AD=A6=E7=A7=91]=E6=94=B9?= =?UTF-8?q?=E4=B8=8B=E6=8B=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/TeacherCertificate/Form.cshtml | 2 +- .../Views/TeacherCertificate/Form.js | 1 + .../Views/TeacherCertificate/Index.js | 13 ++++++++++++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml index 9abfda267..75d13b2c3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.cshtml @@ -22,7 +22,7 @@
任教学科
- +
批准单位
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js index fc8edc4ab..37f937ef3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Form.js @@ -18,6 +18,7 @@ var bootstrap = function ($, learun) { $('#TCTypeID').lrDataItemSelect({ code: 'jszgzl' }); $('#TCNo').lrDataSourceSelect({ code: 'teacheruserdata', value: 'f_encode', text: 'f_realname' }); $('#FilePath').lrUploader(); + $('#TCClass').lrDataItemSelect({ code: 'xkfl' }); }, initData: function () { if (!!keyValue) { diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js index ab94f1836..9ee90980e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/TeacherCertificate/Index.js @@ -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: "TCUnit", width: 100, align: "left" }, { label: "批准文号", name: "TCNum", width: 100, align: "left" },