- Implement Tool B 5-step workflow (upload, schema, processing, verify, result) - Add back navigation button to Portal - Optimize Step 2 field list styling to match prototype - Fix step 3 label: 'dual-blind' to 'dual-model' - Create API service layer with 7 endpoints - Integrate Tool B route into DC module - Add comprehensive TypeScript types Components (~1100 lines): - index.tsx: Main Tool B entry with state management - Step1Upload.tsx: File upload and health check - Step2Schema.tsx: Smart template configuration - Step3Processing.tsx: Dual-model extraction progress - Step4Verify.tsx: Conflict verification workbench - Step5Result.tsx: Result display - StepIndicator.tsx: Step progress component - api/toolB.ts: API service layer Status: Frontend complete, ready for API integration
28 lines
690 B
PowerShell
28 lines
690 B
PowerShell
# DC模块数据库同步脚本
|
||
Write-Host "====================================" -ForegroundColor Cyan
|
||
Write-Host "DC模块数据库表同步" -ForegroundColor Cyan
|
||
Write-Host "====================================" -ForegroundColor Cyan
|
||
Write-Host ""
|
||
|
||
Set-Location $PSScriptRoot
|
||
|
||
Write-Host "1️⃣ 生成Prisma Client..." -ForegroundColor Yellow
|
||
npm run prisma:generate
|
||
|
||
Write-Host ""
|
||
Write-Host "2️⃣ 推送Schema到数据库..." -ForegroundColor Yellow
|
||
npx prisma db push --accept-data-loss
|
||
|
||
Write-Host ""
|
||
Write-Host "3️⃣ 检查表是否创建成功..." -ForegroundColor Yellow
|
||
npx tsx check-dc-database.ts
|
||
|
||
Write-Host ""
|
||
Write-Host "✅ 完成!" -ForegroundColor Green
|
||
|
||
|
||
|
||
|
||
|
||
|