style: 统一顶部部门选择下拉框与其他按钮的大小

This commit is contained in:
Your Name 2026-01-17 10:28:35 +08:00
parent 3f8a3446f8
commit f735ab6022

View File

@ -12,15 +12,16 @@
<a-select
v-if="managedDepartments.length > 0"
v-model:value="currentDeptView"
style="width: 140px; margin-right: 8px;"
style="width: 120px; margin-right: 8px;"
size="middle"
@change="handleDeptViewChange"
class="dept-view-select"
>
<a-select-option :value="undefined">
{{ userDeptName }}(我的部门)
{{ userDeptName }}
</a-select-option>
<a-select-option v-for="dept in managedDepartments" :key="dept.deptId" :value="dept.deptId">
{{ dept.deptName }}({{ dept.deptType === 'demand' ? '需求' : '接单' }})
{{ dept.deptName }}
</a-select-option>
</a-select>
<a-month-picker
@ -6054,6 +6055,16 @@ onUnmounted(() => {
button {
min-width: 140px;
}
// 部门视角切换下拉框样式
.dept-view-select {
:deep(.ant-select-selection-item) {
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
// 图表卡片 - Cursor 风格