From c2e112655a5cbe8482f51a610afdbeb122f090eb Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 1 Apr 2024 13:08:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=99=E5=B8=88=E7=99=BB=E5=BD=95=20?= =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/UserCenter/Index.cshtml | 46 ++++++------------- 1 file changed, 15 insertions(+), 31 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml index d9345b2f5..603af0287 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml @@ -1,6 +1,6 @@ @{ - ViewBag.Title = "个人中心"; - Layout = "~/Views/Shared/_Index.cshtml"; + ViewBag.Title = "个人中心"; + Layout = "~/Views/Shared/_Index.cshtml"; } @Html.AppendCssFile("/Views/UserCenter/Index.css", "/Views/UserCenter/user.css") @@ -304,16 +304,13 @@ }, healthStatusNo: function (value) { var result; - top.learun.clientdata.getAsync('custmerData', { - sync: true, - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus', + top.learun.clientdata.getAsync('dataItem', { key: value, - keyId: 'healthstatusno', + code: 'BCdHealthStatus', callback: function (_data) { - result = _data.healthstatus; + result = _data.text; } }); - return result; }, deptNo: function (value) { @@ -421,8 +418,8 @@
  • 毕业学校 : {{teacherInfo.GraduateSchoolName}}
  • 毕业时间 : {{teacherInfo.GraduateDate1}}
  • 是否代课 : {{teacherInfo.IsHasLesson | IsHasLessonNo}}
  • -
  • 文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}}
  • -
  • 现任职务: {{teacherInfo.Title}}
  • +
  • @*文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}}*@
  • +
  • 现任职务: {{teacherInfo.JobTitle}}
  • @@ -527,19 +524,16 @@ } }); return result; - }, + }, healthStatusNo: function (value) { var result; - top.learun.clientdata.getAsync('custmerData', { - sync: true, - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus', + top.learun.clientdata.getAsync('dataItem', { key: value, - keyId: 'healthstatusno', + code: 'BCdHealthStatus', callback: function (_data) { - result = _data.healthstatus; + result = _data.text; } }); - return result; }, deptNo: function (value) { @@ -643,13 +637,11 @@ }, degreeNo: function (value) { var result; - top.learun.clientdata.getAsync('custmerData', { - sync: true, - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdDegree', + top.learun.clientdata.getAsync('dataItem', { key: value, - keyId: 'degreeno', + code: 'DegreeInSchool', callback: function (_data) { - result = _data['degreename']; + result = _data.text; } }); return result; @@ -690,15 +682,7 @@ return result; }, IsHasLessonNo: function (value) { - var result; - top.learun.clientdata.getAsync('dataItem', { - key: value, - code: 'YesOrNoBit', - callback: function (_data) { - result = _data.text; - } - }); - return result; + return value ? "是" : "否"; } }