重构家庭资产负债详情展示
This commit is contained in:
@@ -16,24 +16,12 @@ const mockSource = fs.readFileSync(
|
||||
),
|
||||
"utf8"
|
||||
);
|
||||
const placeholderTab = fs.readFileSync(
|
||||
path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiProject/components/detail/ProjectAnalysisPlaceholderTab.vue"
|
||||
),
|
||||
"utf8"
|
||||
);
|
||||
|
||||
[
|
||||
'title="项目分析"',
|
||||
'width="80%"',
|
||||
'top="5vh"',
|
||||
"project-analysis-header",
|
||||
"project-analysis-overview",
|
||||
"analysis-panel",
|
||||
"project-analysis-header__title",
|
||||
"project-analysis-header__risk",
|
||||
"project-analysis-header__meta",
|
||||
"project-analysis-shell",
|
||||
"<project-analysis-sidebar",
|
||||
'<el-tabs v-model="activeTab"',
|
||||
'name="abnormalDetail"',
|
||||
@@ -49,19 +37,10 @@ const placeholderTab = fs.readFileSync(
|
||||
"project-analysis-layout__main-scroll",
|
||||
"overflow-y: auto",
|
||||
"max-height: calc(90vh - 120px)",
|
||||
"工号",
|
||||
"部门",
|
||||
"所属项目",
|
||||
"border: 1px solid #e2e8f0",
|
||||
"border-radius: 20px",
|
||||
].forEach((token) => assert(dialog.includes(token), token));
|
||||
|
||||
assert(!dialog.includes("project-analysis-shell"), "不应继续保留内部大白卡外壳");
|
||||
assert(!dialog.includes('class="source-summary"'), "当前命中模型不应停留在主区顶部");
|
||||
assert(placeholderTab.includes("analysis-panel--placeholder"), "占位页签应与主区面板统一样式基线");
|
||||
assert(
|
||||
!placeholderTab.includes("background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%)"),
|
||||
"占位页签不应继续保留旧渐变底"
|
||||
);
|
||||
|
||||
[
|
||||
"projectAnalysisTabs",
|
||||
'key: "abnormalDetail"',
|
||||
|
||||
Reference in New Issue
Block a user