yangyin
2024-09-09 77286f9747a37e4a8a8713f1b7f2195652092795
文件列表新增查看文件块
已修改2个文件
50 ■■■■■ 文件已修改
src/views/project/yw/dataManage/graph/GraphIndex.vue 38 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/yw/dataManage/knowledge/viewKnowBase/ViewFile.vue 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/project/yw/dataManage/graph/GraphIndex.vue
@@ -89,15 +89,28 @@
                    <el-table-column prop="type" width="120" label="文件类型" show-overflow-tooltip align="center" />
                    <el-table-column prop="size" width="120" label="文件大小" show-overflow-tooltip align="center" />
                    <el-table-column prop="time" label="上传时间" show-overflow-tooltip width="280" align="center"></el-table-column>
                    <el-table-column label="操作" width="80" fixed="right" show-overflow-tooltip align="center">
                    <el-table-column label="操作" width="120" fixed="right" show-overflow-tooltip align="center">
                        <template #default="scope">
                            <!-- <el-button icon="ele-Tickets" size="small" text type="primary" @click="openOperateDemoPage(scope.row)"> 详情</el-button> -->
                            <el-tooltip effect="dark" content="删除" placement="top">
                                <i
                                    class="ywifont ywicon-shanchu !text-[17px] text-red-400 cursor-pointer"
                                    @click="deleteCurrentFormulaRow(scope.row)"
                                ></i>
                            </el-tooltip>
                            <div class="space-x-2.5">
                                <el-tooltip effect="dark" content="文档详情" placement="top">
                                    <i
                                        class="ywifont ywicon-wendang !text-[17px] cursor-pointer text-blue-400"
                                        @click="openOperateDemoPage(scope.row)"
                                    ></i>
                                </el-tooltip>
                                <el-tooltip effect="dark" content="查看" placement="top">
                                    <i
                                        class="ywifont ywicon-yulan !text-[17px] cursor-pointer text-blue-400"
                                        @click="handleViewKnowledgeFile(scope.row)"
                                    ></i>
                                </el-tooltip>
                                <el-tooltip effect="dark" content="删除" placement="top">
                                    <i
                                        class="ywifont ywicon-shanchu !text-[17px] text-red-400 cursor-pointer"
                                        @click="deleteCurrentFormulaRow(scope.row)"
                                    ></i>
                                </el-tooltip>
                            </div>
                        </template>
                    </el-table-column>
                </el-table>
@@ -284,7 +297,14 @@
        },
    });
};
const handleViewKnowledgeFile = (row) => {
    router.push({
        name: 'ViewFile',
        query: {
            id: row.id,
        },
    });
};
//导入数据
const importData = () => {
    router.push({
src/views/project/yw/dataManage/knowledge/viewKnowBase/ViewFile.vue
@@ -10,18 +10,6 @@
                <span class="text-[24px] text-[#26244c] font-[700]">{{ state.knowledgeInfo.knowledge_title }}</span>
            </div>
            <div class="set-table-height">
                <!-- <div class="mx-0 mt-[12px] mb-[16px] flex justify-between items-center">
                    <div class="flex-col">
                        <el-input
                            v-model="knowledgeFileForm.title"
                            style="width: 230px; margin-right: 10px; background: #ffffff; border-radius: 6px; transition: all 0.2s"
                            placeholder="搜索知识库名称"
                            clearable
                        ></el-input>
                        <el-button type="primary" icon="ele-Search" @click="handleQueryTable"> 查询 </el-button>
                        <el-button icon="ele-Refresh" @click="resetQuery">重置 </el-button>
                    </div>
                </div> -->
                <div class="relative transition-[opacity 0.3s]">
                    <div class="flex flex-wrap gap-[12px] mt-4 box-border">
                        <div