加载中...
@@ -94,9 +103,7 @@
×{{ page.totalCount }}
-
- {{ expandedSet.has(page.url) ? '收起' : '查看' }}
-
+ 原始内容
重新解析
@@ -107,26 +114,21 @@
-
-
-
-
-
-
-
-
- {{ scope.row[col] ?? '-' }}
-
-
-
-
-
- {{ page.parsed?.message || '暂无提取数据' }}
-
-
-
-
+
+
+
+
+
+
+ {{ scope.row[col] ?? '-' }}
+
+
+
+
+
+ {{ page.parsed.message || '解析失败' }}
+
@@ -161,6 +163,7 @@ const allResults = ref([])
const pageParsed = ref({})
const expandedSet = reactive(new Set())
const reparsingUrls = reactive(new Set())
+const rawVisible = ref(false), rawLoading = ref(false), rawUrl = ref(''), rawContent = ref('')
const totalResults = computed(() => allResults.value.length)
@@ -290,6 +293,18 @@ const reparseUrl = async (page) => {
finally { reparsingUrls.delete(page.url) }
}
+const viewRaw = async (page) => {
+ rawUrl.value = page.url
+ rawVisible.value = true
+ rawLoading.value = true
+ rawContent.value = ''
+ try {
+ const r = await api.accessResults.get(page.accessResultId)
+ rawContent.value = r.data?.content || '(空)'
+ } catch { rawContent.value = '加载失败' }
+ finally { rawLoading.value = false }
+}
+
const deleteResult = async (page) => {
try {
await api.accessResults.delete(page.accessResultId)
@@ -315,6 +330,11 @@ onMounted(async () => {