调整征信导入入口跳转到征信维护页面

This commit is contained in:
wkc
2026-03-24 13:59:36 +08:00
parent f4481792c8
commit 47eed3e63c
7 changed files with 374 additions and 130 deletions

View File

@@ -0,0 +1,26 @@
const assert = require("assert");
const fs = require("fs");
const path = require("path");
const viewPath = path.resolve(
__dirname,
"../../src/views/ccdiProject/components/detail/UploadData.vue"
);
const source = fs.readFileSync(viewPath, "utf8");
[
'@click="handleGoCreditInfoPage"',
'this.$router.push("/maintain/creditInfo")',
].forEach((token) => {
assert(source.includes(token), `缺少征信入口跳转关键代码: ${token}`);
});
[
"showCreditUploadDialog",
"handleConfirmCreditUpload",
"handleCreditFileChange",
].forEach((token) => {
assert(!source.includes(token), `旧征信弹窗逻辑未清理: ${token}`);
});
console.log("征信入口跳转契约检查通过");