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.
 
 
 
 
 
 

346 lines
17 KiB

  1. <!DOCTYPE html>
  2. <html lang="zh" xmlns:th="http://www.thymeleaf.org">
  3. <head>
  4. <th:block th:include="include :: header('人员详情')" />
  5. <link th:href="@{/css/use/css1.css}" rel="stylesheet"/>
  6. <style>
  7. .gray-bg{
  8. background-color: #ffffff;
  9. }
  10. .piece{
  11. margin-bottom: 20px;
  12. }
  13. .education{
  14. width: 30%;
  15. display: flex;
  16. }
  17. .education div:first-child{
  18. color: #999;
  19. margin-right: 50px;
  20. font-weight: bold;
  21. }
  22. .piece .marks{
  23. width: 10px;
  24. height: 20px;
  25. margin-right: 10px;
  26. margin-top: 3px;
  27. background-color: #1a7bb9;
  28. }
  29. .piece .line{
  30. flex: 0 0 calc(88% - 20px);
  31. margin-left: 20px;
  32. margin-top: 10px;
  33. border-top: 1px solid #E1E1E1;
  34. }
  35. .piece .content .informationText{
  36. padding: 20px;
  37. }
  38. .piece .content {
  39. width: 75%;
  40. max-height: 500px;
  41. box-sizing: border-box;
  42. overflow-y: auto; /* 超出内容出现滚动条 */
  43. border-right: 1px solid #ccc; /* 右边框 */
  44. scrollbar-width: thin; /* Firefox: 设置滚动条宽度为细 */
  45. scrollbar-color: #888 #f1f1f1; /* Firefox: 滚动条颜色和背景颜色 */
  46. }
  47. .piece .sidebar {
  48. width: 25%;
  49. max-height: 500px;
  50. padding: 10px 10px 10px 40px;
  51. position: relative;
  52. }
  53. .piece .title {
  54. margin: 10px 0;
  55. font-size: 16px;
  56. cursor: pointer;
  57. font-weight: bold;
  58. }
  59. .sidebar .arrow {
  60. position: absolute;
  61. width: 0;
  62. height: 0;
  63. border-left: 16px solid blue; /* 三角形底部为左 */
  64. border-right: 16px solid transparent;
  65. border-top: 8px solid transparent;
  66. border-bottom: 8px solid transparent;
  67. left: 10px; /* 三角形位置 */
  68. top: 21px; /* 默认位置 */
  69. transition: top 0.3s; /* 动画效果 */
  70. }
  71. .sidebar .active {
  72. color: blue;
  73. }
  74. /* 自定义滚动条样式 */
  75. .piece .content::-webkit-scrollbar {
  76. width: 6px; /* 设置更细的滚动条宽度 */
  77. }
  78. .piece .content::-webkit-scrollbar-thumb {
  79. background: #888; /* 滚动条颜色 */
  80. border-radius: 10px; /* 滚动条圆角 */
  81. }
  82. .piece .content::-webkit-scrollbar-thumb:hover {
  83. background: #555; /* 滚动条悬停颜色 */
  84. }
  85. </style>
  86. </head>
  87. <body class="gray-bg">
  88. <form class="form-horizontal m" id="form-information-view" th:object="${rwkStaffInformation}">
  89. <input name="id" th:field="*{id}" type="hidden">
  90. <div class="container-div">
  91. <div class="piece">
  92. <h2 style="font-weight: bold;" th:text="*{name}">姓名</h2>
  93. <h3 style="font-weight: normal;" th:text="*{currentOccupation}">职务</h3>
  94. </div>
  95. <div class="piece" style="display: flex;">
  96. <div style="width: 77%; font-size: 16px;">
  97. <div class="basicInfo_UxXSa J-basic-info">
  98. <dl class="basicInfoBlock_q4iJb left">
  99. <div class="itemWrapper_yeNiB">
  100. <dt class="basicInfoItem_aRc0i itemName_PqU2f">性&nbsp;&nbsp;&nbsp;&nbsp;别</dt>
  101. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  102. <span class="text_lqEdu" data-text="true" th:text="*{sex}"></span>
  103. </dd>
  104. </div>
  105. <div class="itemWrapper_yeNiB">
  106. <dt class="basicInfoItem_aRc0i itemName_PqU2f">籍&nbsp;&nbsp;&nbsp;&nbsp;贯</dt>
  107. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  108. <span class="text_lqEdu" data-text="true" th:text="*{nativePlace}"></span>
  109. </dd>
  110. </div>
  111. <div class="itemWrapper_yeNiB">
  112. <dt class="basicInfoItem_aRc0i itemName_PqU2f">加入党派时间</dt>
  113. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  114. <span class="text_lqEdu" data-text="true" th:text="*{joinTime}"></span>
  115. </dd>
  116. </div>
  117. <div class="itemWrapper_yeNiB">
  118. <dt class="basicInfoItem_aRc0i itemName_PqU2f">单位属性</dt>
  119. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  120. <span class="text_lqEdu" data-text="true" th:text="*{unitAttribute}"></span>
  121. </dd>
  122. </div>
  123. <div class="itemWrapper_yeNiB">
  124. <dt class="basicInfoItem_aRc0i itemName_PqU2f">是否取得境外长期居留资格</dt>
  125. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  126. <span class="text_lqEdu" data-text="true" th:text="*{overseasResidencyStatus}"></span>
  127. </dd>
  128. </div>
  129. </dl>
  130. <dl class="basicInfoBlock_q4iJb center">
  131. <div class="itemWrapper_yeNiB">
  132. <dt class="basicInfoItem_aRc0i itemName_PqU2f">出生年月</dt>
  133. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  134. <span class="text_lqEdu" data-text="true" th:text="*{birthday}"></span>
  135. </dd>
  136. </div>
  137. <div class="itemWrapper_yeNiB">
  138. <dt class="basicInfoItem_aRc0i itemName_PqU2f">出&nbsp;生&nbsp;地</dt>
  139. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  140. <span class="text_lqEdu" data-text="true" th:text="*{birthplace}"></span>
  141. </dd>
  142. </div>
  143. <div class="itemWrapper_yeNiB">
  144. <dt class="basicInfoItem_aRc0i itemName_PqU2f">参加工作时间</dt>
  145. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  146. <span class="text_lqEdu" data-text="true" th:text="*{workTime}"></span>
  147. </dd>
  148. </div>
  149. <div class="itemWrapper_yeNiB">
  150. <dt class="basicInfoItem_aRc0i itemName_PqU2f">单位职务级别</dt>
  151. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  152. <span class="text_lqEdu" data-text="true" th:text="*{jobLevel}"></span>
  153. </dd>
  154. </div>
  155. <div class="itemWrapper_yeNiB">
  156. <dt class="basicInfoItem_aRc0i itemName_PqU2f">取得国家</dt>
  157. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  158. <span class="text_lqEdu" data-text="true" th:text="*{acquiringCountry}"></span>
  159. </dd>
  160. </div>
  161. </dl>
  162. <dl class="basicInfoBlock_q4iJb right">
  163. <div class="itemWrapper_yeNiB">
  164. <dt class="basicInfoItem_aRc0i itemName_PqU2f">民&nbsp;&nbsp;&nbsp;&nbsp;族</dt>
  165. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  166. <span class="text_lqEdu" data-text="true" th:text="*{nation}"></span>
  167. </dd>
  168. </div>
  169. <div class="itemWrapper_yeNiB">
  170. <dt class="basicInfoItem_aRc0i itemName_PqU2f">政治面貌</dt>
  171. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  172. <span class="text_lqEdu" data-text="true" th:text="*{party}"></span>
  173. </dd>
  174. </div>
  175. <div class="itemWrapper_yeNiB">
  176. <dt class="basicInfoItem_aRc0i itemName_PqU2f">党派职务</dt>
  177. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  178. <span class="text_lqEdu" data-text="true" th:text="*{partyPositions}"></span>
  179. </dd>
  180. </div>
  181. <div class="itemWrapper_yeNiB">
  182. <dt class="basicInfoItem_aRc0i itemName_PqU2f">宗教信仰</dt>
  183. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  184. <span class="text_lqEdu" data-text="true" th:text="*{religion}"></span>
  185. </dd>
  186. </div>
  187. <div class="itemWrapper_yeNiB">
  188. <dt class="basicInfoItem_aRc0i itemName_PqU2f">证件号</dt>
  189. <dd class="basicInfoItem_aRc0i itemValue_OfJ1R">
  190. <span class="text_lqEdu" data-text="true" th:text="*{idNumber}"></span>
  191. </dd>
  192. </div>
  193. </dl>
  194. </div>
  195. </div>
  196. <div style="width: 25%;display: flex;justify-content: center;align-items: center;flex-direction: column;">
  197. <div style="width: 45%;height: 100%;"><img style="width: 100%;height: 100%" th:src="*{photo}" /></div>
  198. </div>
  199. </div>
  200. <div class="piece" style="font-size: 16px;">
  201. <div style="display: flex;">
  202. <div class="marks"></div><h3>学历&nbsp;&nbsp;学位</h3><span style="flex: 0 0 calc(64% - 20px);" class="line"></span>
  203. </div>
  204. <div style="margin-left: 40px;border-bottom: 1px dashed #DBDBDB;width: 75%;">
  205. <h3>全日制教育</h3>
  206. <div style="display: flex;">
  207. <div class="education">
  208. <div>学&nbsp;&nbsp;&nbsp;&nbsp;历</div>
  209. <div th:text="*{qrzQualification}"></div>
  210. </div>
  211. <div class="education">
  212. <div>学&nbsp;&nbsp;&nbsp;&nbsp;位</div>
  213. <div th:text="*{qrzDegree}"></div>
  214. </div>
  215. <div class="education">
  216. <div>毕业院校系及专业</div>
  217. <div th:text="*{qrzSchoolMajor}">研究生</div>
  218. </div>
  219. </div>
  220. </div>
  221. <div style="margin-left: 40px;border-bottom: 1px dashed #DBDBDB;width: 75%;margin-top:10px;">
  222. <h3>在职教育</h3>
  223. <div style="display: flex;">
  224. <div class="education">
  225. <div>学&nbsp;&nbsp;&nbsp;&nbsp;历</div>
  226. <div th:text="*{zzQualification}"></div>
  227. </div>
  228. <div class="education">
  229. <div>学&nbsp;&nbsp;&nbsp;&nbsp;位</div>
  230. <div th:text="*{zzDegree}"></div>
  231. </div>
  232. <div class="education">
  233. <div>毕业院校系及专业</div>
  234. <div th:text="*{zzSchoolMajor}"></div>
  235. </div>
  236. </div>
  237. </div>
  238. </div>
  239. <div class="piece" style="margin-top: 40px;">
  240. <div style="display: flex;">
  241. <div class="content" id="content">
  242. <div class="section" id="title1">
  243. <div style="display: flex;">
  244. <div class="marks"></div><h3>简历</h3><span class="line"></span>
  245. </div>
  246. <div class="informationText">
  247. <div th:each="line1, iterStat1 : ${resumeLines}"
  248. th:class="${iterStat1.even} ? 'multiLine-item bg-color-1' : 'multiLine-item bg-color-2'">
  249. <div th:each="line2,iterStat2:${line1}"
  250. th:class="${iterStat2.even} ? 'right-content' : 'left-content'" th:text="${line2}"></div>
  251. </div>
  252. </div>
  253. </div>
  254. <div class="section" id="title2">
  255. <div style="display: flex;">
  256. <div class="marks" style="width: 4px;"></div><h3>培训情况</h3><span class="line"></span>
  257. </div>
  258. <div class="informationText">
  259. <div th:each="line1 : ${trainingLines}" class="multiLine-item">
  260. <div th:each="line2,iterStat2:${line1}"
  261. th:class="${iterStat2.even} ? 'right-content' : 'left-content'" th:text="${line2}"></div>
  262. </div>
  263. </div>
  264. </div>
  265. <div class="section" id="title3">
  266. <div style="display: flex;">
  267. <div class="marks" style="width: 4px;"></div><h3>主要成就</h3><span class="line"></span>
  268. </div>
  269. <div class="informationText">
  270. <div th:each="line1 : ${achievementLines}" class="multiLine-item">
  271. <div th:each="line2,iterStat2:${line1}"
  272. th:class="${iterStat2.even} ? 'right-content' : 'left-content'" th:text="${line2}"></div>
  273. </div>
  274. </div>
  275. </div>
  276. <div class="section" id="title4">
  277. <div style="display: flex;">
  278. <div class="marks" style="width: 4px;"></div><h3>家庭成员</h3><span class="line"></span>
  279. </div>
  280. <div class="informationText">
  281. <table style="width: 100%;">
  282. <tr>
  283. <th colspan="2">称谓</th>
  284. <th colspan="3">姓名</th>
  285. <th colspan="2">出生年月</th>
  286. <th colspan="3">政治面貌</th>
  287. <th colspan="6">工作单位及职称</th>
  288. </tr>
  289. <tr class="" th:each="item,index: ${rwkStaffInformation.rwkFamilyMemberList}"
  290. th:class="${index.even} ? 'bg-color-1' : 'bg-color-2'">
  291. <td colspan="2" th:text="${item.appellation}"></td>
  292. <td colspan="3" th:text="${item.name}"></td>
  293. <td colspan="2" th:text="${item.birthday}"></td>
  294. <td colspan="3" th:text="${item.politicalStatus}"></td>
  295. <td colspan="6" th:text="${item.unitJob}"></td>
  296. </tr>
  297. </table>
  298. </div>
  299. </div>
  300. </div>
  301. <div class="sidebar" id="sidebar">
  302. <div class="arrow" id="arrow"></div>
  303. <div class="title active" data-target="#title1">1&nbsp;&nbsp;简历</div>
  304. <div class="title" data-target="#title2">2&nbsp;&nbsp;培训情况</div>
  305. <div class="title" data-target="#title3">3&nbsp;&nbsp;主要成就</div>
  306. <div class="title" data-target="#title4">4&nbsp;&nbsp;家庭成员</div>
  307. </div>
  308. </div>
  309. </div>
  310. </div>
  311. </form>
  312. <th:block th:include="include :: footer" />
  313. <script th:inline="javascript">
  314. var prefix = ctx + "system/information";
  315. rollingLinkage();
  316. init();
  317. //数据进行初始化加载
  318. function init(){
  319. }
  320. function rollingLinkage(){
  321. // 点击事件
  322. var arrow = $("#arrow");
  323. $('.sidebar .title').click(function() {
  324. const target = $(this).data('target');
  325. const targetElement = $(target);
  326. let scrollPosition = 0;
  327. // 计算目标标签之前的所有兄弟标签的高度
  328. targetElement.prevAll().each(function() {
  329. scrollPosition += parseInt($(this).css("height"));
  330. });
  331. // 移动箭头
  332. const newArrowPosition = $(this).position().top + 11; // 更新箭头位置
  333. arrow.css('top', newArrowPosition); // 更新箭头位置
  334. $('.sidebar .title').removeClass('active'); // 移除所有标题的选中状态
  335. $(this).addClass('active'); // 设置当前标题为选中状态
  336. // 滚动左侧区域到目标内容
  337. $('#content').animate({
  338. scrollTop: scrollPosition
  339. }, 300); // 动画效果
  340. });
  341. }
  342. </script>
  343. </body>
  344. </html>