重构家庭资产负债详情展示
This commit is contained in:
@@ -11,8 +11,6 @@ const source = fs.readFileSync(componentPath, "utf8");
|
||||
[
|
||||
"formatDetailDateTime(value)",
|
||||
'return parseTime(value, hasTime ? "{y}-{m}-{d} {h}:{i}:{s}" : "{y}-{m}-{d}") || "-";',
|
||||
"{{ formatDetailDateTime(scope.row.valuationDate) }}",
|
||||
"{{ formatDetailDateTime(scope.row.queryDate) }}",
|
||||
].forEach((token) => {
|
||||
assert(source.includes(token), `专项核查详情日期展示缺少关键实现: ${token}`);
|
||||
});
|
||||
@@ -21,5 +19,6 @@ assert(
|
||||
source.includes("const hasTime = !formatted.endsWith(\" 00:00:00\");"),
|
||||
"专项核查详情应隐藏无意义的零点时间"
|
||||
);
|
||||
assert(!source.includes("el-table"), "专项核查详情去表格化后不应继续依赖表格日期列");
|
||||
|
||||
console.log("special-check-detail-date-display test passed");
|
||||
|
||||
Reference in New Issue
Block a user