Browse Source

学籍信息查看报错修改

大厂分支
liangkun 4 years ago
parent
commit
8bfe4d33bd
2 changed files with 9 additions and 5 deletions
  1. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml
  2. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs

+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuInfoBasic/FormView.cshtml View File

@@ -110,7 +110,7 @@
},
methods: {
getData: function () {
$.get('/UserCenter/GetStudentInfo?stuNo=' + keyValue, function (ref) {
$.get('/UserCenter/GetStudentInfo?stuId=' + keyValue, function (ref) {
this.studentInfo = ref.data.userInfo;
this.baseInfo = ref.data.basicInfo;
this.headUrl = ref.data.userInfo.Photo;


+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Controllers/UserCenterController.cs View File

@@ -202,13 +202,13 @@ namespace Learun.Application.Web.Controllers
return JsonResult(jsonData);
}

public ActionResult GetStudentInfo(string stuNo = null)
public ActionResult GetStudentInfo(string stuId = null)
{
var data = LoginUserInfo.Get();
var result = new StuInfoBasicEntity();
if (stuNo != null)
if (stuId != null)
{
result = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(stuNo);
result = stuInfoBasicIBLL.GetStuInfoBasicEntity(stuId);
}
else
{
@@ -222,7 +222,11 @@ namespace Learun.Application.Web.Controllers
{
photo = "/" + photo.Substring(photo.IndexOf("Resource"));
}

else
{
photo = Config.GetValue("fileHeadImg") +"/"+ (result.GenderNo==true? "on-boy.jpg" : "on-girl.jpg");
photo = "/" + photo.Substring(photo.IndexOf("Content"));
}
result.Photo = photo;
}
return Success(new { basicInfo = data, userInfo = result });


Loading…
Cancel
Save