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.
 
 
 
 
 
 

80 lines
3.2 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. $("#PM_PositionChange").attr("src", "/EducationalAdministration/PM_PositionChange/Index?empId=" + NewEmpId);
  25. $("#PM_YearAssess").attr("src", "/EducationalAdministration/PM_YearAssess/Index?empId=" + NewEmpId);
  26. // 显示信息选项卡
  27. $('#tablist').lrFormTabEx();
  28. $('#tablist li').eq(0).trigger('click');
  29. },
  30. initData: function () {
  31. learun.httpAsyncGet(top.$.rootUrl + '/UserCenter/GetUserInfo', function (res) {
  32. if (res.code == 200) {
  33. baseinfo = res.data.baseinfo;
  34. /*基础信息*/
  35. $('#F_Account').val(baseinfo.account);
  36. $('#F_EnCode').val(baseinfo.enCode);
  37. $('#F_RealName').val(baseinfo.realName);
  38. $('#F_Gender').val(baseinfo.gender == 0 ? '女' : '男');
  39. learun.clientdata.getAsync('company', {
  40. key: baseinfo.companyId,
  41. callback: function (_data) {
  42. $('#F_Company').val(_data.name);
  43. }
  44. });
  45. learun.clientdata.getAsync('department', {
  46. key: baseinfo.departmentId,
  47. callback: function (_data) {
  48. $('#F_Department').val(_data.name);
  49. }
  50. });
  51. var post = [], role = [];
  52. $.each(res.data.post, function (id, item) {
  53. post.push(item.F_Name);
  54. });
  55. $.each(res.data.role, function (id, item) {
  56. role.push(item.F_FullName);
  57. });
  58. $('#Post').val(String(post));
  59. $('#Role').val(String(role));
  60. $('#F_Description').val(baseinfo.description);
  61. }
  62. else {
  63. learun.alert.error('数据加载失败');
  64. }
  65. }.bind(this));
  66. }
  67. };
  68. refreshGirdData = function () {
  69. page.initData();
  70. };
  71. page.init();
  72. }