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 @@ <li>毕业学校 : {{teacherInfo.GraduateSchoolName}} </li> <li>毕业时间 : {{teacherInfo.GraduateDate1}} </li> <li>是否代课 : {{teacherInfo.IsHasLesson | IsHasLessonNo}}</li> - <li>文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}} </li> - <li>现任职务: {{teacherInfo.Title}}</li> + <li>@*文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}}*@ </li> + <li>现任职务: {{teacherInfo.JobTitle}}</li> </ul> </div> @@ -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 ? "是" : "否"; } }