From c257fb1d2238aae76331ad4d1ad8cfe667493718 Mon Sep 17 00:00:00 2001
From: liudong <liudong>
Date: 星期一, 12 八月 2024 18:03:02 +0800
Subject: [PATCH] 知识库,智能体样式修改
---
src/views/dmx/knowledgeLib/index.vue | 26 +++++++++-----------------
1 files changed, 9 insertions(+), 17 deletions(-)
diff --git a/src/views/dmx/knowledgeLib/index.vue b/src/views/dmx/knowledgeLib/index.vue
index 87016f9..c6643f3 100644
--- a/src/views/dmx/knowledgeLib/index.vue
+++ b/src/views/dmx/knowledgeLib/index.vue
@@ -11,7 +11,7 @@
<addKnow @getknowledge="getknowledge" @getKbdetail="getKbdetail"></addKnow>
</div>
<a-spin :loading="listloading" class="lf-container-down">
- <a-scrollbar style="overflow: auto;" :style="{height: documentHeight + 70 + 'px'}">
+ <a-scrollbar style="height: calc(100vh - 300px); overflow: auto">
<div
class="tab"
v-for="(tab, index) in tabs"
@@ -36,7 +36,7 @@
<div class="rt-container" v-if="tabs.length > 0" >
<a-tabs :active-key="activeKey" @change="handleTabChange">
<a-tab-pane key="1" :title= "t('dmx.list.DataSet')">
- <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
+ <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
<a-card ref="account" class="general-card" title="" style="padding-top: 20px">
<a-row>
<a-col :flex="1" :span="12">
@@ -249,17 +249,17 @@
</template>
</a-table>
</a-card>
- </div>
+ </a-scrollbar>
</a-tab-pane>
<a-tab-pane key="2" :title="t('dmx.list.test')">
- <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
+ <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
<test ref="testForm"></test>
- </div>
+ </a-scrollbar>
</a-tab-pane>
<a-tab-pane key="3" :title="t('dmx.list.disposition')">
- <div class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}">
+ <a-scrollbar class="rt-container-main" :style="{height: documentHeight + 70 + 'px'}" style="overflow: auto">
<config ref="configForm" :kbtenantInfo="kbtenantInfo" @cancleConfig="cancleConfig" @saveConfig="saveConfig"></config>
- </div>
+ </a-scrollbar>
</a-tab-pane>
</a-tabs>
<!-- <div v-if="detailsShow" class="details">-->
@@ -858,15 +858,6 @@
</script>
-<script lang="ts">
- export default {
- name: 'SearchTable',
- methods: {
-
- }
- };
-</script>
-
<style scoped lang="less">
.container {
padding: 0 20px 20px 20px;
@@ -877,7 +868,7 @@
display: flex;
flex-direction: column;
align-items: center;
- justify-content: space-evenly;
+ //justify-content: space-evenly;
border-radius: 8px;
background: var(--color-bg-2);
width: 200px;
@@ -890,6 +881,7 @@
flex-direction: column;
box-sizing: border-box;
width: 90%;
+ height: calc(100% - 80px);
border: 1px solid var(--color-fill-3);
border-radius: 8px;
//padding: 10px;
--
Gitblit v1.8.0