|
|
@@ -206,7 +206,7 @@
|
|
|
@input="getList()"
|
|
|
allow-clear
|
|
|
@clear.stop="getList()"
|
|
|
- placeholder="$t('knowledgeLib.search_placeholder')"
|
|
|
+ :placeholder="$t('knowledgeLib.search_placeholder')"
|
|
|
/>
|
|
|
</a-space>
|
|
|
<a-button
|
|
|
@@ -260,6 +260,7 @@
|
|
|
<a-checkbox :value="item.chunk_id"></a-checkbox>
|
|
|
<div
|
|
|
class="groupList-content emphaRed"
|
|
|
+ :class="{ omisson: show_all_content }"
|
|
|
@click="groupListContentClick(index)"
|
|
|
@dblclick="contentClick(item)"
|
|
|
v-html="item.content_with_weight"
|
|
|
@@ -287,6 +288,7 @@
|
|
|
</a-tab-pane>
|
|
|
</a-tabs>
|
|
|
</a-modal>
|
|
|
+ <DeleteModal :visible.sync="delete_visible" @ok="deleteModalOk" @cancel="delete_visible = false" />
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
@@ -302,14 +304,18 @@ import {
|
|
|
} from '../../../../apis/rgflow-dify';
|
|
|
import addDetails from './addDetails.vue';
|
|
|
import eidtDetails from './eidtDetails.vue';
|
|
|
+import DeleteModal from '../../../../components/DeleteModal.vue';
|
|
|
|
|
|
const visible = ref(false);
|
|
|
const loading = ref(false);
|
|
|
const radio = ref('1');
|
|
|
+const show_all_content = ref(false);
|
|
|
const keyBg = ref('');
|
|
|
const eidtDil = ref();
|
|
|
const eidtDilVisible = ref(false);
|
|
|
const eidtDilinfo = reactive({});
|
|
|
+// 删除弹框
|
|
|
+const delete_visible = ref(false);
|
|
|
|
|
|
const props = defineProps(['kbtenantInfo', 'item', 'kbdetail']);
|
|
|
// const emit = defineEmits(['upTabdateItem'])
|
|
|
@@ -433,10 +439,10 @@ const contentClick = async (item) => {
|
|
|
}
|
|
|
};
|
|
|
const handleOpened = (el) => {
|
|
|
- console.log('kbtenantInfo', props.kbtenantInfo);
|
|
|
- console.log('item', props.item);
|
|
|
- console.log('kbdetail', props.kbdetail);
|
|
|
- console.log(parser_ids, 'parser_ids');
|
|
|
+ // console.log('kbtenantInfo', props.kbtenantInfo);
|
|
|
+ // console.log('item', props.item);
|
|
|
+ // console.log('kbdetail', props.kbdetail);
|
|
|
+ // console.log(parser_ids, 'parser_ids');
|
|
|
let parser_id = props.item.parser_id;
|
|
|
parser_ids.forEach((item) => {
|
|
|
if (item.name == parser_id) {
|
|
|
@@ -455,6 +461,7 @@ const switchType = ref(false);
|
|
|
const available_int = ref('');
|
|
|
const onRadioChange = () => {
|
|
|
console.log(radio.value);
|
|
|
+ show_all_content.value = radio.value == 1 ? false : true;
|
|
|
};
|
|
|
//批量操作
|
|
|
const handleChangeAll = (value) => {
|
|
|
@@ -562,6 +569,9 @@ const updateChunkStatus = (val) => {
|
|
|
|
|
|
//删除
|
|
|
const deleteChunk = () => {
|
|
|
+ delete_visible.value = true;
|
|
|
+};
|
|
|
+const deleteModalOk = () => {
|
|
|
let params = {
|
|
|
chunk_ids: data.value,
|
|
|
doc_id: props.item.id
|
|
|
@@ -575,6 +585,7 @@ const deleteChunk = () => {
|
|
|
Message.error('删除失败');
|
|
|
}
|
|
|
});
|
|
|
+ delete_visible.value = false;
|
|
|
};
|
|
|
|
|
|
onBeforeMount(() => {});
|
|
|
@@ -616,14 +627,12 @@ defineExpose({
|
|
|
display: flex;
|
|
|
padding: 24px;
|
|
|
border-radius: 8px;
|
|
|
- //background: #eff8ff;
|
|
|
border: 1px solid #f0f0f0;
|
|
|
margin-bottom: 20px;
|
|
|
overflow: auto;
|
|
|
|
|
|
.groupList-content {
|
|
|
width: 700px;
|
|
|
- //height: 100px;
|
|
|
overflow: auto;
|
|
|
box-sizing: border-box;
|
|
|
margin: 0;
|
|
|
@@ -653,4 +662,12 @@ defineExpose({
|
|
|
background: var(--color-bg-1);
|
|
|
color: var(--color-text-1);
|
|
|
}
|
|
|
+/* 省略号样式 */
|
|
|
+.omisson {
|
|
|
+ display: -webkit-box;
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+ -webkit-line-clamp: 3;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+}
|
|
|
</style>
|