From 6acd3a918061a54cd5e6c6a43ae98518eec34d04 Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 22 Apr 2024 16:02:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=80=9F=E4=B9=A6=E8=AF=81=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/BookCard/Index.js | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookCard/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookCard/Index.js index 1d3c02bd3..4c61a38a6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookCard/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/BookCard/Index.js @@ -72,13 +72,37 @@ var bootstrap = function ($, learun) { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/EducationalAdministration/BookCard/GetPageList', headData: [ - { label: "借书证号", name: "LibraryCard", width: 100, align: "left"}, - { label: "借书人编号", name: "BorrowerID", width: 100, align: "left"}, + { label: "借书证号", name: "LibraryCard", width: 120, align: "left"}, + { label: "借书人编号", name: "BorrowerID", width: 120, align: "left"}, { label: "借书数量", name: "AllowNum", width: 100, align: "left"}, - { label: "借书人类型", name: "BorrowerType", width: 100, align: "left"}, - { label: "办证时间", name: "RegistrationTime", width: 100, align: "left"}, - { label: "系部名称", name: "DeptNo", width: 100, align: "left"}, - { label: "校区名称", name: "CompanyID", width: 100, align: "left"}, + { label: "借书人类型", name: "BorrowerType", width: 120, align: "left"}, + { label: "办证时间", name: "RegistrationTime", width: 140, align: "left"}, + { + label: "系部名称", name: "DeptNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'CdDeptInfo', + key: value, + keyId: 'deptno', + callback: function (_data) { + callback(_data['deptname']); + } + }); + } + }, + { + label: "校区名称", name: "CompanyID", width: 200, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('custmerData', { + url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company', + key: value, + keyId: 'f_companyid', + callback: function (_data) { + callback(_data['f_fullname']); + } + }); + } + }, { label: "审核标志", name: "CheckMark", width: 100, align: "left"}, ], mainId:'ID',