Browse Source

教师登录 个人信息优化

黑艺新账号
ndbs 10 months ago
parent
commit
c2e112655a
1 changed files with 15 additions and 31 deletions
  1. +15
    -31
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml

+ 15
- 31
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml View File

@@ -1,6 +1,6 @@
@{ @{
ViewBag.Title = "个人中心";
Layout = "~/Views/Shared/_Index.cshtml";
ViewBag.Title = "个人中心";
Layout = "~/Views/Shared/_Index.cshtml";
} }
@Html.AppendCssFile("/Views/UserCenter/Index.css", @Html.AppendCssFile("/Views/UserCenter/Index.css",
"/Views/UserCenter/user.css") "/Views/UserCenter/user.css")
@@ -304,16 +304,13 @@
}, },
healthStatusNo: function (value) { healthStatusNo: function (value) {
var result; var result;
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus',
top.learun.clientdata.getAsync('dataItem', {
key: value, key: value,
keyId: 'healthstatusno',
code: 'BCdHealthStatus',
callback: function (_data) { callback: function (_data) {
result = _data.healthstatus;
result = _data.text;
} }
}); });

return result; return result;
}, },
deptNo: function (value) { deptNo: function (value) {
@@ -421,8 +418,8 @@
<li>毕业学校 : {{teacherInfo.GraduateSchoolName}} </li> <li>毕业学校 : {{teacherInfo.GraduateSchoolName}} </li>
<li>毕业时间 : {{teacherInfo.GraduateDate1}} </li> <li>毕业时间 : {{teacherInfo.GraduateDate1}} </li>
<li>是否代课 : {{teacherInfo.IsHasLesson | IsHasLessonNo}}</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> </ul>
</div> </div>


@@ -527,19 +524,16 @@
} }
}); });
return result; return result;
},
},
healthStatusNo: function (value) { healthStatusNo: function (value) {
var result; var result;
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus',
top.learun.clientdata.getAsync('dataItem', {
key: value, key: value,
keyId: 'healthstatusno',
code: 'BCdHealthStatus',
callback: function (_data) { callback: function (_data) {
result = _data.healthstatus;
result = _data.text;
} }
}); });

return result; return result;
}, },
deptNo: function (value) { deptNo: function (value) {
@@ -643,13 +637,11 @@
}, },
degreeNo: function (value) { degreeNo: function (value) {
var result; var result;
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdDegree',
top.learun.clientdata.getAsync('dataItem', {
key: value, key: value,
keyId: 'degreeno',
code: 'DegreeInSchool',
callback: function (_data) { callback: function (_data) {
result = _data['degreename'];
result = _data.text;
} }
}); });
return result; return result;
@@ -690,15 +682,7 @@
return result; return result;
}, },
IsHasLessonNo: function (value) { IsHasLessonNo: function (value) {
var result;
top.learun.clientdata.getAsync('dataItem', {
key: value,
code: 'YesOrNoBit',
callback: function (_data) {
result = _data.text;
}
});
return result;
return value ? "是" : "否";
} }
} }




Loading…
Cancel
Save