feat(admin): 新增全套运营管理功能,修复核心路由bug及后端seed问题
修复Vue Admin布局中RouterView未绑定唯一key的问题,解决RBAC系统资源页面切换后内容不刷新的ISSUE-001故障,新增routeViewKey工具函数区分路由实例 完善路由配置,新增admin空路径路由,修复路由命名空路径告警 新增媒体管理、运维发布/重置页面,补全全站路由注册与动态路由过滤逻辑 新增玩法、线索、管家、系统资源管理的全套工具函数、业务组件及单元测试用例 修复后端app/seed.py中媒体资源重复检测未考虑会话内pending资源的bug,新增对应测试验证修复逻辑 修正alembic迁移版本0015的依赖关系,删除废弃的旧迁移文件 优化后端系统接口的字典序列化逻辑,简化重复代码 添加QA验收报告与相关测试截图,完善项目测试覆盖
This commit is contained in:
1 parent
fa6fd2a8eb
commit
efab6d1398
73 files changed
+3963
-788
No files matched your search
@@ -31,6 +31,7 @@ button, input { font: inherit; }
|
||||
.admin-main { padding: 34px 40px 54px; }
|
||||
.page-stack { max-width: 1220px; margin: 0 auto; }
|
||||
.page-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 26px; }
|
||||
.page-intro-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
|
||||
.page-intro p:not(.eyebrow) { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
|
||||
.metric-grid, .module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
|
||||
.metric-card, .module-card, .panel-card, .advisor-card { border: 1px solid var(--line); border-radius: 12px; }
|
||||
@@ -53,7 +54,97 @@ button, input { font: inherit; }
|
||||
.advisor-card strong, .advisor-card span { display: block; }
|
||||
.advisor-card span { margin-top: 4px; color: var(--muted); font-size: 12px; }
|
||||
.advisor-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #1d4ed8; background: #dbeafe; font-weight: 700; }
|
||||
.concierge-list { display: grid; gap: 10px; }
|
||||
.concierge-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
|
||||
.concierge-row:last-child { border-bottom: 0; }
|
||||
.concierge-summary, .concierge-actions, .media-toolbar, .single-media-heading, .subsection-heading { display: flex; align-items: center; gap: 12px; }
|
||||
.concierge-summary { min-width: 0; }
|
||||
.concierge-summary > div:last-child { min-width: 0; }
|
||||
.concierge-summary strong, .concierge-summary span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.concierge-summary span, .subsection-heading span { margin-top: 4px; color: var(--muted); font-size: 12px; }
|
||||
.concierge-actions { flex-wrap: wrap; justify-content: flex-end; }
|
||||
.concierge-editor, .single-media-editor { padding: 4px 4px 14px; }
|
||||
.concierge-detail-editor { margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
|
||||
.subsection-heading { justify-content: space-between; margin-bottom: 12px; }
|
||||
.subsection-heading > div { display: grid; gap: 2px; }
|
||||
.concierge-detail-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 8px; margin-bottom: 8px; }
|
||||
.single-media-editor { display: grid; align-content: start; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
|
||||
.single-media-heading { justify-content: space-between; }
|
||||
.single-media-preview { width: 100%; height: 150px; border-radius: 8px; background: #f1f5f9; }
|
||||
.lead-filter-card { margin-bottom: 16px; }
|
||||
.lead-filters { display: grid; grid-template-columns: 170px 170px minmax(180px, 1fr) auto; gap: 10px; }
|
||||
.lead-summary { display: grid; gap: 4px; min-width: 0; }
|
||||
.lead-summary span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.lead-detail-card { margin-top: 16px; }
|
||||
.lead-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
|
||||
.lead-detail-grid dt { color: var(--muted); font-size: 12px; }
|
||||
.lead-detail-grid dd { margin: 5px 0 0; color: var(--ink); font-weight: 650; }
|
||||
.lead-detail-section { margin-top: 20px; padding: 14px; border-radius: 9px; background: #f8fafc; }
|
||||
.lead-detail-section p { margin: 7px 0 0; color: #475569; line-height: 1.6; }
|
||||
.media-toolbar { justify-content: flex-end; }
|
||||
.media-toolbar .el-input { width: 150px; }
|
||||
.media-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
|
||||
.media-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
|
||||
.media-card > .el-image { display: block; width: 100%; height: 150px; background: #f1f5f9; }
|
||||
.media-card-content { display: grid; gap: 5px; padding: 10px; }
|
||||
.media-card-content span, .media-card-content small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.media-card-content small { color: #94a3b8; }
|
||||
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
|
||||
.operation-card h3 { margin: 0; font-size: 19px; }
|
||||
.operation-card > p:not(.eyebrow) { min-height: 50px; margin: 10px 0 20px; color: var(--muted); line-height: 1.7; }
|
||||
.danger-operation { border-color: #fecaca; }
|
||||
.operation-result { margin-top: 18px; }
|
||||
.json-preview { max-height: 220px; overflow: auto; margin: 0; color: #475569; font-size: 12px; white-space: pre-wrap; }
|
||||
.site-config-intro { align-items: center; }
|
||||
.site-config-intro + .el-alert { margin-bottom: 18px; }
|
||||
.site-config-tabs { margin-top: 18px; }
|
||||
.site-config-panel { padding: 4px 0 0; }
|
||||
.site-config-panel .panel-heading { margin-bottom: 18px; }
|
||||
.site-config-panel .panel-heading > div { display: grid; gap: 5px; }
|
||||
.site-config-panel .panel-heading span { color: var(--muted); font-size: 12px; font-weight: 400; }
|
||||
.site-item-content { display: flex; align-items: center; gap: 12px; min-width: 0; }
|
||||
.site-item-content > div { min-width: 0; }
|
||||
.site-item-content strong, .site-item-content small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.site-item-content small { margin-top: 5px; color: var(--muted); font-size: 12px; }
|
||||
.site-item-thumb { flex: 0 0 auto; width: 56px; height: 40px; border-radius: 7px; background: #f1f5f9; }
|
||||
.site-config-editor { padding: 4px 4px 14px; }
|
||||
.wanfa-workspace { display: grid; grid-template-columns: minmax(260px, .34fr) minmax(0, .66fr); gap: 18px; align-items: start; }
|
||||
.wanfa-category-panel, .wanfa-route-panel { min-width: 0; }
|
||||
.wanfa-category-list { display: grid; gap: 8px; }
|
||||
.wanfa-category-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; padding: 10px; border: 1px solid transparent; border-radius: 9px; background: #f8fafc; }
|
||||
.wanfa-category-row.is-selected { border-color: #bfdbfe; background: #eff6ff; }
|
||||
.wanfa-category-select { display: flex; justify-content: space-between; gap: 8px; width: 100%; padding: 0; border: 0; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
|
||||
.wanfa-category-select span { color: var(--muted); font-size: 12px; white-space: nowrap; }
|
||||
.wanfa-row-actions { display: flex; flex-wrap: wrap; gap: 2px; }
|
||||
.wanfa-row-actions .el-button { margin-left: 0; }
|
||||
.wanfa-editor { padding: 4px 4px 14px; }
|
||||
.route-editor { padding-bottom: 0; }
|
||||
.detail-fields { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
|
||||
.detail-fields-heading { display: grid; gap: 4px; margin-bottom: 18px; }
|
||||
.detail-fields-heading span { color: var(--muted); font-size: 12px; line-height: 1.5; }
|
||||
.route-editor .el-alert { margin-top: 18px; }
|
||||
.gallery-editor { display: grid; gap: 12px; margin-bottom: 18px; padding-top: 4px; }
|
||||
.gallery-editor-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
|
||||
.gallery-editor-heading > div { display: grid; gap: 4px; }
|
||||
.gallery-editor-heading span { color: var(--muted); font-size: 12px; }
|
||||
.media-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
|
||||
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
|
||||
.gallery-item { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
|
||||
.gallery-item .el-image { display: block; width: 100%; height: 120px; border-radius: 6px; background: #f1f5f9; }
|
||||
.gallery-item small { display: block; overflow: hidden; margin-top: 7px; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.gallery-actions { display: flex; gap: 2px; margin-top: 3px; }
|
||||
.editor-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
|
||||
.editor-heading h3 { margin: 0; font-size: 21px; }
|
||||
.editor-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
|
||||
.site-config-editor .el-form-item { margin-bottom: 18px; }
|
||||
.field-hint { margin: 6px 0 0; color: #94a3b8; font-size: 12px; line-height: 1.5; }
|
||||
.site-image-preview { display: block; width: 100%; max-width: 260px; height: 132px; margin-top: 12px; border-radius: 9px; background: #f1f5f9; }
|
||||
.editor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
|
||||
.editor-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 10px; }
|
||||
@media (max-width: 880px) { .wanfa-workspace { grid-template-columns: 1fr; } }
|
||||
@media (max-width: 980px) { .media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lead-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (max-width: 760px) { .concierge-row { align-items: flex-start; flex-direction: column; } .concierge-actions { justify-content: flex-start; } .lead-filters { grid-template-columns: 1fr 1fr; } .lead-filters .el-input { grid-column: 1 / -1; } .operations-grid { grid-template-columns: 1fr; } .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
|
||||
@media (max-width: 640px) { .site-config-intro { align-items: flex-start; } .site-config-intro .el-button, .page-intro-actions { width: 100%; } .page-intro-actions { justify-content: stretch; } .page-intro-actions .el-button { flex: 1; } .editor-options { grid-template-columns: 1fr; gap: 0; } .site-config-panel .panel-heading { align-items: flex-start; flex-direction: column; } .site-config-panel .panel-heading .el-button { width: 100%; } .concierge-detail-row { grid-template-columns: 1fr; } .lead-filters { grid-template-columns: 1fr; } .lead-filters .el-input { grid-column: auto; } .lead-detail-grid { grid-template-columns: 1fr; } .media-toolbar { align-items: stretch; flex-direction: column; width: 100%; } .media-toolbar .el-input { width: 100%; } .media-grid { grid-template-columns: 1fr; } }
|
||||
.login-page { display: grid; grid-template-columns: minmax(0, 1fr) 420px; min-height: 100vh; padding: 5vw 9vw; gap: 8vw; align-items: center; background: #f8fafc; }
|
||||
.login-art { max-width: 560px; }
|
||||
.login-art h1 { margin: 18px 0; color: #172554; font-size: clamp(34px, 4vw, 61px); letter-spacing: -.05em; line-height: 1.07; }
|
||||
|
||||
Reference in new issue
Block a user