refactor(portal): 用官方 views/* 动态路由替 public/ 静态 HTML
按官方 jnpf-web-apps-main 默认模式 (../workspace/jnpf/jnpf-web-apps-main) 把门户页 从静态 HTML 升级为正常 Vue 组件 + 走 coreRoutes + ignoreAccess 双保险免登录。 变更: 1. jweb/src/views/ssw/views/_portal/tds.vue 新增(git add -f),884 行 HTML/CSS/JS 转 Vue SFC 2. jweb/src/router/routes/core.ts 加 SswPortalTds 路由 /ssw-portal/tds (coreRouteNames 直通,ignoreAccess:true 双保险) 3. jweb/vite.config.mts 删 ssw-portal-bypass-html-plugin 中间件(Accept:text/html SPA fallback 不再触发) 4. web/vite.config.ts 删 ssw-portal-dir-rewrite 中间件,改 fs.allow 指 jweb/src (公共 views 是软链) 5. jweb/public/ssw-tds/index.html 删除(彻底告别 public/ 静态门户页方案) 6. web/public/ssw-tds 软链删除 附带 sswflow 路由 namespace 修复(/flow + /projects 等统一为 /flow/editor + /flow/projects): - Home.vue / FlowEditor.vue / ProjectList.vue / RunHall.vue
This commit is contained in:
1 parent
099d529f44
commit
01d42966ed
10 files changed
+1680
-958
No files matched your search
@@ -1,885 +0,0 @@
|
||||
<!doctype html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
<meta name="description" content="尚数网可信数据空间(TDS)—— 让数据可信流通、可控使用、可证可溯。国家标准可信数据空间体系下的管理服务平台。" />
|
||||
<title>尚数网可信数据空间 · TDS 管理服务平台</title>
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<style>
|
||||
:root {
|
||||
--primary: #1677ff;
|
||||
--primary-hover: #4096ff;
|
||||
--primary-dark: #0958d9;
|
||||
--success: #52c41a;
|
||||
--warning: #fa8c16;
|
||||
--purple: #722ed1;
|
||||
--magenta: #eb2f96;
|
||||
--text: #1f2937;
|
||||
--text-2: #4b5563;
|
||||
--text-3: #6b7280;
|
||||
--text-4: #9ca3af;
|
||||
--bg: #f5f7fa;
|
||||
--bg-dark: #0b1d3a;
|
||||
--bg-dark-2: #122a55;
|
||||
--border: #e5e7eb;
|
||||
--card: #ffffff;
|
||||
--shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
|
||||
--shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
--shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
|
||||
--radius: 12px;
|
||||
--radius-sm: 8px;
|
||||
}
|
||||
* { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
html, body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
|
||||
a { color: inherit; text-decoration: none; }
|
||||
button { font-family: inherit; cursor: pointer; border: none; background: none; }
|
||||
img, svg { display: block; max-width: 100%; }
|
||||
|
||||
/* ============ Top Nav ============ */
|
||||
.nav {
|
||||
position: sticky; top: 0; z-index: 100;
|
||||
background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; justify-content: space-between; }
|
||||
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--text); }
|
||||
.brand-logo {
|
||||
width: 36px; height: 36px; border-radius: 9px;
|
||||
background: linear-gradient(135deg, #1677ff 0%, #722ed1 100%);
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -1px;
|
||||
box-shadow: 0 4px 12px rgba(22, 119, 255, 0.35);
|
||||
}
|
||||
.brand small { font-weight: 400; color: var(--text-3); font-size: 12px; margin-left: 4px; }
|
||||
.nav-links { display: flex; gap: 32px; }
|
||||
.nav-links a { color: var(--text-2); font-size: 14px; font-weight: 500; padding: 6px 0; position: relative; transition: color .2s; }
|
||||
.nav-links a:hover { color: var(--primary); }
|
||||
.nav-actions { display: flex; gap: 12px; align-items: center; }
|
||||
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; transition: all .2s; white-space: nowrap; }
|
||||
.btn-primary { background: var(--primary); color: #fff; }
|
||||
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(22,119,255,.35); }
|
||||
.btn-ghost { color: var(--text-2); border: 1px solid var(--border); background: #fff; }
|
||||
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
|
||||
|
||||
/* ============ Hero ============ */
|
||||
.hero {
|
||||
position: relative;
|
||||
background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(22,119,255,.35), transparent 60%),
|
||||
linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 50%, #1e3a8a 100%);
|
||||
color: #fff;
|
||||
padding: 80px 32px 96px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.hero::before {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background-image:
|
||||
linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
|
||||
linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
|
||||
background-size: 48px 48px;
|
||||
mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
|
||||
-webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 30%, transparent 80%);
|
||||
pointer-events: none;
|
||||
}
|
||||
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
|
||||
.hero-eyebrow {
|
||||
display: inline-flex; align-items: center; gap: 8px;
|
||||
padding: 6px 14px; border-radius: 999px;
|
||||
background: rgba(22,119,255,.18); border: 1px solid rgba(64,150,255,.4);
|
||||
color: #91caff; font-size: 13px; font-weight: 500;
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #52c41a; box-shadow: 0 0 8px #52c41a; animation: pulse 1.6s ease-in-out infinite; }
|
||||
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
|
||||
.hero h1 {
|
||||
font-size: 56px; line-height: 1.15; font-weight: 800; letter-spacing: -1px;
|
||||
background: linear-gradient(180deg, #fff 0%, #b3d4ff 100%);
|
||||
-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
.hero h1 .accent { background: linear-gradient(180deg, #ffd666 0%, #fa8c16 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
|
||||
.hero-sub { font-size: 18px; color: rgba(255,255,255,.75); max-width: 680px; margin-bottom: 40px; }
|
||||
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 64px; }
|
||||
.btn-hero-primary { background: linear-gradient(135deg, #1677ff 0%, #4096ff 100%); color: #fff; padding: 14px 28px; font-size: 15px; font-weight: 600; border-radius: var(--radius); box-shadow: 0 8px 24px rgba(22,119,255,.4); }
|
||||
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(22,119,255,.55); }
|
||||
.btn-hero-ghost { background: rgba(255,255,255,.08); color: #fff; padding: 14px 28px; font-size: 15px; font-weight: 500; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); backdrop-filter: blur(8px); }
|
||||
.btn-hero-ghost:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.4); }
|
||||
|
||||
/* role cards */
|
||||
.role-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
|
||||
.role-card {
|
||||
background: rgba(255,255,255,.06); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
|
||||
padding: 24px; color: #fff;
|
||||
transition: all .3s; cursor: pointer;
|
||||
}
|
||||
.role-card:hover { background: rgba(255,255,255,.12); border-color: rgba(64,150,255,.6); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.3); }
|
||||
.role-card .icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
|
||||
.role-card .icon svg { width: 22px; height: 22px; color: #fff; }
|
||||
.role-card .icon.c1 { background: linear-gradient(135deg, #1677ff, #4096ff); }
|
||||
.role-card .icon.c2 { background: linear-gradient(135deg, #722ed1, #b37feb); }
|
||||
.role-card .icon.c3 { background: linear-gradient(135deg, #13c2c2, #5cdbd3); }
|
||||
.role-card .icon.c4 { background: linear-gradient(135deg, #fa8c16, #ffc069); }
|
||||
.role-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
|
||||
.role-card p { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 12px; line-height: 1.5; }
|
||||
.role-card .role-link { font-size: 13px; color: #91caff; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
|
||||
.role-card .role-link::after { content: '→'; transition: transform .2s; }
|
||||
.role-card:hover .role-link::after { transform: translateX(4px); }
|
||||
|
||||
/* metrics bar */
|
||||
.metrics {
|
||||
display: grid; grid-template-columns: repeat(4, 1fr);
|
||||
background: rgba(255,255,255,.08); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
|
||||
border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius);
|
||||
margin-top: 48px; overflow: hidden;
|
||||
}
|
||||
.metric { padding: 28px 24px; text-align: center; border-right: 1px solid rgba(255,255,255,.1); }
|
||||
.metric:last-child { border-right: none; }
|
||||
.metric .num { font-size: 36px; font-weight: 800; background: linear-gradient(180deg, #fff 0%, #91caff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; margin-bottom: 8px; }
|
||||
.metric .num .unit { font-size: 18px; font-weight: 600; margin-left: 2px; color: #91caff; }
|
||||
.metric .label { font-size: 13px; color: rgba(255,255,255,.7); }
|
||||
|
||||
/* ============ Section ============ */
|
||||
section { padding: 88px 32px; }
|
||||
.container { max-width: 1280px; margin: 0 auto; }
|
||||
.section-eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--primary); background: rgba(22,119,255,.08); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
|
||||
.section-title { font-size: 38px; font-weight: 700; color: var(--text); letter-spacing: -.5px; margin-bottom: 14px; line-height: 1.25; }
|
||||
.section-sub { font-size: 16px; color: var(--text-3); max-width: 680px; margin-bottom: 56px; }
|
||||
|
||||
/* capabilities grid */
|
||||
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
|
||||
.cap-card {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: 28px; transition: all .3s; position: relative; overflow: hidden;
|
||||
}
|
||||
.cap-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent, var(--primary)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
|
||||
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--accent, var(--primary)); }
|
||||
.cap-card:hover::before { transform: scaleX(1); }
|
||||
.cap-icon {
|
||||
width: 48px; height: 48px; border-radius: 10px;
|
||||
background: var(--accent-bg, rgba(22,119,255,.1));
|
||||
color: var(--accent, var(--primary));
|
||||
display: flex; align-items: center; justify-content: center;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.cap-icon svg { width: 24px; height: 24px; }
|
||||
.cap-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
|
||||
.cap-card .cap-desc { font-size: 14px; color: var(--text-3); margin-bottom: 14px; line-height: 1.6; }
|
||||
.cap-card ul { list-style: none; }
|
||||
.cap-card ul li { font-size: 13px; color: var(--text-2); padding: 4px 0; padding-left: 18px; position: relative; }
|
||||
.cap-card ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent, var(--primary)); }
|
||||
|
||||
/* role tabs */
|
||||
.role-tabs { display: flex; gap: 8px; margin-bottom: 32px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
|
||||
.role-tab { padding: 12px 20px; font-size: 15px; font-weight: 500; color: var(--text-3); border-bottom: 2px solid transparent; transition: all .2s; }
|
||||
.role-tab:hover { color: var(--primary); }
|
||||
.role-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
|
||||
.role-content { display: none; }
|
||||
.role-content.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
|
||||
.role-content .rc-visual { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; min-height: 320px; }
|
||||
.role-content .rc-text h3 { font-size: 26px; font-weight: 700; margin-bottom: 14px; }
|
||||
.role-content .rc-text > p { font-size: 15px; color: var(--text-3); margin-bottom: 24px; }
|
||||
.role-content .rc-text ul li { font-size: 14px; color: var(--text-2); padding: 8px 0; padding-left: 28px; position: relative; line-height: 1.6; }
|
||||
.role-content .rc-text ul li::before { content: '✓'; position: absolute; left: 0; top: 8px; width: 18px; height: 18px; background: var(--success); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
|
||||
|
||||
/* security layer */
|
||||
.security {
|
||||
background: linear-gradient(180deg, #f5f7fa 0%, #e6edf7 100%);
|
||||
}
|
||||
.sec-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
|
||||
.sec-stack { display: grid; gap: 14px; }
|
||||
.sec-stack-item {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: 20px 24px; display: flex; align-items: center; gap: 20px;
|
||||
transition: all .2s;
|
||||
}
|
||||
.sec-stack-item:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
|
||||
.sec-stack-item .layer { font-size: 11px; font-weight: 700; color: var(--primary); background: rgba(22,119,255,.1); padding: 4px 10px; border-radius: 999px; letter-spacing: 1px; min-width: 60px; text-align: center; }
|
||||
.sec-stack-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
|
||||
.sec-stack-item p { font-size: 13px; color: var(--text-3); }
|
||||
|
||||
/* flow diagram */
|
||||
.flow {
|
||||
background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
|
||||
padding: 48px 32px;
|
||||
}
|
||||
.flow h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
|
||||
.flow p { font-size: 14px; color: var(--text-3); margin-bottom: 32px; }
|
||||
|
||||
/* CTA */
|
||||
.cta-section {
|
||||
background: linear-gradient(135deg, var(--bg-dark) 0%, #1e3a8a 100%);
|
||||
color: #fff; padding: 88px 32px; text-align: center;
|
||||
position: relative; overflow: hidden;
|
||||
}
|
||||
.cta-section::before {
|
||||
content: ''; position: absolute; inset: 0;
|
||||
background-image: radial-gradient(circle at 20% 50%, rgba(22,119,255,.4), transparent 40%),
|
||||
radial-gradient(circle at 80% 50%, rgba(114,46,209,.4), transparent 40%);
|
||||
}
|
||||
.cta-section .container { position: relative; z-index: 1; }
|
||||
.cta-section h2 { font-size: 40px; font-weight: 700; margin-bottom: 16px; }
|
||||
.cta-section p { font-size: 17px; color: rgba(255,255,255,.75); max-width: 600px; margin: 0 auto 40px; }
|
||||
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
|
||||
|
||||
/* footer */
|
||||
footer { background: #0a1428; color: rgba(255,255,255,.6); padding: 56px 32px 28px; font-size: 13px; }
|
||||
.footer-grid { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 36px; }
|
||||
.footer-grid h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
|
||||
.footer-grid ul { list-style: none; }
|
||||
.footer-grid ul li { padding: 5px 0; }
|
||||
.footer-grid ul li a:hover { color: #fff; }
|
||||
.footer-brand p { margin-top: 12px; line-height: 1.7; }
|
||||
.footer-bottom { max-width: 1280px; margin: 0 auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
|
||||
|
||||
/* responsive */
|
||||
@media (max-width: 980px) {
|
||||
.hero h1 { font-size: 40px; }
|
||||
.role-cards { grid-template-columns: repeat(2, 1fr); }
|
||||
.metrics { grid-template-columns: repeat(2, 1fr); }
|
||||
.metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); }
|
||||
.metric:nth-child(2) { border-right: none; }
|
||||
.metric:nth-child(1), .metric:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.1); }
|
||||
.cap-grid { grid-template-columns: repeat(2, 1fr); }
|
||||
.role-content.active { grid-template-columns: 1fr; }
|
||||
.sec-grid { grid-template-columns: 1fr; }
|
||||
.footer-grid { grid-template-columns: 1fr 1fr; }
|
||||
section { padding: 64px 24px; }
|
||||
.hero { padding: 64px 24px 80px; }
|
||||
.nav-links { display: none; }
|
||||
}
|
||||
@media (max-width: 560px) {
|
||||
.hero h1 { font-size: 32px; }
|
||||
.role-cards { grid-template-columns: 1fr; }
|
||||
.cap-grid { grid-template-columns: 1fr; }
|
||||
.footer-grid { grid-template-columns: 1fr; }
|
||||
.section-title { font-size: 28px; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- ============ Top Nav ============ -->
|
||||
<nav class="nav">
|
||||
<div class="nav-inner">
|
||||
<a href="/ssw/tds/" class="brand">
|
||||
<div class="brand-logo">SD</div>
|
||||
<div>尚数网 <small>· 可信数据空间</small></div>
|
||||
</a>
|
||||
<div class="nav-links">
|
||||
<a href="#capabilities">平台能力</a>
|
||||
<a href="#roles">角色入口</a>
|
||||
<a href="#scenes">应用场景</a>
|
||||
<a href="#security">安全底座</a>
|
||||
<a href="#flow">流通链路</a>
|
||||
</div>
|
||||
<div class="nav-actions">
|
||||
<button class="btn btn-ghost" onclick="window.open('/', '_blank')">控制台</button>
|
||||
<button class="btn btn-primary" onclick="window.open('/', '_blank')">立即登录</button>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- ============ Hero ============ -->
|
||||
<header class="hero">
|
||||
<div class="hero-inner">
|
||||
<div class="hero-eyebrow"><span class="dot"></span>国家标准 · 可信数据空间 · 已通过等保三级</div>
|
||||
<h1>让数据<span class="accent">可信流通</span><br/>可控使用 · 可证可溯</h1>
|
||||
<p class="hero-sub">尚数网可信数据空间(TDS)—— 面向数据基础设施的运营中枢。在国家《可信数据空间 标准体系》指引下,融合 TEE 机密计算、隐私计算与区块链存证,为数据提供方、使用方、监管方提供端到端的安全流通底座。</p>
|
||||
|
||||
<div class="hero-cta">
|
||||
<button class="btn btn-hero-primary" onclick="window.open('/', '_blank')">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14M13 5l7 7-7 7"/></svg>
|
||||
申请开通空间
|
||||
</button>
|
||||
<button class="btn btn-hero-ghost" onclick="document.getElementById('capabilities').scrollIntoView({behavior:'smooth'})">
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polygon points="10,8 16,12 10,16" fill="currentColor" stroke="none"/></svg>
|
||||
观看产品演示
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="role-cards">
|
||||
<div class="role-card" onclick="window.open('/jnpf_app_sswflow/login', '_blank')">
|
||||
<div class="icon c1">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"/><polyline points="3.27 6.96 12 12.01 20.73 6.96"/><line x1="12" y1="22.08" x2="12" y2="12"/></svg>
|
||||
</div>
|
||||
<h3>数据提供方</h3>
|
||||
<p>封装数据资源为可流通产品,对接连接器上架到数据目录</p>
|
||||
<span class="role-link">提供数据</span>
|
||||
</div>
|
||||
<div class="role-card" onclick="window.open('/jnpf_app_sswflow/login', '_blank')">
|
||||
<div class="icon c2">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
|
||||
</div>
|
||||
<h3>数据使用方</h3>
|
||||
<p>检索目录、按需申请,密态交付后用合约授权开展计算</p>
|
||||
<span class="role-link">申请数据</span>
|
||||
</div>
|
||||
<div class="role-card" onclick="window.open('/jnpf_app_sswflow/login', '_blank')">
|
||||
<div class="icon c3">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6"/><circle cx="12" cy="12" r="2"/></svg>
|
||||
</div>
|
||||
<h3>监管 / 审计方</h3>
|
||||
<p>汇聚全链日志、调取存证、追溯数据流转路径</p>
|
||||
<span class="role-link">查看存证</span>
|
||||
</div>
|
||||
<div class="role-card" onclick="window.open('/jnpf_app_sswflow/login', '_blank')">
|
||||
<div class="icon c4">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
|
||||
</div>
|
||||
<h3>空间运营方</h3>
|
||||
<p>创建逻辑空间、审批成员、维护合约模板与策略</p>
|
||||
<span class="role-link">管理空间</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="metrics">
|
||||
<div class="metric">
|
||||
<div class="num" data-target="128" data-suffix="+">0</div>
|
||||
<div class="label">已上线可信空间</div>
|
||||
</div>
|
||||
<div class="metric">
|
||||
<div class="num" data-target="3420" data-suffix="">0</div>
|
||||
<div class="label">流通数据产品</div>
|
||||
</div>
|
||||
<div class="metric">
|
||||
<div class="num" data-target="86" data-suffix="%">0<span class="unit">%</span></div>
|
||||
<div class="label">策略自动化执行率</div>
|
||||
</div>
|
||||
<div class="metric">
|
||||
<div class="num" data-target="100" data-suffix="%">0<span class="unit">%</span></div>
|
||||
<div class="label">关键操作可追溯</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- ============ Capabilities ============ -->
|
||||
<section id="capabilities">
|
||||
<div class="container">
|
||||
<span class="section-eyebrow">平台能力</span>
|
||||
<h2 class="section-title">九大能力模块,覆盖数据流通全链路</h2>
|
||||
<p class="section-sub">从身份注册到合约履行,从密态交付到审计追溯,每一个环节都有可观测、可验证、可管控的技术底座。</p>
|
||||
|
||||
<div class="cap-grid">
|
||||
<div class="cap-card" style="--accent:#1677ff;--accent-bg:rgba(22,119,255,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"/><circle cx="12" cy="7" r="4"/></svg>
|
||||
</div>
|
||||
<h3>身份与权限</h3>
|
||||
<p class="cap-desc">统一的数字身份注册、核验与多用户接入,支持空间级角色与细粒度权限</p>
|
||||
<ul>
|
||||
<li>代理注册 + 已有身份登录</li>
|
||||
<li>多用户接入 / 退出空间</li>
|
||||
<li>权限定期审核与审计</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#722ed1;--accent-bg:rgba(114,46,209,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 9h6v6H9z"/></svg>
|
||||
</div>
|
||||
<h3>可信空间管理</h3>
|
||||
<p class="cap-desc">逻辑空间创建、配置同步、成员审批与运行监测全流程</p>
|
||||
<ul>
|
||||
<li>空间基本信息上报功能节点</li>
|
||||
<li>成员申请审批与权限授予</li>
|
||||
<li>空间运行状态实时监测</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#13c2c2;--accent-bg:rgba(19,194,194,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="3" width="20" height="14" rx="2"/><line x1="8" y1="21" x2="16" y2="21"/><line x1="12" y1="17" x2="12" y2="21"/></svg>
|
||||
</div>
|
||||
<h3>接入连接器</h3>
|
||||
<p class="cap-desc">为每个数据参与方提供本地化接入、运行监测与能力适配</p>
|
||||
<ul>
|
||||
<li>连接器注册 / 注销 / 认证</li>
|
||||
<li>跨空间业务能力适配</li>
|
||||
<li>运行状态实时上报</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#fa8c16;--accent-bg:rgba(250,140,22,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"/><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"/></svg>
|
||||
</div>
|
||||
<h3>数据目录</h3>
|
||||
<p class="cap-desc">公共目录 + 服务目录 + 提供方目录 + 使用方目录 + 试用目录</p>
|
||||
<ul>
|
||||
<li>产品登记获取唯一标识</li>
|
||||
<li>上架 / 查询 / 跨空间检索</li>
|
||||
<li>试用申请与状态追踪</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#eb2f96;--accent-bg:rgba(235,47,150,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/><line x1="9" y1="13" x2="15" y2="13"/><line x1="9" y1="17" x2="15" y2="17"/></svg>
|
||||
</div>
|
||||
<h3>数字合约</h3>
|
||||
<p class="cap-desc">策略模板库 + 多方协商签署 + 防篡改备案 + 解除管理</p>
|
||||
<ul>
|
||||
<li>合约全生命周期管理</li>
|
||||
<li>数字签名防篡改抗抵赖</li>
|
||||
<li>合约解除与终止履行</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#52c41a;--accent-bg:rgba(82,196,26,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>
|
||||
</div>
|
||||
<h3>使用控制</h3>
|
||||
<p class="cap-desc">TEE 机密计算 + 策略执行 + 细粒度管控 + 数据销毁</p>
|
||||
<ul>
|
||||
<li>多版本策略与冲突检测</li>
|
||||
<li>数据集 / 模型 / 文本细粒度管控</li>
|
||||
<li>到期自动销毁与关键环节通知</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#2f54eb;--accent-bg:rgba(47,84,235,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="22" y1="12" x2="2" y2="12"/><path d="M5.45 5.11L2 12l3.45 6.89A2 2 0 0 0 7.24 20h9.53a2 2 0 0 0 1.79-1.11L22 12l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"/><circle cx="12" cy="12" r="3"/></svg>
|
||||
</div>
|
||||
<h3>交付支撑</h3>
|
||||
<p class="cap-desc">加密 / 脱敏 / 隐私计算预处理,连接器间点对点安全交付</p>
|
||||
<ul>
|
||||
<li>交付合约完整性与不可篡改</li>
|
||||
<li>参与方互信认证</li>
|
||||
<li>关键环节通知与产品追溯</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#f5222d;--accent-bg:rgba(245,34,45,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"/></svg>
|
||||
</div>
|
||||
<h3>合规与审计</h3>
|
||||
<p class="cap-desc">全链路操作日志 + 区块链存证 + 监管接口 + 异常告警</p>
|
||||
<ul>
|
||||
<li>日志上链保障真实性</li>
|
||||
<li>监管方日志汇聚分析</li>
|
||||
<li>异常使用监控与自动中断</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="cap-card" style="--accent:#08979c;--accent-bg:rgba(8,151,156,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="12" y1="1" x2="12" y2="23"/><path d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>
|
||||
</div>
|
||||
<h3>运营与交易</h3>
|
||||
<p class="cap-desc">数据市场 + 计量计费 + 应用商店 + 主体评价</p>
|
||||
<ul>
|
||||
<li>供需撮合与需求发布</li>
|
||||
<li>数据订阅与收藏</li>
|
||||
<li>应用全生命周期管理</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ Roles ============ -->
|
||||
<section id="roles" style="background:var(--bg)">
|
||||
<div class="container">
|
||||
<span class="section-eyebrow">角色入口</span>
|
||||
<h2 class="section-title">不同身份,各得其所</h2>
|
||||
<p class="section-sub">平台围绕数据流通中的四类核心角色构建差异化能力,每一方都能在自己的工作台内完成全流程操作。</p>
|
||||
|
||||
<div class="role-tabs">
|
||||
<button class="role-tab active" data-role="provider">数据提供方</button>
|
||||
<button class="role-tab" data-role="consumer">数据使用方</button>
|
||||
<button class="role-tab" data-role="operator">空间运营方</button>
|
||||
<button class="role-tab" data-role="regulator">监管审计方</button>
|
||||
</div>
|
||||
|
||||
<div class="role-content active" data-role="provider">
|
||||
<div class="rc-text">
|
||||
<h3>把数据变成可流通的产品</h3>
|
||||
<p>提供方在本地部署数据接入连接器(TDC),将自有数据库、文件、API 资源封装为带有策略的「数据产品」,通过平台代理完成产品登记并上架到公共目录。</p>
|
||||
<ul>
|
||||
<li>资源接入:支持数据库、文件系统、API 等多源异构数据</li>
|
||||
<li>产品封装:附带使用控制策略的边界清晰数据单元</li>
|
||||
<li>一键上架:本地目录 → 平台公共目录,自动化登记</li>
|
||||
<li>使用计量:按合约自动计量使用次数与时长</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rc-visual">
|
||||
<svg viewBox="0 0 400 280" width="100%" height="280">
|
||||
<defs>
|
||||
<linearGradient id="g1" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#1677ff"/><stop offset="100%" stop-color="#4096ff"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="20" y="20" width="160" height="60" rx="8" fill="#f0f5ff" stroke="#1677ff"/>
|
||||
<text x="100" y="55" text-anchor="middle" fill="#1677ff" font-size="14" font-weight="600">本地数据库</text>
|
||||
<line x1="180" y1="50" x2="220" y2="50" stroke="#94a3b8" stroke-width="1.5" stroke-dasharray="3,3"/>
|
||||
<polygon points="218,46 226,50 218,54" fill="#94a3b8"/>
|
||||
<rect x="120" y="110" width="160" height="60" rx="8" fill="#fff7e6" stroke="#fa8c16"/>
|
||||
<text x="200" y="145" text-anchor="middle" fill="#fa8c16" font-size="14" font-weight="600">TDC 连接器</text>
|
||||
<line x1="280" y1="140" x2="320" y2="140" stroke="#94a3b8" stroke-width="1.5" stroke-dasharray="3,3"/>
|
||||
<polygon points="318,136 326,140 318,144" fill="#94a3b8"/>
|
||||
<rect x="220" y="200" width="160" height="60" rx="8" fill="url(#g1)"/>
|
||||
<text x="300" y="235" text-anchor="middle" fill="#fff" font-size="14" font-weight="600">数据产品 + 策略</text>
|
||||
<text x="100" y="100" text-anchor="middle" fill="#94a3b8" font-size="11">多源接入</text>
|
||||
<text x="300" y="190" text-anchor="middle" fill="#94a3b8" font-size="11">封装 + 加密</text>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="role-content" data-role="consumer">
|
||||
<div class="rc-text">
|
||||
<h3>按需检索,密态使用</h3>
|
||||
<p>使用方通过门户检索公共目录、试用目录与服务目录,提交申请后由平台撮合并签署数字合约,最终在 TEE 机密环境中按合约开展密态计算,原始数据不出域。</p>
|
||||
<ul>
|
||||
<li>目录检索:跨空间统一搜索、按安全等级筛选</li>
|
||||
<li>申请审批:使用场景、授权范围、使用期限一目了然</li>
|
||||
<li>合约授权:策略模板自动生成 + 双方协商微调</li>
|
||||
<li>密态计算:原始数据不出库,结果受合约保护</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rc-visual">
|
||||
<svg viewBox="0 0 400 280" width="100%" height="280">
|
||||
<rect x="20" y="40" width="360" height="200" rx="12" fill="#f5f7fa" stroke="#e5e7eb"/>
|
||||
<text x="40" y="70" fill="#1f2937" font-size="14" font-weight="700">数据目录检索</text>
|
||||
<rect x="40" y="90" width="320" height="40" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="56" y="115" fill="#9ca3af" font-size="13">🔍 搜索「企业信用」「医疗影像」「电力负荷」…</text>
|
||||
<rect x="40" y="145" width="150" height="70" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="55" y="170" fill="#1677ff" font-size="12" font-weight="600">企业信用画像</text>
|
||||
<text x="55" y="190" fill="#94a3b8" font-size="11">L4 · 提供方 A</text>
|
||||
<rect x="210" y="145" width="150" height="70" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="225" y="170" fill="#722ed1" font-size="12" font-weight="600">医疗影像 Lv2</text>
|
||||
<text x="225" y="190" fill="#94a3b8" font-size="11">L3 · 提供方 B</text>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="role-content" data-role="operator">
|
||||
<div class="rc-text">
|
||||
<h3>空间即服务</h3>
|
||||
<p>运营方在 TDS 中创建逻辑空间,配置支持策略、合约模板与计费规则,审批成员加入申请,对外上报基本信息至区域/行业功能节点,实现「一空间一生态」。</p>
|
||||
<ul>
|
||||
<li>空间配置:名称、描述、支持策略统一下发</li>
|
||||
<li>成员管理:申请、审批、权限授予全流程</li>
|
||||
<li>运行监测:空间状态、流量、异常实时上报</li>
|
||||
<li>模板维护:策略模板、合约模板统一版本</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rc-visual">
|
||||
<svg viewBox="0 0 400 280" width="100%" height="280">
|
||||
<rect x="20" y="30" width="360" height="220" rx="12" fill="#f5f7fa" stroke="#e5e7eb"/>
|
||||
<rect x="40" y="50" width="320" height="50" rx="8" fill="#fff" stroke="#1677ff"/>
|
||||
<text x="56" y="80" fill="#1677ff" font-size="14" font-weight="700">▣ 金融数据空间</text>
|
||||
<text x="340" y="80" text-anchor="end" fill="#52c41a" font-size="11">● 运行中</text>
|
||||
<rect x="40" y="115" width="100" height="60" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="90" y="140" text-anchor="middle" fill="#4b5563" font-size="12">策略模板</text>
|
||||
<text x="90" y="160" text-anchor="middle" fill="#9ca3af" font-size="11">12 套</text>
|
||||
<rect x="150" y="115" width="100" height="60" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="200" y="140" text-anchor="middle" fill="#4b5563" font-size="12">成员</text>
|
||||
<text x="200" y="160" text-anchor="middle" fill="#9ca3af" font-size="11">86 家</text>
|
||||
<rect x="260" y="115" width="100" height="60" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="310" y="140" text-anchor="middle" fill="#4b5563" font-size="12">活跃合约</text>
|
||||
<text x="310" y="160" text-anchor="middle" fill="#9ca3af" font-size="11">142 份</text>
|
||||
<rect x="40" y="190" width="320" height="50" rx="6" fill="#fff" stroke="#e5e7eb"/>
|
||||
<text x="56" y="220" fill="#4b5563" font-size="12">实时流量:3,420 次/小时 · 异常告警:0</text>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="role-content" data-role="regulator">
|
||||
<div class="rc-text">
|
||||
<h3>看得见每一笔流转</h3>
|
||||
<p>监管方通过平台对接监管接口,汇聚各空间的关键操作日志与合约存证,可发起跨空间审计、追溯数据产品来源链路,并对异常使用行为进行实时告警与中断。</p>
|
||||
<ul>
|
||||
<li>日志汇聚:参与方日志按需上报,监管方统一调阅</li>
|
||||
<li>存证查验:基于区块链的关键操作存证查询</li>
|
||||
<li>异常中断:策略异常使用触发自动中断并通知</li>
|
||||
<li>合规检查:内置合规规则模板,定期自检</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="rc-visual">
|
||||
<svg viewBox="0 0 400 280" width="100%" height="280">
|
||||
<line x1="60" y1="140" x2="340" y2="140" stroke="#1677ff" stroke-width="2"/>
|
||||
<circle cx="60" cy="140" r="8" fill="#1677ff"/>
|
||||
<circle cx="140" cy="140" r="8" fill="#1677ff"/>
|
||||
<circle cx="220" cy="140" r="8" fill="#1677ff"/>
|
||||
<circle cx="340" cy="140" r="8" fill="#52c41a"/>
|
||||
<text x="60" y="120" text-anchor="middle" fill="#4b5563" font-size="11">注册</text>
|
||||
<text x="60" y="175" text-anchor="middle" fill="#9ca3af" font-size="10">10:00</text>
|
||||
<text x="140" y="120" text-anchor="middle" fill="#4b5563" font-size="11">签约</text>
|
||||
<text x="140" y="175" text-anchor="middle" fill="#9ca3af" font-size="10">10:15</text>
|
||||
<text x="220" y="120" text-anchor="middle" fill="#4b5563" font-size="11">交付</text>
|
||||
<text x="220" y="175" text-anchor="middle" fill="#9ca3af" font-size="10">10:32</text>
|
||||
<text x="340" y="120" text-anchor="middle" fill="#4b5563" font-size="11">使用存证</text>
|
||||
<text x="340" y="175" text-anchor="middle" fill="#9ca3af" font-size="10">10:48</text>
|
||||
<rect x="20" y="200" width="360" height="60" rx="8" fill="#f0f5ff" stroke="#1677ff"/>
|
||||
<text x="40" y="225" fill="#1677ff" font-size="12" font-weight="700">🔗 区块链存证</text>
|
||||
<text x="40" y="248" fill="#4b5563" font-size="11">每一步操作均写入 FISCO-BCOS 国密链</text>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ Scenes ============ -->
|
||||
<section id="scenes">
|
||||
<div class="container">
|
||||
<span class="section-eyebrow">应用场景</span>
|
||||
<h2 class="section-title">已经在这些场景中稳定运行</h2>
|
||||
<p class="section-sub">从金融到医疗、从政务到跨境,可信数据空间正在成为数据要素流通的基础设施。</p>
|
||||
|
||||
<div class="cap-grid">
|
||||
<div class="cap-card" style="--accent:#1677ff;--accent-bg:rgba(22,119,255,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M3 21h18M5 21V7l8-4v18M19 21V11l-6-4"/></svg>
|
||||
</div>
|
||||
<h3>金融风控联防</h3>
|
||||
<p class="cap-desc">银行、保险、证券通过可信空间联合建模,企业信用画像、欺诈识别模型共建共享,原始数据不出库</p>
|
||||
</div>
|
||||
<div class="cap-card" style="--accent:#52c41a;--accent-bg:rgba(82,196,26,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 12h-4l-3 9L9 3l-3 9H2"/></svg>
|
||||
</div>
|
||||
<h3>医疗科研协作</h3>
|
||||
<p class="cap-desc">多家医院罕见病数据通过隐私计算联合统计分析,临床数据不出院,科研结果合规可证</p>
|
||||
</div>
|
||||
<div class="cap-card" style="--accent:#722ed1;--accent-bg:rgba(114,46,209,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M9 9h6v6H9z"/></svg>
|
||||
</div>
|
||||
<h3>政务数据开放</h3>
|
||||
<p class="cap-desc">工商、税务、社保数据按合约授权开放给中小微企业,惠企政策精准触达,全过程可审计</p>
|
||||
</div>
|
||||
<div class="cap-card" style="--accent:#fa8c16;--accent-bg:rgba(250,140,22,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
|
||||
</div>
|
||||
<h3>跨境数据流通</h3>
|
||||
<p class="cap-desc">通过国际互通网关对接 IDSA / Gaia-X 等国际数据空间,支持跨境贸易数据合规流转</p>
|
||||
</div>
|
||||
<div class="cap-card" style="--accent:#eb2f96;--accent-bg:rgba(235,47,150,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 2L2 7l10 5 10-5-10-5z"/><path d="M2 17l10 5 10-5"/><path d="M2 12l10 5 10-5"/></svg>
|
||||
</div>
|
||||
<h3>产业链协同</h3>
|
||||
<p class="cap-desc">汽车、电子等产业链上下游通过可信空间共享产能、库存、订单数据,提升产业链协同效率</p>
|
||||
</div>
|
||||
<div class="cap-card" style="--accent:#13c2c2;--accent-bg:rgba(19,194,194,.1)">
|
||||
<div class="cap-icon">
|
||||
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 1 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 1 1-2.83-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 1 1 2.83-2.83l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 1 1 2.83 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
|
||||
</div>
|
||||
<h3>AI 模型训练</h3>
|
||||
<p class="cap-desc">高质量数据通过密态交付供给大模型训练,数据使用次数、用途严格受合约约束</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ Security ============ -->
|
||||
<section id="security" class="security">
|
||||
<div class="container">
|
||||
<div class="sec-grid">
|
||||
<div>
|
||||
<span class="section-eyebrow">安全底座</span>
|
||||
<h2 class="section-title">四层安全防护,从硬件到应用</h2>
|
||||
<p class="section-sub">尚数网基于自研 TEE 机密计算(AMD SEV-SNP 真硬件远程证明)、国密 SM2/SM4 算法栈、FISCO-BCOS 国密区块链与 JNPF 平台安全审计,构建纵深防御。</p>
|
||||
|
||||
<div class="sec-stack">
|
||||
<div class="sec-stack-item">
|
||||
<span class="layer">L4</span>
|
||||
<div>
|
||||
<h4>应用层 · 合约与策略</h4>
|
||||
<p>数字签名 + 多版本管理 + 冲突检测 + 自动执行</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sec-stack-item">
|
||||
<span class="layer">L3</span>
|
||||
<div>
|
||||
<h4>平台层 · 全链路审计</h4>
|
||||
<p>细粒度操作日志 + 异常告警 + 自动中断 + 监管接口</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sec-stack-item">
|
||||
<span class="layer">L2</span>
|
||||
<div>
|
||||
<h4>密码层 · 国密 + 隐私计算</h4>
|
||||
<p>SM2/SM3/SM4 全算法栈 + PSI/MPC/FL/SCQL 多方计算</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sec-stack-item">
|
||||
<span class="layer">L1</span>
|
||||
<div>
|
||||
<h4>硬件层 · TEE 机密计算</h4>
|
||||
<p>AMD SEV-SNP 真硬件远程证明 · 数据加密内存 + 密态交付</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flow">
|
||||
<h3>从请求到存证:每一次数据流转都被记录</h3>
|
||||
<p>完整的证据链:注册 → 合约 → 交付 → 使用 → 销毁,每一个关键节点都同步上链。</p>
|
||||
<svg viewBox="0 0 480 320" width="100%" height="320">
|
||||
<defs>
|
||||
<linearGradient id="flowG" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0%" stop-color="#1677ff"/>
|
||||
<stop offset="100%" stop-color="#722ed1"/>
|
||||
</linearGradient>
|
||||
<marker id="arr" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="6" markerHeight="6" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#1677ff"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<!-- stage nodes -->
|
||||
<g font-family="-apple-system, sans-serif" font-size="12">
|
||||
<rect x="20" y="40" width="120" height="50" rx="10" fill="#fff" stroke="#1677ff" stroke-width="2"/>
|
||||
<text x="80" y="62" text-anchor="middle" fill="#1677ff" font-weight="700">1. 身份注册</text>
|
||||
<text x="80" y="78" text-anchor="middle" fill="#94a3b8" font-size="10">国密证书签发</text>
|
||||
|
||||
<rect x="180" y="40" width="120" height="50" rx="10" fill="#fff" stroke="#722ed1" stroke-width="2"/>
|
||||
<text x="240" y="62" text-anchor="middle" fill="#722ed1" font-weight="700">2. 合约签署</text>
|
||||
<text x="240" y="78" text-anchor="middle" fill="#94a3b8" font-size="10">策略模板 + 协商</text>
|
||||
|
||||
<rect x="340" y="40" width="120" height="50" rx="10" fill="#fff" stroke="#13c2c2" stroke-width="2"/>
|
||||
<text x="400" y="62" text-anchor="middle" fill="#13c2c2" font-weight="700">3. 密态交付</text>
|
||||
<text x="400" y="78" text-anchor="middle" fill="#94a3b8" font-size="10">TEE / 隐私计算</text>
|
||||
|
||||
<rect x="100" y="160" width="120" height="50" rx="10" fill="#fff" stroke="#fa8c16" stroke-width="2"/>
|
||||
<text x="160" y="182" text-anchor="middle" fill="#fa8c16" font-weight="700">4. 合约使用</text>
|
||||
<text x="160" y="198" text-anchor="middle" fill="#94a3b8" font-size="10">策略实时监测</text>
|
||||
|
||||
<rect x="260" y="160" width="120" height="50" rx="10" fill="#fff" stroke="#52c41a" stroke-width="2"/>
|
||||
<text x="320" y="182" text-anchor="middle" fill="#52c41a" font-weight="700">5. 结果返回</text>
|
||||
<text x="320" y="198" text-anchor="middle" fill="#94a3b8" font-size="10">受合约保护</text>
|
||||
|
||||
<rect x="180" y="260" width="120" height="50" rx="10" fill="url(#flowG)"/>
|
||||
<text x="240" y="282" text-anchor="middle" fill="#fff" font-weight="700">🔗 区块链存证</text>
|
||||
<text x="240" y="298" text-anchor="middle" fill="rgba(255,255,255,.85)" font-size="10">FISCO-BCOS 国密链</text>
|
||||
</g>
|
||||
|
||||
<!-- arrows -->
|
||||
<g fill="none" stroke="#1677ff" stroke-width="1.5" marker-end="url(#arr)">
|
||||
<path d="M140 65 L180 65"/>
|
||||
<path d="M300 65 L340 65"/>
|
||||
<path d="M240 90 L160 160"/>
|
||||
<path d="M220 185 L260 185"/>
|
||||
<path d="M160 210 L240 260"/>
|
||||
<path d="M320 210 L240 260"/>
|
||||
</g>
|
||||
</svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ CTA ============ -->
|
||||
<section class="cta-section">
|
||||
<div class="container">
|
||||
<h2>开启你的可信数据空间</h2>
|
||||
<p>无论是金融风控联防、医疗科研协作,还是政务数据开放,尚数网都能为你快速搭建专属可信数据空间。</p>
|
||||
<div class="cta-buttons">
|
||||
<button class="btn btn-hero-primary" onclick="window.open('/', '_blank')">申请免费试用</button>
|
||||
<button class="btn btn-hero-ghost" onclick="window.open('/', '_blank')">联系运营顾问</button>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- ============ Footer ============ -->
|
||||
<footer>
|
||||
<div class="footer-grid">
|
||||
<div class="footer-brand">
|
||||
<div class="brand" style="color:#fff">
|
||||
<div class="brand-logo">SD</div>
|
||||
<div>尚数网<small style="color:rgba(255,255,255,.5)">· 可信数据空间</small></div>
|
||||
</div>
|
||||
<p>面向数据要素流通的国家级可信数据空间体系。基于 TEE 机密计算 + 隐私计算 + 区块链存证,为数据提供方、使用方、监管方提供端到端的安全流通底座。</p>
|
||||
</div>
|
||||
<div>
|
||||
<h5>平台能力</h5>
|
||||
<ul>
|
||||
<li><a href="#capabilities">身份与权限</a></li>
|
||||
<li><a href="#capabilities">数据目录</a></li>
|
||||
<li><a href="#capabilities">数字合约</a></li>
|
||||
<li><a href="#capabilities">使用控制</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h5>解决方案</h5>
|
||||
<ul>
|
||||
<li><a href="#scenes">金融风控</a></li>
|
||||
<li><a href="#scenes">医疗科研</a></li>
|
||||
<li><a href="#scenes">政务开放</a></li>
|
||||
<li><a href="#scenes">跨境流通</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
<h5>关于</h5>
|
||||
<ul>
|
||||
<li><a href="#">产品文档</a></li>
|
||||
<li><a href="#">国家标准</a></li>
|
||||
<li><a href="#">合规认证</a></li>
|
||||
<li><a href="#">联系运营</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer-bottom">
|
||||
<div>© 2026 尚数网 · Trusted Data Space. All rights reserved.</div>
|
||||
<div>沪ICP备 2026000000 号 · 等保三级 · ISO 27001</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<script>
|
||||
// 数字指标 count-up 动画
|
||||
const animate = (el) => {
|
||||
const target = parseInt(el.dataset.target, 10);
|
||||
const suffix = el.dataset.suffix || '';
|
||||
const duration = 1400;
|
||||
const start = performance.now();
|
||||
const tick = (now) => {
|
||||
const t = Math.min(1, (now - start) / duration);
|
||||
const eased = 1 - Math.pow(1 - t, 3);
|
||||
const val = Math.floor(eased * target);
|
||||
el.firstChild.nodeValue = val.toLocaleString() + suffix;
|
||||
if (t < 1) requestAnimationFrame(tick);
|
||||
};
|
||||
requestAnimationFrame(tick);
|
||||
};
|
||||
|
||||
// IntersectionObserver 触发
|
||||
const obs = new IntersectionObserver((entries) => {
|
||||
entries.forEach((e) => {
|
||||
if (e.isIntersecting) {
|
||||
animate(e.target);
|
||||
obs.unobserve(e.target);
|
||||
}
|
||||
});
|
||||
}, { threshold: 0.5 });
|
||||
|
||||
document.querySelectorAll('.metric .num').forEach((el) => obs.observe(el));
|
||||
|
||||
// 角色 Tab 切换
|
||||
document.querySelectorAll('.role-tab').forEach((tab) => {
|
||||
tab.addEventListener('click', () => {
|
||||
const role = tab.dataset.role;
|
||||
document.querySelectorAll('.role-tab').forEach((t) => t.classList.toggle('active', t === tab));
|
||||
document.querySelectorAll('.role-content').forEach((c) => c.classList.toggle('active', c.dataset.role === role));
|
||||
});
|
||||
});
|
||||
|
||||
// 平滑滚动
|
||||
document.querySelectorAll('a[href^="#"]').forEach((a) => {
|
||||
a.addEventListener('click', (e) => {
|
||||
const id = a.getAttribute('href');
|
||||
if (id.length > 1) {
|
||||
const target = document.querySelector(id);
|
||||
if (target) { e.preventDefault(); target.scrollIntoView({ behavior: 'smooth', block: 'start' }); }
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,127 @@
|
||||
import type { RouteRecordRaw } from 'vue-router';
|
||||
|
||||
import { preferences } from '@vben/preferences';
|
||||
|
||||
const BasicLayout = () => import('#/layouts/basic.vue');
|
||||
|
||||
/** 全局404页面 */
|
||||
const fallbackNotFoundRoute: RouteRecordRaw = {
|
||||
component: BasicLayout,
|
||||
meta: {
|
||||
hideInBreadcrumb: true,
|
||||
hideInMenu: true,
|
||||
hideInTab: true,
|
||||
title: '404',
|
||||
},
|
||||
name: 'NotFound',
|
||||
path: '/FallbackNotFound',
|
||||
children: [
|
||||
{
|
||||
component: () => import('#/views/_core/fallback/not-found.vue'),
|
||||
meta: {
|
||||
hideInBreadcrumb: true,
|
||||
hideInMenu: true,
|
||||
hideInTab: true,
|
||||
title: '404',
|
||||
},
|
||||
name: 'FallbackNotFound',
|
||||
path: '/:path(.*)*',
|
||||
},
|
||||
],
|
||||
};
|
||||
|
||||
/** 基本路由 */
|
||||
const coreRoutes: RouteRecordRaw[] = [
|
||||
/**
|
||||
* 根路由
|
||||
* 使用基础布局,作为所有页面的父级容器,子级就不必配置BasicLayout。
|
||||
* 此路由必须存在,且不应修改
|
||||
*/
|
||||
{
|
||||
component: BasicLayout,
|
||||
meta: {
|
||||
hideInBreadcrumb: true,
|
||||
title: 'Root',
|
||||
},
|
||||
name: 'Root',
|
||||
path: '/',
|
||||
redirect: preferences.app.defaultHomePath,
|
||||
children: [],
|
||||
},
|
||||
{
|
||||
name: 'login',
|
||||
path: '/login',
|
||||
component: () => import('#/views/_core/login/Login.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
title: '登录',
|
||||
i18nCode: 'page.auth.login',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'sso',
|
||||
path: '/sso',
|
||||
component: () => import('#/views/_core/login/ssoRedirect.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
title: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
name: 'formShortLink',
|
||||
path: '/formShortLink',
|
||||
component: () => import('#/views/common/formShortLink/index.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
ignoreAccess: true,
|
||||
title: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/flowChat',
|
||||
name: 'flowChat',
|
||||
component: () => import('#/views/workFlow/flowChart/index.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
ignoreAccess: true,
|
||||
title: '',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/reportPreview',
|
||||
name: 'flowChat',
|
||||
component: () => import('#/views/common/dynamicReport/index.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
ignoreAccess: true,
|
||||
title: '',
|
||||
},
|
||||
},
|
||||
// SSW 可信数据空间门户页(Vue 组件,由 views/ssw/views/_portal/tds.vue 提供)
|
||||
// 走官方 jnpf_app_ 路由前缀:jnpf_app_tds/ssw-portal/tds;coreRoutes + ignoreAccess 双保险免登录访问
|
||||
{
|
||||
name: 'SswPortalTds',
|
||||
path: '/ssw-portal/tds',
|
||||
component: () => import('#/views/ssw/views/_portal/tds.vue'),
|
||||
meta: {
|
||||
hideMenu: true,
|
||||
hideInBreadcrumb: true,
|
||||
hideInTab: true,
|
||||
ignoreAccess: true,
|
||||
title: '尚数网可信数据空间 · TDS 门户',
|
||||
},
|
||||
},
|
||||
{
|
||||
path: '/forbidden',
|
||||
name: 'Forbidden',
|
||||
component: () => import('#/views/_core/fallback/forbidden.vue'),
|
||||
meta: {
|
||||
hideInBreadcrumb: true,
|
||||
hideInMenu: true,
|
||||
hideInTab: true,
|
||||
title: '403',
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
export { coreRoutes, fallbackNotFoundRoute };
|
||||
File diff suppressed because it is too large.
Load diff
@@ -19,7 +19,7 @@ import type { OperatorDef } from '@/views/ssw/types/sswflow'
|
||||
const store = useStore()
|
||||
const route = useRoute()
|
||||
|
||||
// 联动当前项目:从 /flow?projectId= 读取,加载该项目「已授权可用」数据集
|
||||
// 联动当前项目:从 /flow/editor?projectId= 读取,加载该项目「已授权可用」数据集
|
||||
const currentProjectName = computed(() => {
|
||||
const p = store.projects.find((x) => x.id === store.currentProjectId)
|
||||
return p?.name || store.currentProjectId || ''
|
||||
|
||||
@@ -51,8 +51,8 @@ async function load() {
|
||||
}
|
||||
|
||||
function openFlow(f: any) {
|
||||
if (f.projectId) router.push(`/flow?projectId=${f.projectId}`)
|
||||
else router.push('/flow')
|
||||
if (f.projectId) router.push(`/flow/editor?projectId=${f.projectId}`)
|
||||
else router.push('/flow/editor')
|
||||
}
|
||||
|
||||
onMounted(load)
|
||||
@@ -64,23 +64,23 @@ onMounted(load)
|
||||
<h2 class="h-title">平台概览</h2>
|
||||
|
||||
<div class="cards">
|
||||
<div class="card" @click="router.push('/projects')">
|
||||
<div class="card" @click="router.push('/flow/projects')">
|
||||
<div class="c-num">{{ counts.project }}</div>
|
||||
<div class="c-label">项目</div>
|
||||
</div>
|
||||
<div class="card" @click="router.push('/parties')">
|
||||
<div class="card" @click="router.push('/flow/parties')">
|
||||
<div class="c-num">{{ counts.party }}</div>
|
||||
<div class="c-label">参与方</div>
|
||||
</div>
|
||||
<div class="card" @click="router.push('/datasets')">
|
||||
<div class="card" @click="router.push('/flow/datasets')">
|
||||
<div class="c-num">{{ counts.dataset }}</div>
|
||||
<div class="c-label">数据集</div>
|
||||
</div>
|
||||
<div class="card" @click="router.push('/datasources')">
|
||||
<div class="card" @click="router.push('/flow/datasources')">
|
||||
<div class="c-num">{{ counts.datasource }}</div>
|
||||
<div class="c-label">数据源</div>
|
||||
</div>
|
||||
<div class="card" @click="router.push('/flow')">
|
||||
<div class="card" @click="router.push('/flow/editor')">
|
||||
<div class="c-num">{{ counts.flow }}</div>
|
||||
<div class="c-label">流程</div>
|
||||
</div>
|
||||
@@ -100,7 +100,7 @@ onMounted(load)
|
||||
<div class="col">
|
||||
<div class="col-title">最近项目</div>
|
||||
<a-empty v-if="!recentProjects.length" description="暂无项目" />
|
||||
<div v-for="p in recentProjects" :key="p.id" class="row" @click="router.push('/projects')">
|
||||
<div v-for="p in recentProjects" :key="p.id" class="row" @click="router.push('/flow/projects')">
|
||||
<span class="r-name">{{ p.name }}</span>
|
||||
<span class="r-muted">{{ (p.fCreatorTime || '').slice(0, 10) }}</span>
|
||||
</div>
|
||||
|
||||
@@ -162,7 +162,7 @@ async function submit() {
|
||||
drawerOpen.value = false
|
||||
await load()
|
||||
// 借鉴 SecretPad:创建成功后直跳工作流编辑器
|
||||
if (pid) router.push(`/flow?projectId=${pid}`)
|
||||
if (pid) router.push(`/flow/editor?projectId=${pid}`)
|
||||
}
|
||||
} catch (e: any) {
|
||||
message.error(e?.message || '操作失败')
|
||||
@@ -237,7 +237,7 @@ onMounted(load)
|
||||
<div class="card-foot">
|
||||
<span class="status-dot" :class="(p.status || 'DRAFT').toLowerCase()">{{ p.status || 'DRAFT' }}</span>
|
||||
<div class="foot-actions">
|
||||
<a-button type="link" size="small" @click="router.push('/flow?projectId=' + p.id)">进入编辑器</a-button>
|
||||
<a-button type="link" size="small" @click="router.push('/flow/editor?projectId=' + p.id)">进入编辑器</a-button>
|
||||
<a-button type="link" size="small" @click="openEdit(p)">编辑</a-button>
|
||||
<a-button type="link" size="small" danger @click="remove(p)">删除</a-button>
|
||||
</div>
|
||||
|
||||
@@ -131,7 +131,7 @@ function openFlow(flowId?: string) {
|
||||
message.info('该运行缺少流程信息')
|
||||
return
|
||||
}
|
||||
router.push({ path: '/flow', query: { flowId } })
|
||||
router.push({ path: '/flow/editor', query: { flowId } })
|
||||
}
|
||||
|
||||
async function batchStop() {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import { resolve } from 'node:path';
|
||||
import fs from 'node:fs';
|
||||
|
||||
import { defineConfig, loadAndConvertEnv } from '@vben/vite-config';
|
||||
|
||||
@@ -26,45 +25,6 @@ export default defineConfig(async () => {
|
||||
},
|
||||
],
|
||||
},
|
||||
// 门户页 (jweb 真源 public/ssw-tds/index.html) 走 vite 默认 static serving,
|
||||
// 路径前缀 ssw-tds 与 jweb src/views/ssw/tds 组件目录不冲突, 无需中间件干预
|
||||
// 但 jweb 内置的 vite-plugin-html 检查 Accept: text/html 时会触发 transformIndexHtml
|
||||
// 把真源 HTML 注入 @vite/client + main.ts 变成 SPA 入口 (浏览器看到 login 页);
|
||||
// 唯一解法: stack.unshift + fs.readFileSync 真源 + res.end 在 transform 之前吃掉请求.
|
||||
// 注意只在 jweb 端必要, web 端无 vite-plugin-html 默认行为, 不需要.
|
||||
plugins: [
|
||||
{
|
||||
name: 'ssw-portal-bypass-html-plugin',
|
||||
configureServer(server) {
|
||||
return () => {
|
||||
const portalHandler = (req: any, res: any, next: any) => {
|
||||
const u = req.url || ''
|
||||
const m = /^\/ssw-tds(\/index\.html)?\/?(\?|$)/.exec(u)
|
||||
if (!m) return next()
|
||||
const file = resolve(process.cwd(), 'public', 'ssw-tds', 'index.html')
|
||||
try {
|
||||
const buf = fs.readFileSync(file)
|
||||
res.setHeader('Content-Type', 'text/html; charset=utf-8')
|
||||
res.setHeader('Cache-Control', 'no-store')
|
||||
res.setHeader('Content-Length', String(buf.length))
|
||||
res.end(buf)
|
||||
return
|
||||
} catch (e) {
|
||||
res.statusCode = 404
|
||||
res.end('not found')
|
||||
return
|
||||
}
|
||||
}
|
||||
const stack = (server.middlewares as any).stack as any[] | undefined
|
||||
if (Array.isArray(stack)) {
|
||||
stack.unshift({ route: '', handle: portalHandler })
|
||||
} else {
|
||||
server.middlewares.use(portalHandler)
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
||||
});
|
||||
@@ -1 +0,0 @@
|
||||
/Users/xs/Desktop/ssw/jweb/apps/jnpf-web-apps-main/public/ssw-tds
|
||||
+4
-20
@@ -4,8 +4,8 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
import path from 'node:path'
|
||||
|
||||
const __dirname = fileURLToPath(new URL('.', import.meta.url))
|
||||
// jweb 真源 public 目录:web/public/ssw-tds 是软链指向这里,需让 vite 放开 fs 限制
|
||||
const jwebPublic = path.resolve(__dirname, '../jweb/apps/jnpf-web-apps-main/public')
|
||||
// jweb 真源 src/views/ssw 是软链指向这里,需让 vite 放开 fs 限制(视图组件也走了这一处)
|
||||
const jwebSrc = path.resolve(__dirname, '../jweb/apps/jnpf-web-apps-main/src')
|
||||
|
||||
export default defineConfig({
|
||||
resolve: {
|
||||
@@ -17,9 +17,9 @@ export default defineConfig({
|
||||
server: {
|
||||
host: true,
|
||||
port: 5173,
|
||||
// src/views/ssw + public/ssw-tds 是软链到 jweb 的目录(跨项目符号链接),放开 fs 限制让 vite 能读
|
||||
// src/views/ssw 是软链到 jweb 的目录(跨项目符号链接),放开 fs 限制让 vite 能读
|
||||
fs: {
|
||||
allow: ['..', jwebPublic]
|
||||
allow: ['..', jwebSrc]
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
@@ -28,24 +28,8 @@ export default defineConfig({
|
||||
}
|
||||
}
|
||||
},
|
||||
// 门户页 (jweb 真源 public/ssw-tds/index.html) 走 vite 默认 static serving.
|
||||
// 路径前缀 ssw-tds 与 jweb src/views/ssw/tds 组件目录不冲突. 但 vite 默认不会自动把
|
||||
// 目录 URL (/ssw-tds/) rewrite 到 /ssw-tds/index.html, 导致 363 字节空 SPA fallback;
|
||||
// 用最简 URL rewrite (不改文件内容) 让 vite 默认 static 命中真源.
|
||||
plugins: [
|
||||
vue(),
|
||||
{
|
||||
name: 'ssw-portal-dir-rewrite',
|
||||
configureServer(server) {
|
||||
server.middlewares.use((req, res, next) => {
|
||||
const u = req.url || ''
|
||||
if (/^\/ssw-tds\/?(\?|$)/.test(u)) {
|
||||
req.url = u.replace(/\/?(\?|$)/, '/index.html$1')
|
||||
}
|
||||
next()
|
||||
})
|
||||
}
|
||||
}
|
||||
],
|
||||
build: {
|
||||
rollupOptions: {
|
||||
|
||||
Reference in new issue
Block a user