| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985 |
- .project-timeline-container {
- width: 100%;
- height: 100%;
- display: flex;
- flex-direction: column;
- background: #ffffff;
- border-radius: 8px;
- overflow: hidden;
- }
- // 顶部筛选栏
- .timeline-header {
- padding: 16px;
- background: #f9fafb;
- border-bottom: 1px solid #e5e7eb;
- }
- .filter-section {
- display: flex;
- align-items: center;
- gap: 16px;
- flex-wrap: wrap;
- }
- .filter-group {
- display: flex;
- align-items: center;
- gap: 8px;
- label {
- font-size: 14px;
- font-weight: 500;
- color: #374151;
- white-space: nowrap;
- }
- }
- .filter-select {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- font-size: 14px;
- background: #ffffff;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- border-color: #9ca3af;
- }
- &:focus {
- outline: none;
- border-color: #3b82f6;
- box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
- }
- }
- .quick-filters {
- margin-left: auto;
- }
- .filter-btn {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- background: #ffffff;
- font-size: 13px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: #f3f4f6;
- }
- &.active {
- background: #3b82f6;
- color: #ffffff;
- border-color: #3b82f6;
- }
- }
- .view-controls,
- .sort-controls,
- .time-scale-controls {
- border-left: 1px solid #e5e7eb;
- padding-left: 16px;
- }
- .view-btn,
- .sort-btn,
- .scale-btn,
- .refresh-btn {
- padding: 6px 12px;
- border: 1px solid #d1d5db;
- border-radius: 6px;
- background: #ffffff;
- font-size: 13px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- background: #f3f4f6;
- }
- &.active {
- background: #3b82f6;
- color: #ffffff;
- border-color: #3b82f6;
- }
- }
- // 时间尺度切换按钮特殊样式
- .time-scale-controls {
- .scale-btn.active {
- background: #10b981;
- border-color: #10b981;
- font-weight: 600;
- }
- }
- // 🆕 刷新按钮特殊样式
- .refresh-btn {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: #ffffff;
- border: none;
- font-weight: 600;
-
- &:hover {
- background: linear-gradient(135deg, #5568d3 0%, #63408b 100%);
- transform: scale(1.05);
- }
-
- &:active {
- animation: refresh-spin 0.6s ease-in-out;
- }
- }
- @keyframes refresh-spin {
- from {
- transform: rotate(0deg);
- }
- to {
- transform: rotate(360deg);
- }
- }
- // 设计师统计面板
- .designer-stats-panel {
- margin-top: 12px;
- padding: 12px 16px;
- background: #ffffff;
- border: 1px solid #e5e7eb;
- border-radius: 6px;
- }
- .stats-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
- h3 {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- }
- }
- .workload-badge {
- padding: 4px 12px;
- border-radius: 12px;
- font-size: 13px;
- font-weight: 500;
- &.level-low {
- background: #d1fae5;
- color: #065f46;
- }
- &.level-medium {
- background: #fef3c7;
- color: #92400e;
- }
- &.level-high {
- background: #fee2e2;
- color: #991b1b;
- }
- }
- .stats-body {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- gap: 12px;
- }
- .stat-item {
- display: flex;
- flex-direction: column;
- padding: 8px;
- background: #f9fafb;
- border-radius: 4px;
- }
- .stat-label {
- font-size: 12px;
- color: #6b7280;
- margin-bottom: 4px;
- }
- .stat-value {
- font-size: 18px;
- font-weight: 600;
- color: #111827;
- &.urgent {
- color: #ea580c;
- }
- &.overdue {
- color: #dc2626;
- }
- }
- // 时间轴主体
- .timeline-body {
- flex: 1;
- overflow-y: auto;
- padding: 16px;
- }
- // 列表视图
- .projects-list {
- display: flex;
- flex-direction: column;
- gap: 12px;
- }
- .project-item {
- position: relative;
- display: flex;
- padding: 16px;
- background: #ffffff;
- border: 1px solid #e5e7eb;
- border-radius: 8px;
- cursor: pointer;
- transition: all 0.2s;
- &:hover {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
- transform: translateY(-2px);
- }
- &.status-overdue {
- border-left-width: 4px;
- border-left-color: #dc2626;
- }
- &.status-urgent {
- border-left-width: 4px;
- border-left-color: #ea580c;
- }
- &.status-warning {
- border-left-width: 4px;
- border-left-color: #f59e0b;
- }
- }
- .priority-bar {
- position: absolute;
- left: 0;
- top: 0;
- bottom: 0;
- width: 4px;
- border-radius: 8px 0 0 8px;
- &.priority-critical {
- background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
- }
- &.priority-high {
- background: linear-gradient(180deg, #ea580c 0%, #c2410c 100%);
- }
- &.priority-medium {
- background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
- }
- &.priority-low {
- background: linear-gradient(180deg, #10b981 0%, #059669 100%);
- }
- }
- .project-content {
- flex: 1;
- padding-left: 8px;
- }
- .project-header {
- display: flex;
- align-items: center;
- justify-content: space-between;
- margin-bottom: 12px;
- }
- .project-name {
- margin: 0;
- font-size: 16px;
- font-weight: 600;
- color: #111827;
- }
- .project-badges {
- display: flex;
- gap: 8px;
- }
- .badge {
- padding: 4px 8px;
- border-radius: 4px;
- font-size: 12px;
- font-weight: 500;
- white-space: nowrap;
- &.badge-stalled {
- background: #f3f4f6;
- color: #6b7280;
- }
- &.badge-urgent {
- background: #fee2e2;
- color: #991b1b;
- }
- &.badge-overdue {
- background: #fecaca;
- color: #7f1d1d;
- }
- &.badge-warning {
- background: #fed7aa;
- color: #9a3412;
- }
-
- // 🆕 空间与交付物统计徽章(列表视图)
- &.badge-deliverable {
- padding: 4px 10px;
- border-radius: 12px;
- font-size: 11px;
- font-weight: 600;
- cursor: help;
- transition: transform 0.2s, box-shadow 0.2s;
-
- &:hover {
- transform: scale(1.05);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- }
- }
- }
- .project-meta {
- display: flex;
- gap: 16px;
- flex-wrap: wrap;
- }
- .meta-item {
- display: flex;
- gap: 4px;
- font-size: 13px;
- }
- .meta-label {
- color: #6b7280;
- }
- .meta-value {
- color: #374151;
- font-weight: 500;
- &.text-danger {
- color: #dc2626;
- }
- }
- // 空状态
- .empty-state {
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 60px 20px;
- text-align: center;
- p {
- margin: 0;
- font-size: 15px;
- color: #9ca3af;
- }
- }
- // 时间轴视图容器
- .timeline-view-container {
- position: relative;
- width: 100%;
- min-height: 400px;
- }
- // 图例说明
- .timeline-legend {
- display: flex;
- justify-content: center;
- align-items: center;
- gap: 24px;
- padding: 12px 20px;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- border-radius: 8px 8px 0 0;
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- }
- .legend-item {
- display: flex;
- align-items: center;
- gap: 8px;
- }
- .legend-icon {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 24px;
- height: 24px;
- border-radius: 50%;
- font-size: 16px;
- color: #ffffff;
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
-
- &.start-icon {
- background: #10b981;
- }
-
- &.review-icon {
- background: #8b5cf6;
- }
-
- &.delivery-icon {
- background: #f59e0b;
- border-radius: 4px;
- transform: rotate(45deg);
- }
- }
- .legend-bar-demo {
- width: 40px;
- height: 12px;
- border-radius: 4px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- }
- // 🆕 四种紧急度颜色图例
- .legend-bar-green {
- background: linear-gradient(135deg, #86EFAC 0%, #4ADE80 100%);
- }
- .legend-bar-yellow {
- background: linear-gradient(135deg, #FEF08A 0%, #EAB308 100%);
- }
- .legend-bar-orange {
- background: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
- }
- .legend-bar-red {
- background: linear-gradient(135deg, #FCA5A5 0%, #EF4444 100%);
- }
- .legend-label {
- font-size: 13px;
- font-weight: 500;
- color: #ffffff;
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
- }
- // 🆕 图例注释样式
- .legend-note {
- margin-left: auto;
- padding-left: 16px;
- border-left: 1px solid rgba(255, 255, 255, 0.3);
-
- .legend-label {
- font-size: 12px;
- font-weight: 600;
- color: #fef3c7;
- opacity: 0.95;
- }
- }
- // 时间刻度尺
- .timeline-ruler {
- display: flex;
- position: sticky;
- top: 0;
- z-index: 10;
- background: #ffffff;
- border-bottom: 2px solid #e5e7eb;
- padding: 8px 0;
- }
- .ruler-header {
- width: 180px;
- min-width: 180px;
- padding: 12px 12px;
- font-weight: 600;
- font-size: 14px;
- color: #111827;
- border-right: 2px solid #e5e7eb;
- background: #f9fafb;
- }
- .ruler-ticks {
- flex: 1;
- display: flex;
- position: relative;
- }
- .ruler-tick {
- flex: 1;
- text-align: center;
- border-right: 1px solid #e5e7eb;
- padding: 8px 4px;
- display: flex;
- flex-direction: column;
- gap: 2px;
- &:last-child {
- border-right: none;
- }
-
- &.first {
- border-left: 2px solid #3b82f6;
- }
- }
- .tick-date {
- font-size: 14px;
- color: #111827;
- font-weight: 600;
- line-height: 1.2;
- }
- .tick-weekday {
- font-size: 11px;
- color: #6b7280;
- font-weight: 500;
- line-height: 1.2;
- }
- // 🆕 今日标记线(实时移动,精确到分钟)- 重构版
- .today-line {
- position: absolute;
- top: 0;
- bottom: 0;
- z-index: 10;
- pointer-events: none;
- left: 0; // 通过 [style.left] 动态设置
- }
- // 🆕 今日时间标签(顶部显示完整时间)
- .today-label {
- position: absolute;
- top: -40px;
- left: 50%;
- transform: translateX(-50%);
- padding: 8px 16px;
- background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
- color: #ffffff;
- font-size: 13px;
- font-weight: 700;
- border-radius: 8px;
- white-space: nowrap;
- box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
- letter-spacing: 0.5px;
- animation: today-label-pulse 2s ease-in-out infinite;
-
- // 小三角箭头
- &::after {
- content: '';
- position: absolute;
- top: 100%;
- left: 50%;
- transform: translateX(-50%);
- width: 0;
- height: 0;
- border-left: 6px solid transparent;
- border-right: 6px solid transparent;
- border-top: 6px solid #dc2626;
- }
- }
- // 🆕 顶部圆点指示器(更大更明显)
- .today-dot {
- position: absolute;
- top: -4px;
- left: 50%;
- transform: translateX(-50%);
- width: 16px;
- height: 16px;
- background: #ef4444;
- border-radius: 50%;
- border: 3px solid #ffffff;
- box-shadow: 0 0 0 2px #ef4444, 0 4px 12px rgba(239, 68, 68, 0.6);
- animation: today-dot-pulse 1.5s ease-in-out infinite;
- }
- // 🆕 主竖线条(更宽更明显)
- .today-bar {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 50%;
- transform: translateX(-50%);
- width: 4px;
- background: linear-gradient(180deg,
- rgba(239, 68, 68, 0.95) 0%,
- rgba(239, 68, 68, 0.85) 50%,
- rgba(239, 68, 68, 0.95) 100%
- );
- box-shadow:
- 0 0 8px rgba(239, 68, 68, 0.6),
- 0 0 16px rgba(239, 68, 68, 0.4);
- animation: today-bar-pulse 2s ease-in-out infinite;
- }
- // 🆕 时间标签脉动动画
- @keyframes today-label-pulse {
- 0%, 100% {
- transform: translateX(-50%) scale(1);
- box-shadow: 0 4px 16px rgba(239, 68, 68, 0.5);
- }
- 50% {
- transform: translateX(-50%) scale(1.05);
- box-shadow: 0 6px 24px rgba(239, 68, 68, 0.7);
- }
- }
- // 🆕 圆点脉动动画(更明显)
- @keyframes today-dot-pulse {
- 0%, 100% {
- transform: translateX(-50%) scale(1);
- box-shadow: 0 0 0 2px #ef4444, 0 4px 12px rgba(239, 68, 68, 0.6);
- }
- 50% {
- transform: translateX(-50%) scale(1.4);
- box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.5), 0 6px 20px rgba(239, 68, 68, 0.8);
- }
- }
- // 🆕 竖线脉动动画
- @keyframes today-bar-pulse {
- 0%, 100% {
- opacity: 1;
- box-shadow:
- 0 0 8px rgba(239, 68, 68, 0.6),
- 0 0 16px rgba(239, 68, 68, 0.4);
- }
- 50% {
- opacity: 0.9;
- box-shadow:
- 0 0 12px rgba(239, 68, 68, 0.8),
- 0 0 24px rgba(239, 68, 68, 0.6);
- }
- }
- // 项目时间轴
- .timeline-projects {
- position: relative;
- min-height: 300px;
- }
- .timeline-row {
- display: flex;
- border-bottom: 1px solid #f3f4f6;
- cursor: pointer;
- transition: background 0.2s;
- &:hover {
- background: #f9fafb;
- .project-bar {
- transform: scaleY(1.1);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
- }
- .event-marker {
- transform: scale(1.3);
- }
- }
- }
- // 项目标签区
- .project-label {
- width: 180px;
- min-width: 180px;
- padding: 12px 12px;
- display: flex;
- flex-direction: column;
- gap: 4px;
- border-right: 2px solid #e5e7eb;
- background: #fafafa;
- }
- .project-name-label {
- font-size: 14px;
- font-weight: 500;
- color: #111827;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
- .designer-label {
- font-size: 12px;
- color: #6b7280;
- }
- .priority-badge {
- font-size: 16px;
- line-height: 1;
- }
- // 🆕 空间与交付物统计徽章
- .space-deliverable-badge {
- padding: 2px 8px;
- border-radius: 10px;
- font-size: 10px;
- font-weight: 600;
- color: white;
- margin-left: 4px;
- white-space: nowrap;
- cursor: help;
- transition: transform 0.2s, box-shadow 0.2s;
-
- &:hover {
- transform: scale(1.05);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
- }
- }
- // 时间轴轨道
- .timeline-track {
- flex: 1;
- position: relative;
- height: 70px;
- padding: 19px 0;
- background: repeating-linear-gradient(
- 90deg,
- transparent,
- transparent calc(100% / 7 - 1px),
- #f3f4f6 calc(100% / 7 - 1px),
- #f3f4f6 calc(100% / 7)
- );
- }
- // 项目条形图
- .project-bar {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- height: 32px;
- border-radius: 6px;
- transition: all 0.3s;
- overflow: hidden;
- box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
- border: 2px solid rgba(255, 255, 255, 0.5);
- opacity: 0.95;
- &.status-overdue {
- border: 3px solid #dc2626;
- animation: pulse 2s infinite;
- box-shadow: 0 0 15px rgba(220, 38, 38, 0.4);
- }
-
- &:hover {
- opacity: 1;
- }
- }
- // 进度填充
- .progress-fill {
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- background: linear-gradient(90deg,
- rgba(0, 0, 0, 0.25) 0%,
- rgba(0, 0, 0, 0.15) 100%
- );
- transition: width 0.3s;
- border-right: 2px solid rgba(255, 255, 255, 0.6);
- }
- // 事件标记
- .event-marker {
- position: absolute;
- top: 50%;
- transform: translateY(-50%);
- width: 28px;
- height: 28px;
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 20px;
- color: #ffffff;
- border-radius: 50%;
- cursor: pointer;
- transition: all 0.2s;
- z-index: 10;
- box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
- border: 2px solid rgba(255, 255, 255, 0.9);
- &.start {
- font-size: 16px;
- width: 24px;
- height: 24px;
- }
- &.review {
- font-size: 18px;
- width: 26px;
- height: 26px;
- border-radius: 50%;
- }
- &.delivery {
- font-size: 22px;
- width: 30px;
- height: 30px;
- border-radius: 4px;
- transform: translateY(-50%) rotate(45deg);
-
- &:hover {
- transform: translateY(-50%) rotate(45deg) scale(1.3);
- }
- }
- &.blink {
- animation: blink 1s infinite;
- }
- &:hover {
- transform: translateY(-50%) scale(1.4);
- z-index: 20;
- box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
- }
- }
- // 动画
- @keyframes pulse {
- 0%, 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.7;
- }
- }
- @keyframes blink {
- 0%, 100% {
- opacity: 1;
- }
- 50% {
- opacity: 0.3;
- }
- }
- // 响应式设计
- @media (max-width: 768px) {
- .filter-section {
- flex-direction: column;
- align-items: stretch;
- }
- .filter-group {
- width: 100%;
- &.quick-filters {
- margin-left: 0;
- }
- &.view-controls,
- &.sort-controls {
- border-left: none;
- border-top: 1px solid #e5e7eb;
- padding-left: 0;
- padding-top: 12px;
- }
- }
- .stats-body {
- grid-template-columns: 1fr;
- }
- .project-header {
- flex-direction: column;
- align-items: flex-start;
- gap: 8px;
- }
- .project-meta {
- flex-direction: column;
- gap: 8px;
- }
-
- // 时间轴视图响应式
- .timeline-legend {
- flex-wrap: wrap;
- gap: 12px;
- padding: 8px 12px;
- }
-
- .legend-item {
- gap: 6px;
- }
-
- .legend-label {
- font-size: 11px;
- }
-
- .ruler-header,
- .project-label {
- width: 100px;
- min-width: 100px;
- padding: 8px;
- }
-
- .project-name-label {
- font-size: 11px;
- }
-
- .designer-label {
- font-size: 10px;
- }
-
- .tick-date {
- font-size: 11px;
- }
-
- .tick-weekday {
- font-size: 9px;
- }
-
- .timeline-track {
- height: 50px;
- padding: 14px 0;
- }
-
- .project-bar {
- height: 22px;
- }
-
- .event-marker {
- width: 20px;
- height: 20px;
- font-size: 14px;
-
- &.start {
- width: 18px;
- height: 18px;
- font-size: 12px;
- }
-
- &.review {
- width: 19px;
- height: 19px;
- font-size: 13px;
- }
-
- &.delivery {
- width: 22px;
- height: 22px;
- font-size: 16px;
- }
- }
- }
|