You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
// 探查单页条目结构:dataJs / html / mapping_md5
|
|
import fs from 'node:fs';
|
|
const data = JSON.parse(fs.readFileSync('e:/code/crm-backend-matt/.scratch/lanhu-latest/axure-v29.json', 'utf8'));
|
|
|
|
// 1. 数一下 pages 总数
|
|
const pageKeys = Object.keys(data.pages);
|
|
console.log('total pages in manifest:', pageKeys.length);
|
|
|
|
// 2. 看一个商机关键页(团队成员 Tab —— D-04/05/06 的原型依据)
|
|
const target = pageKeys.find(k => k.includes('a3-1-1-1-8'));
|
|
console.log('\n=== target page:', target, '===');
|
|
const entry = data.pages[target];
|
|
for (const [k, v] of Object.entries(entry)) {
|
|
const s = typeof v === 'string' ? v : JSON.stringify(v);
|
|
console.log(`${k} (${typeof v}, len=${s.length}): ${s.slice(0, 400)}`);
|
|
}
|
|
|
|
// 3. 再看 添加关联客户 a3-1-1-2-4
|
|
const target2 = pageKeys.find(k => k.includes('a3-1-1-2-4'));
|
|
console.log('\n=== target2 page:', target2, '===');
|
|
if (target2) {
|
|
const e2 = data.pages[target2];
|
|
for (const [k, v] of Object.entries(e2)) {
|
|
const s = typeof v === 'string' ? v : JSON.stringify(v);
|
|
console.log(`${k} (${typeof v}, len=${s.length}): ${s.slice(0, 300)}`);
|
|
}
|
|
}
|
|
|