完成招聘双Sheet导入改造

This commit is contained in:
wkc
2026-04-23 10:27:08 +08:00
parent 110817abba
commit a2ba044ebe
14 changed files with 838 additions and 467 deletions

View File

@@ -0,0 +1,28 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const componentPath = path.resolve(
__dirname,
"../../src/views/ccdiStaffRecruitment/index.vue"
);
const source = fs.readFileSync(componentPath, "utf8");
[
"模板包含“招聘信息”和“历史工作经历”两个 Sheet。",
"this.currentTaskId = taskId",
"this.showFailureButton = false",
"this.startImportStatusPolling(taskId)"
].forEach((token) => {
assert(source.includes(token), `招聘导入状态未统一到单任务: ${token}`);
});
[
"currentImportType",
"upload.importType",
"getImportTypeLabel"
].forEach((token) => {
assert(!source.includes(token), `招聘导入状态不应再按类型拆分: ${token}`);
});
console.log("staff-recruitment-import-state test passed");