feat: OPC 平台初版(Go+PG backend / Vue frontend)+ 尚数网融合方案 + db/0824 数据库备份

- backend: 25 张表 schema/seed,config 指向 127.0.0.1:15432 opc 库
- docs: 尚数网七维融合方案、行业老炮切入方案、竞品分析等
- db/0824/opc_0824.sql(.gz): pg_dump 全量备份(25 表,含数据)
This commit is contained in:
小K committed 2026-08-24 13:44:40 +08:00
commit a5692bfd7d
56 files changed
+11841

No files matched your search

+57
View File
@@ -0,0 +1,57 @@
<template>
<div>
<div class="hero-banner" style="background: linear-gradient(135deg, #6d28d9 0%, #06b6d4 100%);">
<div class="hero-text">
<h1>合规数据资源目录</h1>
<p>面向 OPC 团队开放:文本 / 图像 / 语音 / 视频 / 标注 / 行业专题</p>
</div>
<div class="hero-actions">
<span class="top-tag" style="background: rgba(255,255,255,0.2); color: #fff;">数据资源 {{ resources.length }} 项</span>
</div>
</div>
<div class="form-row" style="margin-bottom: 16px;">
<label>类型</label>
<el-select v-model="filters.category" placeholder="全部类型" clearable @change="load">
<el-option v-for="c in categories" :key="c" :label="c" :value="c" />
</el-select>
<label>领域</label>
<el-select v-model="filters.domain" placeholder="全部领域" clearable @change="load">
<el-option v-for="d in domains" :key="d" :label="d" :value="d" />
</el-select>
</div>
<div class="row-3">
<div v-for="r in resources" :key="r.id" class="resource-card">
<div style="display: flex; justify-content: space-between; align-items: center;">
<span class="tag tag-blue">{{ r.category }}</span>
<span class="tag tag-green">{{ r.license }}</span>
</div>
<h4 style="margin-top: 8px;">{{ r.title }}</h4>
<div class="meta">🏷 {{ r.domain }}</div>
<div class="desc">{{ r.description }}</div>
<div style="margin-top: 10px; display: flex; gap: 12px; font-size: 12px; color: var(--text-muted);">
<span>💾 {{ r.size_gb }} GB</span>
<span>📊 {{ r.rows_count.toLocaleString() }} 条</span>
<span>📥 已申请 {{ r.apply_count }} 次</span>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref, onMounted, computed } from 'vue'
import api from '../api'
const resources = ref([])
const filters = ref({ category: '', domain: '' })
const categories = computed(() => [...new Set(resources.value.map(r => r.category))])
const domains = computed(() => [...new Set(resources.value.map(r => r.domain))])
async function load() {
resources.value = await api.listDataResources(filters.value)
}
onMounted(load)
</script>