完成中介库导入改造
This commit is contained in:
@@ -10,9 +10,14 @@ const detailDialogPath = path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiIntermediary/components/DetailDialog.vue"
|
||||
);
|
||||
const pagePath = path.resolve(
|
||||
__dirname,
|
||||
"../../src/views/ccdiIntermediary/index.vue"
|
||||
);
|
||||
|
||||
const editDialogSource = fs.readFileSync(editDialogPath, "utf8");
|
||||
const detailDialogSource = fs.readFileSync(detailDialogPath, "utf8");
|
||||
const pageSource = fs.readFileSync(pagePath, "utf8");
|
||||
|
||||
[
|
||||
'label="中介子类型"',
|
||||
@@ -52,4 +57,19 @@ assert(
|
||||
"个人中介详情不应继续展示单独的关系类型字段"
|
||||
);
|
||||
|
||||
[
|
||||
"personFailureDialogVisible",
|
||||
"enterpriseRelationFailureDialogVisible",
|
||||
"viewPersonImportFailures",
|
||||
"viewEnterpriseRelationImportFailures",
|
||||
"clearPersonImportHistory",
|
||||
"clearEnterpriseRelationImportHistory",
|
||||
"refreshCurrentDetail()",
|
||||
].forEach((token) => {
|
||||
assert(
|
||||
pageSource.includes(token),
|
||||
`中介页面缺少导入失败记录或详情刷新逻辑: ${token}`
|
||||
);
|
||||
});
|
||||
|
||||
console.log("intermediary-person-edit-ui test passed");
|
||||
|
||||
Reference in New Issue
Block a user