File size: 3,697 Bytes
35e7795 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 | /* 任务管理模块样式 */
/* 确保动态加载容器占满父容器 */
#user-available-tasks-container,
#user-my-tasks-container {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
#userAvailableTasksContent,
#userMyTasksContent {
width: 100%;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
/* section-header 样式 */
#userAvailableTasksContent .section-header,
#userMyTasksContent .section-header {
margin-bottom: 0;
padding: 24px 24px 24px 24px;
border-bottom: 1px solid #e0e0e0;
flex-shrink: 0;
}
#userAvailableTasksContent .section-content,
#userMyTasksContent .section-content {
flex: 1;
padding: 24px;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
}
/* 表格容器应该可以滚动,占据可用空间 */
#userAvailableTasksContent .section-content .table-container,
#userMyTasksContent .section-content .table-container {
flex: 1;
overflow-y: auto;
overflow-x: auto;
min-height: 0;
}
/* 分页器固定在底部,不参与滚动 */
#userAvailableTasksContent .section-content .pagination-container,
#userMyTasksContent .section-content .pagination-container {
flex-shrink: 0;
margin-top: 16px;
}
/* 空状态样式 */
.empty-state {
text-align: center;
padding: 60px 20px;
color: #999;
font-size: 16px;
}
/* 评估维度标签样式 */
.evaluation-dimension-tag {
display: inline-block;
padding: 4px 8px;
margin: 2px 4px 2px 0;
background-color: #e3f2fd;
color: #1976d2;
border-radius: 4px;
font-size: 12px;
white-space: nowrap;
}
.evaluation-dimension-tags {
display: flex;
flex-wrap: wrap;
gap: 4px;
}
/* 分类要求样式 */
.category-requirement {
padding: 4px 8px;
border-radius: 4px;
font-size: 12px;
display: inline-block;
}
.category-requirement.has-category {
background-color: #fff3cd;
color: #856404;
}
.category-requirement.no-category {
background-color: #d4edda;
color: #155724;
}
/* 完成时间倒计时样式 */
.deadline-countdown {
font-weight: 500;
}
.deadline-countdown.warning {
color: #ff9800;
}
.deadline-countdown.danger {
color: #f44336;
font-weight: 600;
}
.deadline-countdown.expired {
color: #999;
text-decoration: line-through;
}
/* 任务描述截断 */
.task-description {
max-width: 300px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 评估目的截断 */
.evaluation-purpose {
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* 任务进度样式 */
.task-progress {
min-width: 120px;
}
.task-progress-text {
font-size: 12px;
color: #666;
margin-bottom: 4px;
}
.task-progress-bar-container {
background: #e0e0e0;
height: 6px;
border-radius: 3px;
overflow: hidden;
}
.task-progress-bar {
height: 100%;
transition: width 0.3s ease;
border-radius: 3px;
}
.task-progress-bar-low {
background: #f44336;
}
.task-progress-bar-medium {
background: #ff9800;
}
.task-progress-bar-high {
background: #4caf50;
}
.task-progress-bar-complete {
background: #2196f3;
}
/* 响应式布局 */
@media (max-width: 768px) {
#userAvailableTasksContent .section-header,
#userMyTasksContent .section-header {
padding: 16px;
}
#userAvailableTasksContent .section-content,
#userMyTasksContent .section-content {
padding: 16px;
}
.task-description,
.evaluation-purpose {
max-width: 150px;
}
}
|