From bd482c0e6b583d60bdd3d5864087345aa100771b Mon Sep 17 00:00:00 2001 From: ndbs Date: Tue, 10 Dec 2024 16:58:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=A6=E7=94=9F=E5=AD=A6=E7=B1=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/StuInfoBasic/Index.js | 140 ++++++++---------- 1 file changed, 59 insertions(+), 81 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js index 6aaf91c4c..22461e4f2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/Index.js @@ -447,44 +447,49 @@ var bootstrap = function ($, learun) { } }, { - label: "省", name: "F_ProvinceId", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE', - key: value, - keyId: 'pcode', - callback: function (_data) { - callback(_data['pname']); - } - }); - } - }, - { - label: "市", name: "F_CityId", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY', - key: value, - keyId: 'ccode', - callback: function (_data) { - callback(_data['cname']); - } - }); - } - }, - { - label: "县/区", name: "F_CountyId", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA', - key: value, - keyId: 'acode', - callback: function (_data) { - callback(_data['aname']); - } - }); - } + label: "籍贯", name: "RegionNo", width: 100, align: "left", + }, + + //{ + // label: "省", name: "F_ProvinceId", width: 100, align: "left", + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('custmerData', { + // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE', + // key: value, + // keyId: 'pcode', + // callback: function (_data) { + // callback(_data['pname']); + // } + // }); + // } + //}, + //{ + // label: "市", name: "F_CityId", width: 100, align: "left", + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('custmerData', { + // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY', + // key: value, + // keyId: 'ccode', + // callback: function (_data) { + // callback(_data['cname']); + // } + // }); + // } + //}, + //{ + // label: "县/区", name: "F_CountyId", width: 100, align: "left", + // formatterAsync: function (callback, value, row, op, $cell) { + // learun.clientdata.getAsync('custmerData', { + // url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA', + // key: value, + // keyId: 'acode', + // callback: function (_data) { + // callback(_data['aname']); + // } + // }); + // } + //}, { label: "政治面貌", name: "PartyFaceNo", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { @@ -602,7 +607,7 @@ var bootstrap = function ($, learun) { }, { label: "学生居住地类型", name: "StuLivePlaceType", width: 100, align: "left", - formatterAsync: function(callback, value, row, op, $cell) { + formatterAsync: function (callback, value, row, op, $cell) { learun.clientdata.getAsync('dataItem', { key: value, code: 'StuLivePlaceType', @@ -614,14 +619,8 @@ var bootstrap = function ($, learun) { }, { label: "是否困难家庭", name: "IsDdifficulty", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - callback(_data.text); - } - }); + formatter: function (cellvalue) { + return cellvalue == 1 ? "是" : "否"; } }, { @@ -713,49 +712,28 @@ var bootstrap = function ($, learun) { { label: "监护人联系方式", name: "GuardianPhone", width: 100, align: "left" }, { label: "走读", name: "IsRunSchool", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - callback(_data.text); - } - }); + formatter: function (cellvalue) { + return cellvalue == 1 ? "是" : "否"; } }, { label: "留守", name: "IsLeft", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - callback(_data.text); - } - }); - } }, + formatter: function (cellvalue) { + return cellvalue == 1 ? "是" : "否"; + } + }, { label: "孤儿", name: "IsDisability", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - callback(_data.text); - } - }); - } }, + formatter: function (cellvalue) { + return cellvalue == 1 ? "是" : "否"; + } + }, { label: "单亲", name: "IsSingle", width: 100, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - callback(_data.text); - } - }); - } }, + formatter: function (cellvalue) { + return cellvalue == 1 ? "是" : "否"; + } + }, //{ // label: "是否上传头像", name: "Photo", width: 80, align: "center", // formatter: function (cellvalue) {