Explorar el Código

feat: 员工画像底色按原型图实现

基本信息卡: 45度蓝色斜纹底(#daeeff/#eef7ff);
综合评价卡: 橙红渐变底(#f7b89c→#f4a088),文字统一白色;
工作履历/获奖卡: 浅蓝底(#e8f5ff)。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
simonlll hace 1 mes
padre
commit
66928eb3a0
Se han modificado 1 ficheros con 20 adiciones y 6 borrados
  1. 20 6
      src/views/portraitManagement/employeeProfile/index.vue

+ 20 - 6
src/views/portraitManagement/employeeProfile/index.vue

@@ -86,8 +86,8 @@
86 86
           <!-- 综合评价 -->
87 87
           <div class="card score-card">
88 88
             <div class="score-label">综合评价</div>
89
-            <div class="score-num" :style="scoreColor">{{ portrait.totalScore }}</div>
90
-            <div class="score-level-tag" :style="scoreColor">{{ scoreLevel }}</div>
89
+            <div class="score-num">{{ portrait.totalScore }}</div>
90
+            <div class="score-level-tag">{{ scoreLevel }}</div>
91 91
           </div>
92 92
         </div>
93 93
 
@@ -439,6 +439,11 @@ onBeforeUnmount(() => {
439 439
   display: flex;
440 440
   gap: 16px;
441 441
   align-items: flex-start;
442
+  background: repeating-linear-gradient(
443
+    45deg,
444
+    #daeeff 0px, #daeeff 2px,
445
+    #eef7ff 2px, #eef7ff 14px
446
+  );
442 447
 
443 448
   .avatar-area {
444 449
     flex-shrink: 0;
@@ -510,25 +515,33 @@ onBeforeUnmount(() => {
510 515
   flex-direction: column;
511 516
   align-items: center;
512 517
   justify-content: center;
513
-  background: linear-gradient(135deg, #fff5f0, #fff);
518
+  background: linear-gradient(160deg, #f7b89c, #f4a088);
519
+  border: none;
514 520
 
515 521
   .score-label {
516 522
     font-size: 14px;
517 523
     font-weight: 600;
518
-    color: #555;
524
+    color: #fff;
519 525
     margin-bottom: 8px;
526
+    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
520 527
   }
521 528
 
522 529
   .score-num {
523
-    font-size: 48px;
530
+    font-size: 52px;
524 531
     font-weight: bold;
525 532
     line-height: 1;
533
+    color: #fff;
534
+    text-shadow: 0 2px 6px rgba(0,0,0,0.15);
526 535
   }
527 536
 
528 537
   .score-level-tag {
529 538
     margin-top: 8px;
530 539
     font-size: 14px;
531
-    font-weight: 500;
540
+    font-weight: 600;
541
+    color: #fff;
542
+    background: rgba(255,255,255,0.25);
543
+    padding: 2px 12px;
544
+    border-radius: 10px;
532 545
   }
533 546
 }
534 547
 
@@ -537,6 +550,7 @@ onBeforeUnmount(() => {
537 550
   width: 260px;
538 551
   flex-shrink: 0;
539 552
   overflow-y: auto;
553
+  background: #e8f5ff;
540 554
 
541 555
   .sec-title {
542 556
     font-size: 14px;