Pārlūkot izejas kodu

学籍信息查看报错修改

大厂分支
liangkun pirms 4 gadiem
vecāks
revīzija
8bfe4d33bd
2 mainītis faili ar 9 papildinājumiem un 5 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 });


Notiek ielāde…
Atcelt
Saglabāt