Commit 9ca3d1bf by chenwq

style: 优化UI样式并更新状态标签配色

调整搜索栏、静态信息组件的内边距与字体样式;更新完成状态、日报及月报的状态颜色映射以匹配设计稿;优化团队列表页面的布局与样式,统一文字规范与图标显示逻辑
1 parent c35f9d23
...@@ -59,7 +59,7 @@ export default { ...@@ -59,7 +59,7 @@ export default {
padding: 0 4px; padding: 0 4px;
/* 深度覆盖 Vant 样式以匹配设计稿 */ /* 深度覆盖 Vant 样式以匹配设计稿 */
:deep(.van-search) { :deep(.van-search) {
padding: 10px 12px; padding: 8px 12px;
} }
:deep(.van-search__content) { :deep(.van-search__content) {
background-color: #FFFFFF; background-color: #FFFFFF;
......
...@@ -29,17 +29,17 @@ export default { ...@@ -29,17 +29,17 @@ export default {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 8px; /* 增加一点间距 */ gap: 8px; /* 增加一点间距 */
padding: 8px 12px 12px; padding: 8px 12px;
.static-item { .static-item {
box-sizing: border-box; box-sizing: border-box;
padding: 12px; padding: 12px;
flex: 1; /* 无论几个,都是平分剩余空间 */ flex: 1; /* 无论几个,都是平分剩余空间 */
border-radius: 8px; border-radius: 8px;
font-size: 13px; /* 字体稍微调小一点,防挤压 */ font-size: 14px;
color: #ffffff; color: #ffffff;
min-width: 0; /* 防止内容过长撑破 flex 布局 */ min-width: 0; /* 防止内容过长撑破 flex 布局 */
.label { .label {
margin-bottom: 4px; margin-bottom: 5px;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
......
...@@ -27,21 +27,21 @@ export const TAB_LIST = [ ...@@ -27,21 +27,21 @@ export const TAB_LIST = [
// 完成状态映射 (用于卡片右上角状态徽标) // 完成状态映射 (用于卡片右上角状态徽标)
export const COMPLETION_STATUS_MAP = { export const COMPLETION_STATUS_MAP = {
0: { name: '未完成', color: '#FF4D4F', background: '#FF4D4F1A' }, 0: { name: '未完成', color: '#F24724', background: '#FEECE8' },
1: { name: '部分完成', color: '#FF9D0A', background: '#FF9D0A1A' }, 1: { name: '部分完成', color: '#FF9D0A', background: '#FFF5E7' },
2: { name: '已完成', color: '#35C376', background: '#35C3761A' } 2: { name: '已完成', color: '#35C376', background: '#EAF9F1' }
} }
// 日报状态映射 // 日报状态映射
export const DAILY_STATUS_MAP = { export const DAILY_STATUS_MAP = {
0: { text: '未提交', color: '#FF4D4F' }, 0: { text: '未提交', color: '#F24724' },
1: { text: '在岗', color: '#35C376' }, 1: { text: '在岗', color: '#35C376' },
2: { text: '调休', color: '#FF9D0A' } 2: { text: '调休', color: '#FF9D0A' }
} }
// 月报状态映射 // 月报状态映射
export const MONTH_STATUS_MAP = { export const MONTH_STATUS_MAP = {
0: { text: '未提交', color: '#FF4D4F' }, 0: { text: '未提交', color: '#F24724' },
1: { text: '已提交', color: '#35C376' } 1: { text: '已提交', color: '#35C376' }
} }
......
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
<van-list v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore"> <van-list v-model="loading" :finished="finished" finished-text="到底了~" @load="onLoadMore">
<div class="list" v-if="list.length > 0"> <div class="list" v-if="list.length > 0">
<div class="item content" v-for="(item, index) in list" :key="index" @click="jump(item)"> <div class="item content" v-for="(item, index) in list" :key="index" @click="jump(item)">
<!-- 专项督办 (tabIndex === 3) --> <!-- 专项督办 (tabIndex == 3) -->
<div v-if="tabIndex === 3" class="special-item"> <div v-if="tabIndex == 3" class="special-item">
<div class="name">{{ item.supervisorName }}</div> <div class="name text-hide">{{ item.supervisorName }}</div>
<div class="right-info"> <div class="right-info">
<span class="progress-text" :style="{ color: getSpecialProgressColor(item.specialTaskProgress) }">{{ item.specialTaskProgress }}</span> <span class="progress-text" :style="{ color: getSpecialProgressColor(item.specialTaskProgress) }">{{ item.specialTaskProgress }}</span>
<span class="status-badge" :style="{ color: completionStatusMap[item.completionStatus]?.color, background: completionStatusMap[item.completionStatus]?.background }"> <span class="status-badge" :style="{ color: completionStatusMap[item.completionStatus]?.color, background: completionStatusMap[item.completionStatus]?.background }">
...@@ -54,12 +54,12 @@ ...@@ -54,12 +54,12 @@
<!-- 其他 Tab (0, 1, 2) --> <!-- 其他 Tab (0, 1, 2) -->
<div v-else class="standard-item"> <div v-else class="standard-item">
<div class="item-header"> <div class="item-header">
<div class="name">{{ item.supervisorName }}</div> <div class="name text-hide">{{ item.supervisorName }}</div>
<div class="status-box"> <div class="status-box">
<span class="status-badge" :style="{ color: completionStatusMap[item.completionStatus]?.color, background: completionStatusMap[item.completionStatus]?.background }"> <span class="status-badge" :style="{ color: completionStatusMap[item.completionStatus]?.color, background: completionStatusMap[item.completionStatus]?.background }">
{{ completionStatusMap[item.completionStatus]?.name }} {{ completionStatusMap[item.completionStatus]?.name }}
</span> </span>
<van-icon name="arrow" v-if="item.completionStatus !== 0" color="#999999" size="12" style="margin-left: 4px;" /> <van-icon name="arrow" v-if="item.dailyReportDetailEnabled" color="#000000E5;" size="12" style="margin-left: 4px;" />
</div> </div>
</div> </div>
...@@ -365,7 +365,7 @@ export default { ...@@ -365,7 +365,7 @@ export default {
.number { .number {
height: 15px; height: 15px;
font-size: 12px; font-size: 12px;
color: #999999; color: #00000066;
padding: 8px 12px; padding: 8px 12px;
display: flex; display: flex;
align-items: center; align-items: center;
...@@ -375,21 +375,21 @@ export default { ...@@ -375,21 +375,21 @@ export default {
box-sizing: border-box; box-sizing: border-box;
.list { .list {
.item { .item {
border-radius: 8px; border-radius: 12px;
background: #ffffff; background: #ffffff;
padding: 16px; padding: 12px;
margin-bottom: 12px; margin-bottom: 8px;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.name { .name {
font-size: 16px; font-size: 14px;
font-weight: 600; font-weight: 500;
color: #333333; color: #000000E5;
} }
.status-badge { .status-badge {
font-size: 12px; font-size: 10px;
padding: 2px 6px; padding: 4px 6px;
border-radius: 4px; border-radius: 4px;
} }
...@@ -415,16 +415,17 @@ export default { ...@@ -415,16 +415,17 @@ export default {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 16px; margin-bottom: 12px;
.status-box { .status-box {
display: flex; display: flex;
flex-shrink: 0;
align-items: center; align-items: center;
} }
} }
.item-grid { .item-grid {
background: #F8F8F8; background: #F8F8F8;
border-radius: 8px; border-radius: 8px;
padding: 12px 4px; padding: 9px 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
...@@ -436,14 +437,14 @@ export default { ...@@ -436,14 +437,14 @@ export default {
align-items: center; align-items: center;
.col-label { .col-label {
font-size: 12px; font-size: 12px;
color: #999999; color: #00000042;
margin-bottom: 8px; margin-bottom: 5px;
transform: scale(0.9);
white-space: nowrap; white-space: nowrap;
} }
.col-value { .col-value {
font-size: 16px; color: #000000E5;
font-weight: 600; font-size: 20px;
font-weight: 500;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!