|
@@ -35,11 +35,11 @@ var bootstrap = function ($, learun) { |
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
$('#gridtable').lrAuthorizeJfGrid({ |
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', |
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuInfoBasic/GetPageList', |
|
|
headData: [ |
|
|
headData: [ |
|
|
{ label: "学号", name: "StuNo", width: 200, align: "left" }, |
|
|
|
|
|
{ label: "学籍号", name: "StuCode", width: 200, align: "left" }, |
|
|
|
|
|
{ label: "姓名", name: "StuName", width: 100, align: "left" }, |
|
|
|
|
|
|
|
|
{ label: "学号", name: "StuNo", width: 100, align: "left" }, |
|
|
|
|
|
{ label: "学籍号", name: "StuCode", width: 150, align: "left" }, |
|
|
|
|
|
{ label: "姓名", name: "StuName", width: 150, align: "left" }, |
|
|
{ |
|
|
{ |
|
|
label: "性别", name: "GenderNo", width: 80, align: "left", |
|
|
|
|
|
|
|
|
label: "性别", name: "GenderNo", width: 50, align: "left", |
|
|
formatter: function (cellvalue) { |
|
|
formatter: function (cellvalue) { |
|
|
return cellvalue == true ? "男" : "女"; |
|
|
return cellvalue == true ? "男" : "女"; |
|
|
} |
|
|
} |
|
@@ -171,7 +171,9 @@ var bootstrap = function ($, learun) { |
|
|
page.search(); |
|
|
page.search(); |
|
|
}, |
|
|
}, |
|
|
search: function (param) { |
|
|
search: function (param) { |
|
|
if (learun.clientdata.get(['userinfo']).account.toLowerCase() != "system") {//登录用户是system时,列表展示所有学生;其他用户登录时,必须选择左侧班级才能查看学生; |
|
|
|
|
|
|
|
|
var user = learun.clientdata.get(['userinfo']); |
|
|
|
|
|
//登录用户是system或登录用户的角色是班级学籍信息管理,列表展示所有学生;其他用户登录时,必须选择左侧班级才能查看学生; |
|
|
|
|
|
if (user.account.toLowerCase() != "system" && user.roleIds.indexOf("818c298e-ea1d-41d5-be4a-f06b092a420f") != 0) { |
|
|
if (Class == "" || Class == undefined || Class == null) { |
|
|
if (Class == "" || Class == undefined || Class == null) { |
|
|
learun.alert.warning("请选择左侧班级!"); |
|
|
learun.alert.warning("请选择左侧班级!"); |
|
|
return false; |
|
|
return false; |
|
|