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.
 
 
 
 
 
 

328 lines
14 KiB

  1. @{
  2. ViewBag.Title = "教师信息管理";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. @Html.AppendCssFile("/Views/UserCenter/user.css")
  6. <style>
  7. .lr-layout-center .lr-layout-wrap .lr-form-wrap {
  8. overflow: auto;
  9. }
  10. </style>
  11. <div class="lr-form-wrap" style="height:100%;overflow:auto">
  12. <div id="teacher" class="user_warpper student_warpper">
  13. <div class="index_sec index_sec1">
  14. @*<div class="userTitle">基本信息</div>*@
  15. <!-- / user_sec1 -->
  16. <div class="user_sec1">
  17. <img src="~/Content/images/Login/user4.png" />
  18. <div class="userSec1Box">
  19. <div class="userSec1L">
  20. <div class="userSec1Img">
  21. @*<img src="~/Content/images/Login/user3.jpg" />*@
  22. <img :src="this.headUrl" />
  23. </div>
  24. <div class="userSec1T">{{teacherInfo.EmpName}}</div>
  25. </div>
  26. <ul class="userSec1R">
  27. <li>职 &nbsp; 工 &nbsp; 号 :{{teacherInfo.EmpNo}} </li>
  28. <li>性 &nbsp; &nbsp; &nbsp; 别 : {{teacherInfo.GenderNo | sex}}</li>
  29. <li>出生日期 : {{teacherInfo.Birthday | date}}</li>
  30. <li>联系电话 : {{teacherInfo.mobile}}</li>
  31. <li v-if="baseInfo">校 &nbsp; &nbsp; &nbsp; 区 : {{baseInfo.companyId | company}}</li>
  32. <li>教职工类别 : {{teacherInfo.EmpSortNo | empSortNo}}</li>
  33. <li>聘任职称 : {{teacherInfo.TitleOfTechPostNo | titleOfTechPostNo}}</li>
  34. </ul>
  35. </div>
  36. </div>
  37. <!-- / user_sec1 -->
  38. <!-- / user_sec2 -->
  39. <div class="user_sec2">
  40. <div class="userSec2Box">
  41. <div class="userSec2T">基本信息 <i class="fa fa-angle-right"></i></div>
  42. <ul class="userSec2List">
  43. <li>民 族 : {{teacherInfo.NationalityNo | nationalityNo}}</li>
  44. <li>政治面貌 : {{teacherInfo.PartyFaceNo | partyFaceNo}}</li>
  45. <li>身份证号 : {{teacherInfo.IdentityCardNo}} </li>
  46. <li>E-mail : {{teacherInfo.EMail}}</li>
  47. <li>档案所在地 : {{teacherInfo.LocusOfArchives}} </li>
  48. <li>户口所在地 : {{teacherInfo.LocusOfResidence}} </li>
  49. </ul>
  50. </div>
  51. <div class="userSec2Box">
  52. <div class="userSec2T">家庭情况 <i class="fa fa-angle-right"></i></div>
  53. <ul class="userSec2List">
  54. <li>港澳台侨 : {{teacherInfo.OverseasChineseNo | overseasChineseNo}} </li>
  55. <li>健康状况 : {{teacherInfo.HealthStatusNo | healthStatusNo}}</li>
  56. <li>家庭出身 : {{teacherInfo.FamilyOriginNo | familyOriginNo}} </li>
  57. <li>外语语种 : {{teacherInfo.ForeignLanguageNo | foreignLanguageNo}} </li>
  58. <li>户籍省份 : {{teacherInfo.ProvinceNo | provinceNo}} </li>
  59. <li>户籍地市 : {{teacherInfo.CityNo | cityNo}} </li>
  60. <li>户籍县区 : {{teacherInfo.RegionNo | regionNo}} </li>
  61. </ul>
  62. </div>
  63. <div class="userSec2Box">
  64. <div class="userSec2T">其他 <i class="fa fa-angle-right"></i></div>
  65. <ul class="userSec2List">
  66. <li>学科门 : {{teacherInfo.SubjectSpeciesNo | subjectSpeciesNo}}</li>
  67. <li>现任职务: {{teacherInfo.Title}}</li>
  68. <li>文化程度 : {{teacherInfo.CultureDegreeNo | cultureDegreeNo}} </li>
  69. <li>毕业学校 : {{teacherInfo.GraduateSchoolName}} </li>
  70. <li>最高学位 : {{teacherInfo.DegreeNo | degreeNo}}</li>
  71. <li>来校年月 : {{teacherInfo.InSchoolDate | date}}</li>
  72. </ul>
  73. </div>
  74. <div class="userSec2Box">
  75. <div class="userSec2T">联系方式 <i class="fa fa-angle-right"></i></div>
  76. <ul class="userSec2List">
  77. <li>紧急联系人 : {{teacherInfo.Linkman}}</li>
  78. <li>紧急联系人电话 : {{teacherInfo.PhoneOfLinkman}}</li>
  79. </ul>
  80. </div>
  81. </div>
  82. <!-- / user_sec2 -->
  83. </div>
  84. </div>
  85. <script>
  86. var keyValue = request('keyValue');
  87. new Vue({
  88. el: "#teacher",
  89. data: {
  90. headUrl: "",
  91. baseInfo: "",
  92. teacherInfo: "",
  93. },
  94. methods: {
  95. getData: function () {
  96. $.get('/UserCenter/GetTeacherInfoById?id='+keyValue, function (ref) {
  97. this.teacherInfo = ref.data.userInfo;
  98. this.baseInfo = ref.data.basecInfo;
  99. }.bind(this), "json");
  100. },
  101. getUrl: function () {
  102. var loginInfo = top.learun.clientdata.get(['userinfo']);
  103. this.headUrl = '/LR_OrganizationModule/User/GetImg?userId=' + loginInfo.userId;
  104. }
  105. },
  106. created() {
  107. this.getData();
  108. this.getUrl();
  109. },
  110. filters: {
  111. sex: function (value) {
  112. return value ? "男" : "女";
  113. },
  114. date: function (value) {
  115. var date = new Date(value);
  116. return date.toLocaleDateString();
  117. },
  118. company: function (value) {
  119. var result;
  120. top.learun.clientdata.getAsync('custmerData', {
  121. sync: true,
  122. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'company',
  123. key: value,
  124. keyId: 'f_companyid',
  125. callback: function (_data) {
  126. result = _data.f_fullname;
  127. }
  128. });
  129. return result;
  130. },
  131. nationalityNo: function (value) {
  132. var result;
  133. top.learun.clientdata.getAsync('custmerData', {
  134. sync: true,
  135. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality',
  136. key: value,
  137. keyId: 'nationalityno',
  138. callback: function (_data) {
  139. result = _data['nationality'];
  140. }
  141. });
  142. return result;
  143. },
  144. partyFaceNo: function (value) {
  145. var result;
  146. top.learun.clientdata.getAsync('custmerData', {
  147. sync: true,
  148. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdPartyFace',
  149. key: value,
  150. keyId: 'partyfaceno',
  151. callback: function (_data) {
  152. result = _data['partyface'];
  153. }
  154. });
  155. return result;
  156. },
  157. overseasChineseNo: function (value) {
  158. var result;
  159. top.learun.clientdata.getAsync('custmerData', {
  160. sync: true,
  161. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdOverseasChinese',
  162. key: value,
  163. keyId: 'overseaschineseno',
  164. callback: function (_data) {
  165. result = _data.overseaschinesename;
  166. }
  167. });
  168. return result;
  169. },
  170. healthStatusNo: function (value) {
  171. var result;
  172. top.learun.clientdata.getAsync('custmerData', {
  173. sync: true,
  174. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdHealthStatus',
  175. key: value,
  176. keyId: 'healthstatusno',
  177. callback: function (_data) {
  178. result = _data.healthstatus;
  179. }
  180. });
  181. return result;
  182. },
  183. subjectSpeciesNo: function (value) {
  184. var result;
  185. top.learun.clientdata.getAsync('custmerData', {
  186. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdSubjectSpecies',
  187. key: value,
  188. keyId: 'subjectspeciesno',
  189. callback: function (_data) {
  190. result = _data.subjectspecies;
  191. }.bind(this)
  192. });
  193. return result;
  194. },
  195. familyOriginNo: function (value) {
  196. var result;
  197. top.learun.clientdata.getAsync('custmerData', {
  198. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdFamilyOrigin',
  199. key: value,
  200. keyId: 'familyoriginno',
  201. callback: function (_data) {
  202. result = _data.familyorigin;
  203. }.bind(this)
  204. });
  205. return result;
  206. },
  207. foreignLanguageNo: function (value) {
  208. var result;
  209. top.learun.clientdata.getAsync('custmerData', {
  210. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdForeignLanguage',
  211. key: value,
  212. keyId: 'foreignlanguageno',
  213. callback: function (_data) {
  214. result = _data.foreignlanguagename;
  215. }.bind(this)
  216. });
  217. return result;
  218. },
  219. provinceNo: function (value) {
  220. var result;
  221. top.learun.clientdata.getAsync('custmerData', {
  222. sync: true,
  223. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_PROVINCE',
  224. key: value,
  225. keyId: 'pcode',
  226. callback: function (_data) {
  227. result = _data['pname'];
  228. }
  229. });
  230. return result;
  231. },
  232. cityNo: function (value) {
  233. var result;
  234. top.learun.clientdata.getAsync('custmerData', {
  235. sync: true,
  236. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_CITY',
  237. key: value,
  238. keyId: 'ccode',
  239. callback: function (_data) {
  240. result = _data['cname'];
  241. }
  242. });
  243. return result;
  244. },
  245. regionNo: function (value) {
  246. var result;
  247. top.learun.clientdata.getAsync('custmerData', {
  248. sync: true,
  249. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'DIC_AREA',
  250. key: value,
  251. keyId: 'acode',
  252. callback: function (_data) {
  253. result = _data['aname'];
  254. }
  255. });
  256. return result;
  257. },
  258. cultureDegreeNo: function (value) {
  259. var result;
  260. top.learun.clientdata.getAsync('custmerData', {
  261. sync: true,
  262. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdCultureDegree',
  263. key: value,
  264. keyId: 'culturedegreeno',
  265. callback: function (_data) {
  266. result = _data['culturedegree'];
  267. }
  268. });
  269. return result;
  270. },
  271. degreeNo: function (value) {
  272. var result;
  273. top.learun.clientdata.getAsync('custmerData', {
  274. sync: true,
  275. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdDegree',
  276. key: value,
  277. keyId: 'degreeno',
  278. callback: function (_data) {
  279. result = _data['degreename'];
  280. }
  281. });
  282. return result;
  283. },
  284. empSortNo: function (value) {
  285. var result;
  286. top.learun.clientdata.getAsync('dataItem', {
  287. key: value,
  288. code: 'EmpSort',
  289. callback: function (_data) {
  290. result = _data.text;
  291. }
  292. });
  293. return result;
  294. },
  295. titleOfTechPostNo: function (value) {
  296. var result;
  297. top.learun.clientdata.getAsync('custmerData', {
  298. sync: true,
  299. url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdTitleOfTechPost',
  300. key: value,
  301. keyId: 'titleoftechpostno',
  302. callback: function (_data) {
  303. result = _data['titleoftechpost'];
  304. }
  305. });
  306. return result;
  307. }
  308. }
  309. })
  310. </script>
  311. </div>