You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

78 lines
3.0 KiB

  1. /*
  2. * 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园(http://www.learun.cn)
  3. * Copyright (c) 2013-2018 北京泉江科技有限公司
  4. * 创建人:陈彬彬
  5. * 日 期:2017.03.22
  6. * 描 述:个人信息维护
  7. */
  8. var baseinfo;
  9. var refreshGirdData;
  10. var bootstrap = function ($, learun) {
  11. "use strict";
  12. var page = {
  13. init: function () {
  14. page.bind();
  15. page.initData();
  16. },
  17. bind: function () {
  18. //选项卡
  19. $("#PM_EducationExperience").attr("src", "/EducationalAdministration/PM_EducationExperience/Index?empId=" + NewEmpId);
  20. $("#PM_TechnicalPost").attr("src", "/EducationalAdministration/PM_TechnicalPost/Index?empId=" + NewEmpId);
  21. $("#PM_WorkerTechnology").attr("src", "/EducationalAdministration/PM_WorkerTechnology/Index?empId=" + NewEmpId);
  22. $("#PM_Resume").attr("src", "/EducationalAdministration/PM_Resume/Index?empId=" + NewEmpId);
  23. $("#PM_FamilySituation").attr("src", "/EducationalAdministration/PM_FamilySituation/Index?empId=" + NewEmpId);
  24. // 显示信息选项卡
  25. $('#tablist').lrFormTabEx();
  26. $('#tablist li').eq(0).trigger('click');
  27. },
  28. initData: function () {
  29. learun.httpAsyncGet(top.$.rootUrl + '/UserCenter/GetUserInfo', function (res) {
  30. if (res.code == 200) {
  31. baseinfo = res.data.baseinfo;
  32. /*基础信息*/
  33. $('#F_Account').val(baseinfo.account);
  34. $('#F_EnCode').val(baseinfo.enCode);
  35. $('#F_RealName').val(baseinfo.realName);
  36. $('#F_Gender').val(baseinfo.gender == 0 ? '女' : '男');
  37. learun.clientdata.getAsync('company', {
  38. key: baseinfo.companyId,
  39. callback: function (_data) {
  40. $('#F_Company').val(_data.name);
  41. }
  42. });
  43. learun.clientdata.getAsync('department', {
  44. key: baseinfo.departmentId,
  45. callback: function (_data) {
  46. $('#F_Department').val(_data.name);
  47. }
  48. });
  49. var post = [], role = [];
  50. $.each(res.data.post, function (id, item) {
  51. post.push(item.F_Name);
  52. });
  53. $.each(res.data.role, function (id, item) {
  54. role.push(item.F_FullName);
  55. });
  56. $('#Post').val(String(post));
  57. $('#Role').val(String(role));
  58. $('#F_Description').val(baseinfo.description);
  59. }
  60. else {
  61. learun.alert.error('数据加载失败');
  62. }
  63. }.bind(this));
  64. }
  65. };
  66. refreshGirdData = function () {
  67. page.initData();
  68. };
  69. page.init();
  70. }