|
@@ -1,54 +1,60 @@
|
|
<template>
|
|
<template>
|
|
- <el-alert style="margin-bottom: 20px;" title="上传文档,自动提取文本,自动抽取知识,自动构建图谱 支持多种文档格式,如PDF、DOCX等 支持多种知识抽取模型,如LLM、RAG等 支持多种图谱构建模型,如Neo4j、Postgres等" type="success" :closable="false" />
|
|
|
|
|
|
+ <el-alert style="margin-bottom: 20px;"
|
|
|
|
+ title="上传文档,自动提取文本,自动抽取知识,自动构建图谱 支持多种文档格式,如PDF、DOCX等 支持多种知识抽取模型,如LLM、RAG等 支持多种图谱构建模型,如Neo4j、Postgres等"
|
|
|
|
+ type="success" :closable="false" />
|
|
<!-- 主要内容区域 -->
|
|
<!-- 主要内容区域 -->
|
|
- <el-steps
|
|
|
|
- style="margin-bottom: 20px;padding: 33px 8%;"
|
|
|
|
- :space="200"
|
|
|
|
- simple
|
|
|
|
- >
|
|
|
|
- <el-step >
|
|
|
|
|
|
+ <el-steps style="margin-bottom: 20px;padding: 33px 8%;" :space="200" simple>
|
|
|
|
+ <el-step>
|
|
<template #icon>
|
|
<template #icon>
|
|
<el-icon size="30" color="#40a1ff"><upload-filled /></el-icon>
|
|
<el-icon size="30" color="#40a1ff"><upload-filled /></el-icon>
|
|
- </template>
|
|
|
|
|
|
+ </template>
|
|
<template #title>
|
|
<template #title>
|
|
<div>第一步</div>
|
|
<div>第一步</div>
|
|
<div>上传文档</div>
|
|
<div>上传文档</div>
|
|
<!-- <span>上传文档</span> -->
|
|
<!-- <span>上传文档</span> -->
|
|
</template>
|
|
</template>
|
|
</el-step>
|
|
</el-step>
|
|
- <el-step status="process">
|
|
|
|
|
|
+ <el-step status="process">
|
|
<template #icon>
|
|
<template #icon>
|
|
- <el-icon size="30" color="#40a1ff"><TrendCharts /></el-icon>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-icon size="30" color="#40a1ff">
|
|
|
|
+ <TrendCharts />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </template>
|
|
<template #title>
|
|
<template #title>
|
|
<div>第二步</div>
|
|
<div>第二步</div>
|
|
<div>文本切片</div>
|
|
<div>文本切片</div>
|
|
</template>
|
|
</template>
|
|
</el-step>
|
|
</el-step>
|
|
- <el-step status="process">
|
|
|
|
|
|
+ <el-step status="process">
|
|
<template #icon>
|
|
<template #icon>
|
|
- <el-icon size="30" color="#40a1ff"><ChromeFilled /></el-icon>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-icon size="30" color="#40a1ff">
|
|
|
|
+ <ChromeFilled />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </template>
|
|
<template #title>
|
|
<template #title>
|
|
<div>第三步</div>
|
|
<div>第三步</div>
|
|
<div>知识抽取</div>
|
|
<div>知识抽取</div>
|
|
<!-- <span>上传文档</span> -->
|
|
<!-- <span>上传文档</span> -->
|
|
</template>
|
|
</template>
|
|
</el-step>
|
|
</el-step>
|
|
- <el-step status="process" >
|
|
|
|
|
|
+ <el-step status="process">
|
|
<template #icon>
|
|
<template #icon>
|
|
- <el-icon size="30" color="#40a1ff"><HelpFilled /></el-icon>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-icon size="30" color="#40a1ff">
|
|
|
|
+ <HelpFilled />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </template>
|
|
<template #title>
|
|
<template #title>
|
|
<div>第四步</div>
|
|
<div>第四步</div>
|
|
<div>图谱构建</div>
|
|
<div>图谱构建</div>
|
|
<!-- <span>上传文档</span> -->
|
|
<!-- <span>上传文档</span> -->
|
|
</template>
|
|
</template>
|
|
</el-step>
|
|
</el-step>
|
|
- <el-step status="process">
|
|
|
|
|
|
+ <el-step status="process">
|
|
<template #icon>
|
|
<template #icon>
|
|
- <el-icon size="30" color="#40a1ff"><Grid /></el-icon>
|
|
|
|
- </template>
|
|
|
|
|
|
+ <el-icon size="30" color="#40a1ff">
|
|
|
|
+ <Grid />
|
|
|
|
+ </el-icon>
|
|
|
|
+ </template>
|
|
<template #title>
|
|
<template #title>
|
|
<div>第五步</div>
|
|
<div>第五步</div>
|
|
<div>查看图谱</div>
|
|
<div>查看图谱</div>
|
|
@@ -115,7 +121,8 @@
|
|
</el-row> -->
|
|
</el-row> -->
|
|
<el-row style="display: flex;justify-content: space-between;padding: 0 50px;">
|
|
<el-row style="display: flex;justify-content: space-between;padding: 0 50px;">
|
|
<template v-for="(queue, index) in queuesSummary" :key="index">
|
|
<template v-for="(queue, index) in queuesSummary" :key="index">
|
|
- <el-card shadow="hover" style="width: 40%; margin: 10px; padding: 30px; text-align: center;background: linear-gradient( #eef6ff 0%, #F6F6F9 100%);">
|
|
|
|
|
|
+ <el-card shadow="hover"
|
|
|
|
+ style="width: 40%; margin: 10px; padding: 30px; text-align: center;background: linear-gradient( #eef6ff 0%, #F6F6F9 100%);">
|
|
<div class="card-header" style="margin-bottom: 10px;">
|
|
<div class="card-header" style="margin-bottom: 10px;">
|
|
<span>{{ formatQueueName(queue.queue_category, queue.queue_name) }}</span>
|
|
<span>{{ formatQueueName(queue.queue_category, queue.queue_name) }}</span>
|
|
<span class="card-status" :class="queue.status === 'running' ? 'status-running' : 'status-idle'">
|
|
<span class="card-status" :class="queue.status === 'running' ? 'status-running' : 'status-idle'">
|
|
@@ -144,7 +151,7 @@
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
import { ref, onMounted } from 'vue';
|
|
import { ref, onMounted } from 'vue';
|
|
import { getQueueSummary } from '@/api/AgentApi';
|
|
import { getQueueSummary } from '@/api/AgentApi';
|
|
-const queuesSummary = ref([]);
|
|
|
|
|
|
+const queuesSummary = ref<any>([]);
|
|
const queueIdNameDict = ref([
|
|
const queueIdNameDict = ref([
|
|
{ id: "0", name: "DEFAULT", category: 'SYSTEM', title: "全部工作", },
|
|
{ id: "0", name: "DEFAULT", category: 'SYSTEM', title: "全部工作", },
|
|
{ id: "1", name: "OCR", category: 'SYSTEM', title: "PDF文件抽取", },
|
|
{ id: "1", name: "OCR", category: 'SYSTEM', title: "PDF文件抽取", },
|
|
@@ -243,5 +250,4 @@ onMounted(() => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
</style>
|
|
</style>
|