diff --git a/src/views/knowledge/detail/components/documentDetail/DocumentDrawer.vue b/src/views/knowledge/detail/components/documentDetail/DocumentDrawer.vue index 9107159..cf5b5aa 100644 --- a/src/views/knowledge/detail/components/documentDetail/DocumentDrawer.vue +++ b/src/views/knowledge/detail/components/documentDetail/DocumentDrawer.vue @@ -8,7 +8,7 @@
-

{{ descriptions.fileName || descriptions.knowledgeName }}

+

{{ descriptions.knowledgeName }}

{{ getDocumentSourceLabel(descriptions.documentSource) }} {{ descriptions.createdDate }}
@@ -36,15 +36,18 @@
-

- 样式: {{ item.titleLevel }} -

-

- 关键词: {{ item.ruleRegex }} -

-

- 备注: {{ item.description }} -

+
+

样式

+ {{ item.titleLevel }} +
+
+

关键词

+ {{ item.ruleRegex }} +
+
+

备注

+ {{ item.description }} +
@@ -55,21 +58,26 @@
-

- 属性: {{ item.attribute }} -

-

- 属性描述:{{ item.attributeDesc }} -

-

- 关键词: {{ item.keyword }} -

-

- 关键词示例: {{ item.example }} -

-

- 提示词: {{ item.prompt }} -

+
+

属性

+ {{ item.attribute }} +
+
+

属性描述

+ {{ item.attributeDesc }} +
+
+

关键词

+ {{ item.keyword }} +
+
+

关键词示例

+ {{ item.example }} +
+
+

提示词

+ {{ item.prompt }} +
@@ -247,7 +255,9 @@ export default { border-radius: 8px; border: 1px solid #e0e0e0; margin-right: 10px; - + div { + display: flex; + } p { margin: 5px 0; } @@ -256,6 +266,7 @@ export default { font-size: 14px; color: #606266; margin-bottom: 10px; + width: 100px; } .rule-value { diff --git a/src/views/knowledge/detail/components/documentDetail/QAModel.vue b/src/views/knowledge/detail/components/documentDetail/QAModel.vue index 9a43fe8..5667538 100644 --- a/src/views/knowledge/detail/components/documentDetail/QAModel.vue +++ b/src/views/knowledge/detail/components/documentDetail/QAModel.vue @@ -56,6 +56,11 @@ export default { type: Object, default: () => ({ data: [] }) } + }, + data() { + return { + activeSegment: 0 + } } }