dashboard.scss 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892
  1. .hr-dashboard-container {
  2. padding: 20px;
  3. background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  4. min-height: 100vh;
  5. font-family: 'Roboto', sans-serif;
  6. .top-navigation {
  7. margin-bottom: 30px;
  8. .nav-buttons {
  9. display: flex;
  10. gap: 15px;
  11. justify-content: center;
  12. flex-wrap: wrap;
  13. .nav-button {
  14. padding: 12px 24px;
  15. border-radius: 25px;
  16. font-weight: 500;
  17. transition: all 0.3s ease;
  18. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  19. &:hover {
  20. transform: translateY(-2px);
  21. box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  22. }
  23. &.active {
  24. background: linear-gradient(45deg, #2196F3, #21CBF3);
  25. color: white;
  26. box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
  27. }
  28. mat-icon {
  29. margin-right: 8px;
  30. }
  31. }
  32. }
  33. }
  34. // 数据可视化页面样式
  35. .visualization-page {
  36. .main-layout {
  37. display: grid;
  38. grid-template-columns: 2fr 1fr;
  39. gap: 30px;
  40. min-height: 80vh;
  41. @media (max-width: 1200px) {
  42. grid-template-columns: 1fr;
  43. gap: 20px;
  44. }
  45. }
  46. .left-panel {
  47. display: grid;
  48. grid-template-columns: 1fr 1fr;
  49. gap: 20px;
  50. @media (max-width: 768px) {
  51. grid-template-columns: 1fr;
  52. }
  53. .chart-card {
  54. background: rgba(255, 255, 255, 0.95);
  55. backdrop-filter: blur(10px);
  56. border-radius: 20px;
  57. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  58. transition: all 0.3s ease;
  59. border: 1px solid rgba(255, 255, 255, 0.2);
  60. &:hover {
  61. transform: translateY(-5px);
  62. box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  63. }
  64. mat-card-header {
  65. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  66. color: white;
  67. border-radius: 20px 20px 0 0;
  68. padding: 20px;
  69. mat-card-title {
  70. display: flex;
  71. align-items: center;
  72. font-size: 18px;
  73. font-weight: 600;
  74. margin: 0;
  75. mat-icon {
  76. margin-right: 10px;
  77. font-size: 24px;
  78. }
  79. }
  80. mat-card-subtitle {
  81. color: rgba(255, 255, 255, 0.8);
  82. margin-top: 5px;
  83. }
  84. }
  85. mat-card-content {
  86. padding: 25px;
  87. }
  88. }
  89. // 职级分布饼图样式
  90. .pie-chart-container {
  91. height: 200px;
  92. margin-bottom: 20px;
  93. background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
  94. border-radius: 15px;
  95. display: flex;
  96. align-items: center;
  97. justify-content: center;
  98. font-size: 14px;
  99. color: #666;
  100. }
  101. .chart-legend {
  102. display: flex;
  103. flex-direction: column;
  104. gap: 10px;
  105. .legend-item {
  106. display: flex;
  107. align-items: center;
  108. gap: 10px;
  109. font-size: 14px;
  110. .legend-color {
  111. width: 16px;
  112. height: 16px;
  113. border-radius: 50%;
  114. &.junior { background: #4CAF50; }
  115. &.intermediate { background: #FF9800; }
  116. &.senior { background: #2196F3; }
  117. }
  118. }
  119. }
  120. // 折线图样式
  121. .line-chart-container {
  122. height: 200px;
  123. margin-bottom: 20px;
  124. background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
  125. border-radius: 15px;
  126. display: flex;
  127. align-items: center;
  128. justify-content: center;
  129. font-size: 14px;
  130. color: #666;
  131. }
  132. .key-notes {
  133. h4 {
  134. color: #333;
  135. font-size: 16px;
  136. margin-bottom: 15px;
  137. font-weight: 600;
  138. }
  139. .note-item {
  140. display: flex;
  141. align-items: center;
  142. gap: 10px;
  143. margin-bottom: 10px;
  144. padding: 10px;
  145. background: rgba(33, 150, 243, 0.1);
  146. border-radius: 10px;
  147. border-left: 4px solid #2196F3;
  148. .note-icon {
  149. color: #2196F3;
  150. font-size: 18px;
  151. }
  152. .note-text {
  153. font-size: 14px;
  154. color: #555;
  155. }
  156. }
  157. }
  158. // 雷达图样式
  159. .radar-chart-container {
  160. height: 200px;
  161. margin-bottom: 20px;
  162. background: radial-gradient(circle, #f8f9fa 0%, #e9ecef 100%);
  163. border-radius: 15px;
  164. display: flex;
  165. align-items: center;
  166. justify-content: center;
  167. font-size: 14px;
  168. color: #666;
  169. }
  170. .radar-legend {
  171. display: flex;
  172. flex-wrap: wrap;
  173. gap: 15px;
  174. .legend-item {
  175. display: flex;
  176. align-items: center;
  177. gap: 8px;
  178. font-size: 14px;
  179. .legend-color {
  180. width: 16px;
  181. height: 16px;
  182. border-radius: 50%;
  183. }
  184. }
  185. }
  186. // 空缺岗位样式
  187. .vacancy-grid {
  188. display: grid;
  189. grid-template-columns: 1fr;
  190. gap: 15px;
  191. .vacancy-item {
  192. padding: 15px;
  193. border-radius: 12px;
  194. border-left: 4px solid;
  195. transition: all 0.3s ease;
  196. &.urgent {
  197. background: rgba(244, 67, 54, 0.1);
  198. border-left-color: #f44336;
  199. }
  200. &.normal {
  201. background: rgba(76, 175, 80, 0.1);
  202. border-left-color: #4caf50;
  203. }
  204. &:hover {
  205. transform: translateX(5px);
  206. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  207. }
  208. .vacancy-header {
  209. display: flex;
  210. align-items: center;
  211. gap: 10px;
  212. margin-bottom: 8px;
  213. mat-icon {
  214. font-size: 20px;
  215. }
  216. .position-name {
  217. font-weight: 600;
  218. color: #333;
  219. }
  220. }
  221. .vacancy-count {
  222. font-size: 18px;
  223. font-weight: 700;
  224. color: #2196F3;
  225. margin-bottom: 5px;
  226. }
  227. .vacancy-duration {
  228. font-size: 12px;
  229. color: #666;
  230. }
  231. }
  232. }
  233. }
  234. .right-panel {
  235. .todo-card {
  236. background: rgba(255, 255, 255, 0.95);
  237. backdrop-filter: blur(10px);
  238. border-radius: 20px;
  239. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  240. border: 1px solid rgba(255, 255, 255, 0.2);
  241. height: fit-content;
  242. mat-card-header {
  243. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  244. color: white;
  245. border-radius: 20px 20px 0 0;
  246. padding: 20px;
  247. .todo-toggle-btn {
  248. width: 100%;
  249. background: rgba(255, 255, 255, 0.2);
  250. color: white;
  251. border: 1px solid rgba(255, 255, 255, 0.3);
  252. border-radius: 15px;
  253. padding: 15px 20px;
  254. font-size: 16px;
  255. font-weight: 600;
  256. transition: all 0.3s ease;
  257. &:hover {
  258. background: rgba(255, 255, 255, 0.3);
  259. transform: scale(1.02);
  260. }
  261. mat-icon {
  262. margin-right: 10px;
  263. }
  264. .todo-count-chip {
  265. margin-left: 10px;
  266. background: rgba(255, 255, 255, 0.9);
  267. color: #333;
  268. font-weight: 700;
  269. }
  270. }
  271. }
  272. mat-card-content {
  273. padding: 0;
  274. }
  275. .todo-list {
  276. max-height: 600px;
  277. overflow-y: auto;
  278. .todo-item {
  279. border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  280. transition: all 0.3s ease;
  281. &:hover {
  282. background: rgba(33, 150, 243, 0.05);
  283. }
  284. &:last-child {
  285. border-bottom: none;
  286. }
  287. &.priority-high {
  288. border-left: 4px solid #f44336;
  289. }
  290. &.priority-medium {
  291. border-left: 4px solid #ff9800;
  292. }
  293. &.priority-low {
  294. border-left: 4px solid #4caf50;
  295. }
  296. .todo-content {
  297. padding: 20px;
  298. .todo-header-row {
  299. display: flex;
  300. align-items: flex-start;
  301. gap: 15px;
  302. .todo-priority-indicator {
  303. width: 8px;
  304. height: 8px;
  305. border-radius: 50%;
  306. margin-top: 8px;
  307. flex-shrink: 0;
  308. }
  309. .todo-main {
  310. flex: 1;
  311. display: flex;
  312. justify-content: space-between;
  313. align-items: flex-start;
  314. .todo-actions {
  315. display: flex;
  316. gap: 15px;
  317. flex: 1;
  318. .todo-info {
  319. flex: 1;
  320. .todo-title {
  321. margin: 0 0 8px 0;
  322. font-size: 16px;
  323. font-weight: 600;
  324. color: #333;
  325. transition: all 0.3s ease;
  326. &.completed {
  327. text-decoration: line-through;
  328. color: #999;
  329. }
  330. }
  331. .todo-description {
  332. margin: 0 0 12px 0;
  333. font-size: 14px;
  334. color: #666;
  335. line-height: 1.4;
  336. }
  337. .todo-meta {
  338. display: flex;
  339. gap: 8px;
  340. flex-wrap: wrap;
  341. .priority-chip {
  342. color: white;
  343. font-size: 12px;
  344. font-weight: 600;
  345. padding: 4px 8px;
  346. border-radius: 12px;
  347. }
  348. .type-chip {
  349. background: rgba(33, 150, 243, 0.1);
  350. color: #2196F3;
  351. font-size: 12px;
  352. font-weight: 500;
  353. padding: 4px 8px;
  354. border-radius: 12px;
  355. }
  356. }
  357. }
  358. }
  359. .drag-handle {
  360. color: #ccc;
  361. cursor: grab;
  362. padding: 5px;
  363. border-radius: 5px;
  364. transition: all 0.3s ease;
  365. &:hover {
  366. color: #999;
  367. background: rgba(0, 0, 0, 0.05);
  368. }
  369. &:active {
  370. cursor: grabbing;
  371. }
  372. }
  373. }
  374. }
  375. }
  376. }
  377. }
  378. }
  379. // 关键岗位空缺样式
  380. .vacancy-list {
  381. .vacancy-item {
  382. display: flex;
  383. align-items: center;
  384. padding: 16px;
  385. margin-bottom: 12px;
  386. border-radius: 8px;
  387. background: #fafafa;
  388. border-left: 4px solid #e0e0e0;
  389. transition: all 0.3s ease;
  390. &:hover {
  391. transform: translateY(-2px);
  392. box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  393. }
  394. &.priority-high {
  395. border-left-color: #f44336;
  396. background: #ffebee;
  397. }
  398. &.priority-medium {
  399. border-left-color: #ff9800;
  400. background: #fff3e0;
  401. }
  402. &.priority-low {
  403. border-left-color: #4caf50;
  404. background: #e8f5e8;
  405. }
  406. .vacancy-icon {
  407. margin-right: 16px;
  408. mat-icon {
  409. font-size: 32px;
  410. width: 32px;
  411. height: 32px;
  412. color: #666;
  413. }
  414. }
  415. .vacancy-info {
  416. flex: 1;
  417. h4 {
  418. margin: 0 0 8px 0;
  419. font-size: 16px;
  420. font-weight: 500;
  421. color: #333;
  422. }
  423. p {
  424. margin: 0 0 8px 0;
  425. color: #666;
  426. font-size: 14px;
  427. }
  428. .priority-badge {
  429. padding: 4px 8px;
  430. border-radius: 12px;
  431. font-size: 12px;
  432. font-weight: 500;
  433. &.priority-high {
  434. background: #ffcdd2;
  435. color: #c62828;
  436. }
  437. &.priority-medium {
  438. background: #ffe0b2;
  439. color: #ef6c00;
  440. }
  441. &.priority-low {
  442. background: #c8e6c9;
  443. color: #2e7d32;
  444. }
  445. }
  446. }
  447. }
  448. }
  449. }
  450. }
  451. // 职级与晋升管理页面样式
  452. .promotion-page {
  453. .content-layout {
  454. display: grid;
  455. grid-template-columns: 1fr 1fr;
  456. gap: 30px;
  457. @media (max-width: 1200px) {
  458. grid-template-columns: 1fr;
  459. }
  460. }
  461. .rules-card, .performance-card {
  462. background: rgba(255, 255, 255, 0.95);
  463. backdrop-filter: blur(10px);
  464. border-radius: 20px;
  465. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  466. border: 1px solid rgba(255, 255, 255, 0.2);
  467. mat-card-header {
  468. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  469. color: white;
  470. border-radius: 20px 20px 0 0;
  471. padding: 20px;
  472. mat-card-title {
  473. display: flex;
  474. align-items: center;
  475. font-size: 18px;
  476. font-weight: 600;
  477. margin: 0;
  478. mat-icon {
  479. margin-right: 10px;
  480. }
  481. }
  482. }
  483. mat-card-content {
  484. padding: 25px;
  485. }
  486. }
  487. .rule-item {
  488. margin-bottom: 25px;
  489. padding: 20px;
  490. background: rgba(33, 150, 243, 0.05);
  491. border-radius: 15px;
  492. border-left: 4px solid #2196F3;
  493. .rule-title {
  494. color: #333;
  495. font-size: 16px;
  496. font-weight: 600;
  497. margin-bottom: 10px;
  498. }
  499. .rule-description {
  500. color: #666;
  501. font-size: 14px;
  502. margin-bottom: 15px;
  503. line-height: 1.5;
  504. }
  505. .rule-conditions {
  506. display: flex;
  507. flex-wrap: wrap;
  508. gap: 8px;
  509. .condition-chip {
  510. background: rgba(76, 175, 80, 0.1);
  511. color: #4caf50;
  512. font-size: 12px;
  513. padding: 6px 12px;
  514. border-radius: 15px;
  515. border: 1px solid rgba(76, 175, 80, 0.3);
  516. }
  517. }
  518. }
  519. .dept-performance-item {
  520. margin-bottom: 25px;
  521. padding: 20px;
  522. background: rgba(255, 255, 255, 0.8);
  523. border-radius: 15px;
  524. box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  525. .dept-header {
  526. display: flex;
  527. justify-content: space-between;
  528. align-items: center;
  529. margin-bottom: 20px;
  530. .dept-name {
  531. color: #333;
  532. font-size: 18px;
  533. font-weight: 600;
  534. margin: 0;
  535. }
  536. .overall-score {
  537. background: linear-gradient(45deg, #4CAF50, #8BC34A);
  538. color: white;
  539. padding: 8px 16px;
  540. border-radius: 20px;
  541. font-weight: 700;
  542. font-size: 16px;
  543. }
  544. }
  545. .performance-metrics {
  546. .metric {
  547. display: flex;
  548. align-items: center;
  549. gap: 15px;
  550. margin-bottom: 15px;
  551. .metric-label {
  552. min-width: 100px;
  553. font-size: 14px;
  554. color: #666;
  555. font-weight: 500;
  556. }
  557. mat-progress-bar {
  558. flex: 1;
  559. height: 8px;
  560. border-radius: 4px;
  561. }
  562. .metric-value {
  563. min-width: 50px;
  564. text-align: right;
  565. font-weight: 600;
  566. color: #333;
  567. }
  568. }
  569. }
  570. }
  571. }
  572. // 新人跟进管理页面样式
  573. .onboarding-page {
  574. .content-layout {
  575. display: grid;
  576. grid-template-columns: 1fr 1fr;
  577. gap: 30px;
  578. @media (max-width: 1200px) {
  579. grid-template-columns: 1fr;
  580. }
  581. }
  582. .newbie-card, .checkpoint-card {
  583. background: rgba(255, 255, 255, 0.95);
  584. backdrop-filter: blur(10px);
  585. border-radius: 20px;
  586. box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  587. border: 1px solid rgba(255, 255, 255, 0.2);
  588. mat-card-header {
  589. background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  590. color: white;
  591. border-radius: 20px 20px 0 0;
  592. padding: 20px;
  593. mat-card-title {
  594. display: flex;
  595. align-items: center;
  596. font-size: 18px;
  597. font-weight: 600;
  598. margin: 0;
  599. mat-icon {
  600. margin-right: 10px;
  601. }
  602. }
  603. }
  604. mat-card-content {
  605. padding: 25px;
  606. }
  607. }
  608. .newbie-item {
  609. display: flex;
  610. align-items: center;
  611. gap: 15px;
  612. padding: 15px;
  613. margin-bottom: 15px;
  614. background: rgba(33, 150, 243, 0.05);
  615. border-radius: 15px;
  616. transition: all 0.3s ease;
  617. &:hover {
  618. background: rgba(33, 150, 243, 0.1);
  619. transform: translateX(5px);
  620. }
  621. .newbie-avatar {
  622. width: 50px;
  623. height: 50px;
  624. background: linear-gradient(45deg, #2196F3, #21CBF3);
  625. border-radius: 50%;
  626. display: flex;
  627. align-items: center;
  628. justify-content: center;
  629. color: white;
  630. mat-icon {
  631. font-size: 24px;
  632. }
  633. }
  634. .newbie-info {
  635. flex: 1;
  636. .newbie-name {
  637. margin: 0 0 5px 0;
  638. font-size: 16px;
  639. font-weight: 600;
  640. color: #333;
  641. }
  642. .newbie-position {
  643. margin: 0 0 5px 0;
  644. font-size: 14px;
  645. color: #666;
  646. }
  647. .newbie-date {
  648. margin: 0;
  649. font-size: 12px;
  650. color: #999;
  651. }
  652. }
  653. .newbie-progress {
  654. display: flex;
  655. align-items: center;
  656. gap: 10px;
  657. min-width: 120px;
  658. mat-progress-bar {
  659. flex: 1;
  660. height: 6px;
  661. border-radius: 3px;
  662. }
  663. .progress-text {
  664. font-size: 14px;
  665. font-weight: 600;
  666. color: #333;
  667. }
  668. }
  669. }
  670. .checkpoint-item {
  671. display: flex;
  672. gap: 15px;
  673. padding: 15px;
  674. margin-bottom: 15px;
  675. background: rgba(76, 175, 80, 0.05);
  676. border-radius: 15px;
  677. border-left: 4px solid #4caf50;
  678. .checkpoint-content {
  679. flex: 1;
  680. .checkpoint-title {
  681. margin: 0 0 8px 0;
  682. font-size: 16px;
  683. font-weight: 600;
  684. color: #333;
  685. }
  686. .checkpoint-description {
  687. margin: 0 0 10px 0;
  688. font-size: 14px;
  689. color: #666;
  690. line-height: 1.4;
  691. }
  692. .checkpoint-timeline {
  693. display: flex;
  694. align-items: center;
  695. gap: 5px;
  696. font-size: 12px;
  697. color: #999;
  698. mat-icon {
  699. font-size: 16px;
  700. }
  701. }
  702. }
  703. }
  704. }
  705. // 响应式设计
  706. @media (max-width: 768px) {
  707. padding: 15px;
  708. .top-navigation {
  709. margin-bottom: 20px;
  710. .nav-buttons {
  711. .nav-button {
  712. padding: 10px 16px;
  713. font-size: 14px;
  714. }
  715. }
  716. }
  717. .visualization-page {
  718. .main-layout {
  719. gap: 15px;
  720. }
  721. .left-panel {
  722. gap: 15px;
  723. .chart-card {
  724. mat-card-header {
  725. padding: 15px;
  726. mat-card-title {
  727. font-size: 16px;
  728. }
  729. }
  730. mat-card-content {
  731. padding: 15px;
  732. }
  733. }
  734. }
  735. }
  736. }
  737. // 滚动条样式
  738. ::-webkit-scrollbar {
  739. width: 8px;
  740. }
  741. ::-webkit-scrollbar-track {
  742. background: rgba(0, 0, 0, 0.1);
  743. border-radius: 4px;
  744. }
  745. ::-webkit-scrollbar-thumb {
  746. background: rgba(0, 0, 0, 0.3);
  747. border-radius: 4px;
  748. &:hover {
  749. background: rgba(0, 0, 0, 0.5);
  750. }
  751. }
  752. }