feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
<template>
|
2026-04-30 17:11:24 +08:00
|
|
|
<header class="topbar" :class="{ 'chat-mode': isChat }">
|
2026-04-29 23:35:56 +08:00
|
|
|
<div class="title-group">
|
|
|
|
|
<div class="eyebrow">Smart Expense Operations</div>
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
<h1>{{ currentView.title }}</h1>
|
|
|
|
|
<p>{{ currentView.desc }}</p>
|
|
|
|
|
</div>
|
2026-04-29 23:35:56 +08:00
|
|
|
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
<div class="top-actions">
|
2026-04-30 17:11:24 +08:00
|
|
|
<span v-if="isChat || !isOverview" class="search-wrap" :class="{ wide: isChat }">
|
2026-04-29 23:35:56 +08:00
|
|
|
<i class="pi pi-search search-icon"></i>
|
2026-04-30 17:11:24 +08:00
|
|
|
<input
|
|
|
|
|
:value="search"
|
|
|
|
|
type="search"
|
|
|
|
|
:placeholder="isChat ? '搜索报销单、发票、单号、部门...' : '搜索申请人、单号、费用类型...'"
|
|
|
|
|
@input="emit('update:search', $event.target.value)"
|
|
|
|
|
/>
|
2026-04-29 23:35:56 +08:00
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<template v-if="isChat">
|
2026-04-30 17:11:24 +08:00
|
|
|
<button class="icon-btn notification" type="button" aria-label="查看通知">
|
|
|
|
|
<i class="pi pi-bell"></i>
|
|
|
|
|
<span>1</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="profile-btn" type="button" aria-label="打开用户菜单">
|
|
|
|
|
<span class="profile-avatar">张</span>
|
|
|
|
|
<span class="profile-copy">
|
|
|
|
|
<strong>张晓明</strong>
|
|
|
|
|
<small>财务管理员</small>
|
|
|
|
|
</span>
|
|
|
|
|
<i class="pi pi-angle-down"></i>
|
2026-04-29 23:35:56 +08:00
|
|
|
</button>
|
|
|
|
|
</template>
|
2026-04-30 17:11:24 +08:00
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
<template v-else>
|
2026-04-30 17:11:24 +08:00
|
|
|
<div v-if="isOverview" class="range-combo" aria-label="首页时间范围">
|
|
|
|
|
<div class="range-shell">
|
|
|
|
|
<span class="range-meta">
|
|
|
|
|
<i class="pi pi-calendar"></i>
|
|
|
|
|
<span>{{ activeDateLabel }}</span>
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
<div class="range-tabs" role="tablist" aria-label="时间范围">
|
|
|
|
|
<button
|
|
|
|
|
v-for="option in rangeOptions"
|
|
|
|
|
:key="option.value"
|
|
|
|
|
type="button"
|
|
|
|
|
role="tab"
|
|
|
|
|
:aria-selected="activeRange === option.value"
|
|
|
|
|
:class="{ active: activeRange === option.value }"
|
|
|
|
|
@click="setRange(option.value)"
|
|
|
|
|
>
|
|
|
|
|
{{ option.label }}
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="custom-range-wrap">
|
|
|
|
|
<button
|
|
|
|
|
class="custom-range-btn"
|
|
|
|
|
type="button"
|
|
|
|
|
:class="{ active: isCustomRange }"
|
|
|
|
|
:aria-expanded="calendarOpen"
|
|
|
|
|
aria-haspopup="dialog"
|
|
|
|
|
@click="calendarOpen = !calendarOpen"
|
|
|
|
|
>
|
|
|
|
|
<i class="pi pi-calendar-plus"></i>
|
|
|
|
|
<span>选择时间段</span>
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
<div v-if="calendarOpen" class="calendar-popover" role="dialog" aria-label="选择看板时间段">
|
|
|
|
|
<header>
|
|
|
|
|
<strong>选择看板时间段</strong>
|
|
|
|
|
<button type="button" aria-label="关闭日期选择" @click="calendarOpen = false">
|
|
|
|
|
<i class="pi pi-times"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<div class="date-fields">
|
|
|
|
|
<label>
|
|
|
|
|
<span>开始日期</span>
|
|
|
|
|
<input v-model="draftStart" type="date" />
|
|
|
|
|
</label>
|
|
|
|
|
<label>
|
|
|
|
|
<span>结束日期</span>
|
|
|
|
|
<input v-model="draftEnd" type="date" />
|
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="quick-presets" aria-label="快捷时间段">
|
|
|
|
|
<button type="button" @click="applyDraft('2024-07-12', '2024-07-12')">今日</button>
|
|
|
|
|
<button type="button" @click="applyDraft('2024-07-06', '2024-07-12')">本周</button>
|
|
|
|
|
<button type="button" @click="applyDraft('2024-07-01', '2024-07-31')">本月</button>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
|
<button class="ghost-btn" type="button" @click="calendarOpen = false">取消</button>
|
|
|
|
|
<button class="apply-btn" type="button" :disabled="!canApplyCustomRange" @click="applyCustomRange">
|
|
|
|
|
应用
|
|
|
|
|
</button>
|
|
|
|
|
</footer>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<template v-else-if="isRequests">
|
|
|
|
|
<button class="month-chip" type="button" aria-label="选择报销月份">
|
|
|
|
|
<i class="pi pi-calendar"></i>
|
|
|
|
|
<span>2024-07</span>
|
|
|
|
|
<i class="pi pi-angle-down"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="icon-btn notification" type="button" aria-label="查看通知">
|
|
|
|
|
<i class="pi pi-bell"></i>
|
|
|
|
|
<span>3</span>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="profile-btn" type="button" aria-label="打开用户菜单">
|
|
|
|
|
<span class="profile-avatar">张</span>
|
|
|
|
|
<span class="profile-copy">
|
|
|
|
|
<strong>张晓明</strong>
|
|
|
|
|
<small>财务管理员</small>
|
|
|
|
|
</span>
|
|
|
|
|
<i class="pi pi-angle-down"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<div v-else class="date-chip">
|
|
|
|
|
<i class="pi pi-calendar"></i>
|
|
|
|
|
<span>2024-07-06 ~ 2024-07-12</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button v-if="!isRequests" class="top-btn primary" type="button" @click="emit('openChat')">
|
2026-04-29 23:35:56 +08:00
|
|
|
<i class="pi pi-sparkles"></i>
|
|
|
|
|
<span>AI 助手</span>
|
|
|
|
|
</button>
|
|
|
|
|
</template>
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
</div>
|
|
|
|
|
</header>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-04-30 17:11:24 +08:00
|
|
|
import { computed, ref, watch } from 'vue'
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
const props = defineProps({
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
currentView: { type: Object, required: true },
|
2026-04-29 23:35:56 +08:00
|
|
|
search: { type: String, default: '' },
|
2026-04-30 17:11:24 +08:00
|
|
|
activeView: { type: String, default: '' },
|
|
|
|
|
ranges: { type: Array, default: () => [] },
|
|
|
|
|
activeRange: { type: String, default: '' },
|
|
|
|
|
customRange: {
|
|
|
|
|
type: Object,
|
|
|
|
|
default: () => ({ start: '2024-07-06', end: '2024-07-12' })
|
|
|
|
|
}
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
})
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
const emit = defineEmits([
|
|
|
|
|
'update:search',
|
|
|
|
|
'update:activeRange',
|
|
|
|
|
'update:customRange',
|
|
|
|
|
'batchApprove',
|
|
|
|
|
'openChat',
|
|
|
|
|
'newApplication'
|
|
|
|
|
])
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
const isChat = computed(() => props.activeView === 'chat')
|
2026-04-30 17:11:24 +08:00
|
|
|
const isOverview = computed(() => props.activeView === 'overview')
|
|
|
|
|
const isRequests = computed(() => props.activeView === 'requests')
|
|
|
|
|
const calendarOpen = ref(false)
|
|
|
|
|
const draftStart = ref(props.customRange.start)
|
|
|
|
|
const draftEnd = ref(props.customRange.end)
|
|
|
|
|
|
|
|
|
|
const fallbackRangeLabels = ['今日', '本周', '本月']
|
|
|
|
|
const dateLabels = {
|
|
|
|
|
'今日': '2024-07-12',
|
|
|
|
|
'本周': '2024-07-06 ~ 2024-07-12',
|
|
|
|
|
'本月': '2024-07'
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const rangeOptions = computed(() =>
|
|
|
|
|
props.ranges.map((range, index) => ({
|
|
|
|
|
value: range,
|
|
|
|
|
label: fallbackRangeLabels[index] ?? String(range)
|
|
|
|
|
}))
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const activeOption = computed(() =>
|
|
|
|
|
rangeOptions.value.find((option) => option.value === props.activeRange) ?? rangeOptions.value[0]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const isCustomRange = computed(() => props.activeRange === 'custom')
|
|
|
|
|
|
|
|
|
|
const activeDateLabel = computed(() => {
|
|
|
|
|
if (isCustomRange.value) return formatRangeLabel(props.customRange.start, props.customRange.end)
|
|
|
|
|
return dateLabels[activeOption.value?.label] ?? '2024-07-06 ~ 2024-07-12'
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
const canApplyCustomRange = computed(() =>
|
|
|
|
|
Boolean(draftStart.value && draftEnd.value && draftStart.value <= draftEnd.value)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
watch(
|
|
|
|
|
() => props.customRange,
|
|
|
|
|
(range) => {
|
|
|
|
|
draftStart.value = range.start
|
|
|
|
|
draftEnd.value = range.end
|
|
|
|
|
},
|
|
|
|
|
{ deep: true }
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
function setRange(range) {
|
|
|
|
|
emit('update:activeRange', range)
|
|
|
|
|
calendarOpen.value = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function applyDraft(start, end) {
|
|
|
|
|
draftStart.value = start
|
|
|
|
|
draftEnd.value = end
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function applyCustomRange() {
|
|
|
|
|
if (!canApplyCustomRange.value) return
|
|
|
|
|
emit('update:customRange', { start: draftStart.value, end: draftEnd.value })
|
|
|
|
|
emit('update:activeRange', 'custom')
|
|
|
|
|
calendarOpen.value = false
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function formatRangeLabel(start, end) {
|
|
|
|
|
if (!start || !end) return '选择时间段'
|
|
|
|
|
if (start === end) return start
|
|
|
|
|
return `${start} ~ ${end}`
|
|
|
|
|
}
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
.topbar {
|
|
|
|
|
display: flex;
|
2026-04-30 17:11:24 +08:00
|
|
|
align-items: center;
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 24px;
|
2026-04-30 17:11:24 +08:00
|
|
|
padding: 18px 24px 20px;
|
2026-04-29 23:35:56 +08:00
|
|
|
background: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.topbar.chat-mode {
|
|
|
|
|
padding-bottom: 16px;
|
|
|
|
|
border-bottom: 1px solid #eef2f7;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.title-group {
|
|
|
|
|
min-width: 0;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.eyebrow {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-bottom: 8px;
|
|
|
|
|
padding: 3px 10px;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: linear-gradient(135deg, rgba(16, 185, 129, 0.10), rgba(59, 130, 246, 0.10));
|
|
|
|
|
color: #0d9668;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
letter-spacing: 1.2px;
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.topbar h1 {
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
letter-spacing: 0;
|
|
|
|
|
line-height: 1.2;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.topbar p {
|
2026-04-30 17:11:24 +08:00
|
|
|
margin-top: 6px;
|
2026-04-29 23:35:56 +08:00
|
|
|
max-width: 720px;
|
2026-04-30 17:11:24 +08:00
|
|
|
color: #64748b;
|
2026-04-29 23:35:56 +08:00
|
|
|
font-size: 14px;
|
2026-04-30 17:11:24 +08:00
|
|
|
line-height: 1.5;
|
2026-04-29 23:35:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-actions {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: flex-end;
|
2026-04-30 17:11:24 +08:00
|
|
|
gap: 14px;
|
2026-04-29 23:35:56 +08:00
|
|
|
flex-wrap: wrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-wrap {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 256px;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.search-wrap.wide {
|
|
|
|
|
width: min(340px, 28vw);
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.search-icon {
|
|
|
|
|
position: absolute;
|
2026-04-30 17:11:24 +08:00
|
|
|
left: 14px;
|
2026-04-29 23:35:56 +08:00
|
|
|
top: 50%;
|
|
|
|
|
transform: translateY(-50%);
|
2026-04-30 17:11:24 +08:00
|
|
|
color: #64748b;
|
|
|
|
|
font-size: 15px;
|
2026-04-29 23:35:56 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.search-wrap input {
|
|
|
|
|
width: 100%;
|
2026-04-30 17:11:24 +08:00
|
|
|
height: 42px;
|
|
|
|
|
padding: 0 14px 0 40px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #0f172a;
|
2026-04-29 23:35:56 +08:00
|
|
|
font-size: 14px;
|
|
|
|
|
transition: border-color 160ms ease, box-shadow 160ms ease;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.search-wrap input::placeholder {
|
|
|
|
|
color: #8da0b4;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.search-wrap input:focus {
|
|
|
|
|
border-color: #10b981;
|
2026-04-30 17:11:24 +08:00
|
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.14);
|
2026-04-29 23:35:56 +08:00
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.range-combo {
|
|
|
|
|
position: relative;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-shell {
|
|
|
|
|
height: 42px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
padding: 3px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-meta {
|
|
|
|
|
height: 34px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 0 12px;
|
|
|
|
|
border-right: 1px solid #e2e8f0;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 650;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-meta .pi {
|
|
|
|
|
color: #10b981;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs {
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
padding-left: 3px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs button {
|
|
|
|
|
height: 34px;
|
|
|
|
|
min-width: 54px;
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
border: 0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: #64748b;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs button:hover:not(.active) {
|
|
|
|
|
background: #f1f5f9;
|
|
|
|
|
color: #334155;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs button.active {
|
|
|
|
|
background: #10b981;
|
|
|
|
|
color: #fff;
|
|
|
|
|
box-shadow: 0 6px 14px rgba(16, 185, 129, .18);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-range-wrap {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-range-btn {
|
|
|
|
|
height: 42px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 0 13px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 750;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-range-btn:hover,
|
|
|
|
|
.custom-range-btn.active {
|
|
|
|
|
border-color: rgba(16, 185, 129, .34);
|
|
|
|
|
background: #f6fffb;
|
|
|
|
|
color: #0f9f78;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-range-btn.active {
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, .10);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: calc(100% + 10px);
|
|
|
|
|
right: 0;
|
|
|
|
|
width: 336px;
|
|
|
|
|
z-index: 40;
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 14px;
|
|
|
|
|
padding: 16px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover::before {
|
|
|
|
|
content: "";
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: -6px;
|
|
|
|
|
right: 30px;
|
|
|
|
|
width: 12px;
|
|
|
|
|
height: 12px;
|
|
|
|
|
border-top: 1px solid #d7e0ea;
|
|
|
|
|
border-left: 1px solid #d7e0ea;
|
|
|
|
|
background: #fff;
|
|
|
|
|
transform: rotate(45deg);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover header,
|
|
|
|
|
.calendar-popover footer {
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
gap: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover header strong {
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover header button {
|
|
|
|
|
width: 30px;
|
|
|
|
|
height: 30px;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
border: 0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: transparent;
|
|
|
|
|
color: #64748b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover header button:hover {
|
|
|
|
|
background: #f1f5f9;
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: 1fr 1fr;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields label {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 6px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields span {
|
|
|
|
|
color: #64748b;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields input {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 38px;
|
|
|
|
|
padding: 0 9px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields input:focus {
|
|
|
|
|
border-color: #10b981;
|
|
|
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
|
|
|
|
|
outline: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quick-presets {
|
|
|
|
|
display: grid;
|
|
|
|
|
grid-template-columns: repeat(3, 1fr);
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quick-presets button {
|
|
|
|
|
height: 34px;
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.quick-presets button:hover {
|
|
|
|
|
border-color: rgba(16, 185, 129, .28);
|
|
|
|
|
background: #ecfdf5;
|
|
|
|
|
color: #0f9f78;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ghost-btn,
|
|
|
|
|
.apply-btn {
|
|
|
|
|
height: 36px;
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
font-weight: 750;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ghost-btn {
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #334155;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.apply-btn {
|
|
|
|
|
border: 0;
|
|
|
|
|
background: #10b981;
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.apply-btn:disabled {
|
|
|
|
|
cursor: not-allowed;
|
|
|
|
|
background: #cbd5e1;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.date-chip {
|
|
|
|
|
height: 40px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 0 32px 0 12px;
|
|
|
|
|
border: 1px solid #cbd5e1;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: var(--text);
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.month-chip {
|
|
|
|
|
height: 42px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 9px;
|
|
|
|
|
padding: 0 14px;
|
|
|
|
|
border: 1px solid #d7e0ea;
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
background: #fff;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 750;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.month-chip .pi:first-child {
|
|
|
|
|
color: #64748b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.month-chip:hover {
|
|
|
|
|
border-color: rgba(16, 185, 129, .32);
|
|
|
|
|
color: #0f9f78;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-29 23:35:56 +08:00
|
|
|
.date-chip .pi {
|
|
|
|
|
color: #94a3b8;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-btn {
|
|
|
|
|
height: 40px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
padding: 0 16px;
|
|
|
|
|
border: 0;
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
font-size: 14px;
|
2026-04-30 17:11:24 +08:00
|
|
|
font-weight: 650;
|
2026-04-29 23:35:56 +08:00
|
|
|
transition: background 160ms ease;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-btn.primary {
|
|
|
|
|
background: var(--primary);
|
|
|
|
|
color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-btn.primary:hover {
|
|
|
|
|
background: #0ea672;
|
|
|
|
|
}
|
|
|
|
|
|
2026-04-30 17:11:24 +08:00
|
|
|
.icon-btn,
|
|
|
|
|
.profile-btn {
|
|
|
|
|
border: 0;
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-btn {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 42px;
|
|
|
|
|
height: 42px;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
color: #334155;
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon-btn:hover,
|
|
|
|
|
.profile-btn:hover {
|
|
|
|
|
background: #f3f7fa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.notification span {
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 4px;
|
|
|
|
|
right: 5px;
|
|
|
|
|
min-width: 18px;
|
|
|
|
|
height: 18px;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
border: 2px solid #fff;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
background: #ff3b45;
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-btn {
|
|
|
|
|
min-height: 46px;
|
|
|
|
|
display: inline-grid;
|
|
|
|
|
grid-template-columns: 38px minmax(0, 1fr) 18px;
|
|
|
|
|
align-items: center;
|
|
|
|
|
gap: 10px;
|
|
|
|
|
padding: 4px 6px;
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
color: #334155;
|
|
|
|
|
text-align: left;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-avatar {
|
|
|
|
|
width: 38px;
|
|
|
|
|
height: 38px;
|
|
|
|
|
display: grid;
|
|
|
|
|
place-items: center;
|
|
|
|
|
border-radius: 999px;
|
|
|
|
|
background: linear-gradient(135deg, #203047, #60758a);
|
|
|
|
|
color: #fff;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-copy {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-copy strong {
|
|
|
|
|
color: #172033;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-copy small {
|
|
|
|
|
color: #64748b;
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-btn .pi {
|
|
|
|
|
color: #64748b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 1120px) {
|
|
|
|
|
.range-combo {
|
|
|
|
|
width: 100%;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 960px) {
|
2026-04-29 23:35:56 +08:00
|
|
|
.topbar {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.top-actions,
|
|
|
|
|
.search-wrap,
|
2026-04-30 17:11:24 +08:00
|
|
|
.search-wrap.wide,
|
|
|
|
|
.date-chip,
|
|
|
|
|
.month-chip,
|
|
|
|
|
.top-btn {
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-combo {
|
|
|
|
|
justify-content: stretch;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-shell {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-meta {
|
|
|
|
|
flex: 1;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.custom-range-btn {
|
2026-04-29 23:35:56 +08:00
|
|
|
width: 100%;
|
2026-04-30 17:11:24 +08:00
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover {
|
|
|
|
|
right: auto;
|
|
|
|
|
left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.profile-btn {
|
|
|
|
|
justify-content: start;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
.range-combo {
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-shell {
|
|
|
|
|
height: auto;
|
|
|
|
|
display: grid;
|
|
|
|
|
gap: 4px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-meta {
|
|
|
|
|
width: 100%;
|
|
|
|
|
border-right: 0;
|
|
|
|
|
border-bottom: 1px solid #e2e8f0;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs {
|
|
|
|
|
width: 100%;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.range-tabs button {
|
|
|
|
|
flex: 1;
|
|
|
|
|
padding: 0 8px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.calendar-popover {
|
|
|
|
|
width: min(336px, calc(100vw - 32px));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.date-fields {
|
|
|
|
|
grid-template-columns: 1fr;
|
2026-04-29 23:35:56 +08:00
|
|
|
}
|
|
|
|
|
}
|
feat: refactor monolithic App.vue into modular Vue component architecture
- Extract 711-line App.vue into 15+ focused files across 5 directories
- Add data layer (icons, metrics, policies, auditTrail, requests)
- Add composables (useNavigation, useRequests, useChat, useToast)
- Add layout components (SidebarRail, TopBar, FilterBar)
- Add shared components (PanelHead, InfoRow, ToastNotification)
- Add business component (RequestTable) and 5 view components
- Extract global CSS to assets/styles/global.css
- Add start.sh with WSL/Windows cross-platform support
- Add .gitignore for node_modules, dist, and IDE dirs
2026-04-28 17:20:52 +08:00
|
|
|
</style>
|