图谱工作台功能扩充:职级视图改为岗位能力树(L1→L2→L3成长阶梯)、新增图谱搜索定位、岗位对比模式(三色交集/差集+转岗就绪度)、时序视图季度解说面板,纯函数单测83例全过
This commit is contained in:
@@ -321,6 +321,89 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.graph-timeline input[type="range"] { width: 240px; accent-color: var(--primary); }
|
||||
.gt-window { font-size: 12px; color: var(--text-1); font-weight: 600; white-space: nowrap; }
|
||||
|
||||
/* 图谱搜索定位(头部) */
|
||||
.graph-search { position: relative; display: flex; align-items: center; }
|
||||
.graph-search svg {
|
||||
position: absolute; left: 9px; width: 14px; height: 14px;
|
||||
stroke: var(--text-3); fill: none; stroke-width: 2; pointer-events: none;
|
||||
}
|
||||
.graph-search input {
|
||||
width: 210px; padding: 6px 10px 6px 28px; font-size: 13px;
|
||||
border: 1px solid var(--border-dark); border-radius: var(--radius-sm);
|
||||
outline: none; transition: border-color .15s, box-shadow .15s;
|
||||
}
|
||||
.graph-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24,144,255,.12); }
|
||||
.gs-dropdown {
|
||||
position: absolute; top: calc(100% + 6px); left: 0; width: 280px; max-height: 320px; overflow: auto;
|
||||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-pop); z-index: 60; padding: 4px;
|
||||
}
|
||||
.gsd-item {
|
||||
display: flex; align-items: center; gap: 8px; padding: 7px 8px;
|
||||
border-radius: var(--radius-sm); cursor: pointer; font-size: 13px;
|
||||
}
|
||||
.gsd-item:hover, .gsd-item.active { background: #e8f3ff; }
|
||||
.gsd-item .gsd-name { flex: 1; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.gsd-empty { padding: 10px; font-size: 12px; color: var(--text-3); text-align: center; }
|
||||
|
||||
/* 职级演进视图:画布顶部岗位选择条(与时间轴同款胶囊) */
|
||||
.graph-level-bar {
|
||||
position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
|
||||
display: flex; align-items: center; gap: 10px; z-index: 6;
|
||||
background: rgba(255,255,255,0.94); border: 1px solid var(--border); border-radius: 999px;
|
||||
padding: 6px 14px; box-shadow: var(--shadow-pop);
|
||||
}
|
||||
.gl-label { font-size: 12px; font-weight: 600; color: var(--text-1); white-space: nowrap; }
|
||||
.gl-hint { font-size: 11px; white-space: nowrap; }
|
||||
.select-sm { padding: 4px 8px; font-size: 12px; max-width: 220px; }
|
||||
|
||||
/* 岗位对比模式:画布顶部对比条 */
|
||||
.graph-compare-bar {
|
||||
position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
|
||||
display: flex; align-items: center; gap: 8px; z-index: 6;
|
||||
background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: 999px;
|
||||
padding: 6px 14px; box-shadow: var(--shadow-pop);
|
||||
}
|
||||
.gc-vs { font-size: 12px; color: var(--text-3); font-weight: 600; }
|
||||
.gc-legend { display: flex; align-items: center; gap: 10px; margin-left: 6px; font-size: 11px; color: var(--text-2); }
|
||||
.gc-legend span { display: inline-flex; align-items: center; gap: 4px; }
|
||||
.gc-legend em { font-style: normal; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.gc-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
|
||||
|
||||
/* 动态时序视图:当季解说面板(画布左上,工具条之下) */
|
||||
.gt-panel {
|
||||
position: absolute; top: 64px; left: 60px; width: 272px; max-height: calc(100% - 190px); overflow: auto;
|
||||
background: rgba(255,255,255,0.96); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-pop); z-index: 5; padding: 12px 14px;
|
||||
}
|
||||
.gtp-title { font-size: 13px; font-weight: 600; color: var(--text-1); margin-bottom: 6px; }
|
||||
.gtp-stats { display: flex; gap: 12px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
|
||||
.gtp-stat b { display: block; font-size: 16px; color: var(--primary); font-weight: 600; }
|
||||
.gtp-stat span { font-size: 11px; color: var(--text-3); }
|
||||
.gtp-sec { margin-bottom: 8px; }
|
||||
.gtp-sec-title { font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 4px; }
|
||||
.gtp-item {
|
||||
font-size: 12px; color: var(--text-2); padding: 2px 0; cursor: pointer;
|
||||
overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
|
||||
}
|
||||
.gtp-item:hover { color: var(--primary); }
|
||||
.gtp-item .tag { margin-right: 4px; }
|
||||
.gtp-more { font-size: 11px; color: var(--text-3); padding: 2px 0; }
|
||||
|
||||
/* 岗位对比:右侧详情面板 */
|
||||
.dtc-hero { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
|
||||
.dtc-job { flex: 1; min-width: 0; text-align: center; padding: 8px 6px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
|
||||
.dtc-job small { display: block; font-weight: 400; font-size: 11px; color: var(--text-3); margin-top: 2px; }
|
||||
.dtc-vs { font-size: 12px; color: var(--text-3); font-weight: 600; }
|
||||
.dtc-stats { display: flex; gap: 8px; margin: 8px 0; }
|
||||
.dtc-stat { flex: 1; text-align: center; background: var(--bg-hover, #f7f8fa); border-radius: var(--radius-sm); padding: 8px 4px; }
|
||||
.dtc-stat b { display: block; font-size: 18px; font-weight: 600; }
|
||||
.dtc-stat span { font-size: 11px; color: var(--text-3); }
|
||||
.dtc-ready { margin: 6px 0 2px; }
|
||||
.dtc-ready-bar { height: 8px; border-radius: 4px; background: var(--border); overflow: hidden; margin-top: 4px; }
|
||||
.dtc-ready-bar i { display: block; height: 100%; border-radius: 4px; background: var(--primary); }
|
||||
|
||||
|
||||
.graph-body { display: flex; gap: 12px; height: calc(100vh - var(--topbar-h) - 130px); min-height: 520px; }
|
||||
.graph-canvas-wrap { flex: 1; position: relative; overflow: hidden; min-width: 0; }
|
||||
#graph-canvas { width: 100%; height: 100%; display: block; cursor: grab; }
|
||||
|
||||
Reference in New Issue
Block a user