@@ -108,7 +108,7 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "性别", name: "GenderNo", width: 80, align: "left", | label: "性别", name: "GenderNo", width: 80, align: "left", | ||||
formatter: function (cellvalue) { | formatter: function (cellvalue) { | ||||
return cellvalue == true ? "男" : "女"; | |||||
return cellvalue === true ? "男" : "女"; | |||||
} | } | ||||
}, | }, | ||||
{ label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" }, | { label: "身份证号", name: "IdentityCardNo", width: 150, align: "left" }, | ||||
@@ -190,6 +190,7 @@ | |||||
}, | }, | ||||
filters: { | filters: { | ||||
sex: function (value) { | sex: function (value) { | ||||
console.log(value); | |||||
return value ? "男生" : "女生"; | return value ? "男生" : "女生"; | ||||
}, | }, | ||||
@@ -102,6 +102,13 @@ namespace Learun.Application.WebApi.Modules | |||||
return Success(new { appid, secret }); | return Success(new { appid, secret }); | ||||
} | } | ||||
public class wxinfo | |||||
{ | |||||
public string errcode { get; set; } | |||||
public string errmsg { get; set; } | |||||
public string openid { get; set; } | |||||
} | |||||
public Response GetWeixinAccess_token(dynamic _) | public Response GetWeixinAccess_token(dynamic _) | ||||
{ | { | ||||
var entity = weChatConfigIbll.GetEnableEntity(); | var entity = weChatConfigIbll.GetEnableEntity(); | ||||
@@ -112,7 +119,7 @@ namespace Learun.Application.WebApi.Modules | |||||
var responsejson = HttpGet("https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appid + "&secret=" + secret + "&code=" + code + "&grant_type=authorization_code"); | var responsejson = HttpGet("https://api.weixin.qq.com/sns/oauth2/access_token?appid=" + appid + "&secret=" + secret + "&code=" + code + "&grant_type=authorization_code"); | ||||
if (!string.IsNullOrEmpty(responsejson)) | if (!string.IsNullOrEmpty(responsejson)) | ||||
{ | { | ||||
var weixintokenobj = JsonConvert.DeserializeObject<dynamic>(responsejson); | |||||
var weixintokenobj = JsonConvert.DeserializeObject<wxinfo>(responsejson); | |||||
if (string.IsNullOrEmpty(weixintokenobj.errcode)) | if (string.IsNullOrEmpty(weixintokenobj.errcode)) | ||||
{ | { | ||||
string openid = weixintokenobj.openid; | string openid = weixintokenobj.openid; | ||||
@@ -62,7 +62,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
[NotMapped] public string StuCode { get; set; } | [NotMapped] public string StuCode { get; set; } | ||||
[NotMapped] public string StuName { get; set; } | [NotMapped] public string StuName { get; set; } | ||||
[NotMapped] public string GenderNo { get; set; } | |||||
[NotMapped] public bool? GenderNo { get; set; } | |||||
[NotMapped] public string IdentityCardNo { get; set; } | [NotMapped] public string IdentityCardNo { get; set; } | ||||
[NotMapped] public string DeptNo { get; set; } | [NotMapped] public string DeptNo { get; set; } | ||||
[NotMapped] public string MajorNo { get; set; } | [NotMapped] public string MajorNo { get; set; } | ||||
@@ -21,8 +21,8 @@ export default { | |||||
// "http://192.168.2.98:8088/" | // "http://192.168.2.98:8088/" | ||||
// ], | // ], | ||||
"apiHost": [ | "apiHost": [ | ||||
// "http://localhost:31173/" | |||||
"http://123.57.209.16:31173/" | |||||
"http://localhost:31173/" | |||||
// "http://123.57.209.16:31173/" | |||||
], | ], | ||||
"webHost":"http://demo.bjquanjiang.com:8081/", | "webHost":"http://demo.bjquanjiang.com:8081/", | ||||
// 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | // 开发环境下自动填充登录账号密码,与接口地址一一对应,只在开发环境下显示 | ||||