-
+
@@ -219,7 +225,6 @@
import { nextTick, ref, onMounted, computed } from 'vue'
import { useRoute } from 'vue-router'
import { cloneDeep } from 'lodash'
-// import applicationApi from '@/api/application/application'
import ParagraphDialog from '@/views/paragraph/component/ParagraphDialog.vue'
import { arraySort } from '@/utils/common'
import emptyImg from '@/assets/hit-test-empty.png'
@@ -227,7 +232,6 @@ import { t } from '@/locales'
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
const route = useRoute()
const {
- meta: { activeMenu },
params: { id },
} = route as any
const apiType = computed(() => {
@@ -261,13 +265,6 @@ const questionTitle = ref('')
const isDisabledChart = computed(() => !inputValue.value)
-const isApplication = computed(() => {
- return activeMenu.includes('application')
-})
-const isDataset = computed(() => {
- return activeMenu.includes('knowledge')
-})
-
function changeHandle(val: string) {
if (val === 'keywords') {
cloneForm.value.similarity = 0
@@ -323,23 +320,14 @@ function getHitTestList() {
query_text: inputValue.value,
...formInline.value,
}
- if (isDataset.value) {
- loadSharedApi({ type: 'knowledge', systemType: apiType.value })
- .putKnowledgeHitTest(id, obj, loading)
- .then((res: any) => {
- paragraphDetail.value = res.data && arraySort(res.data, 'comprehensive_score', true)
- questionTitle.value = inputValue.value
- inputValue.value = ''
- first.value = false
- })
- } else if (isApplication.value) {
- // applicationApi.getApplicationHitTest(id, obj, loading).then((res) => {
- // paragraphDetail.value = res.data && arraySort(res.data, 'comprehensive_score', true)
- // questionTitle.value = inputValue.value
- // inputValue.value = ''
- // first.value = false
- // })
- }
+ loadSharedApi({ type: 'knowledge', systemType: apiType.value })
+ .putKnowledgeHitTest(id, obj, loading)
+ .then((res: any) => {
+ paragraphDetail.value = res.data && arraySort(res.data, 'comprehensive_score', true)
+ questionTitle.value = inputValue.value
+ inputValue.value = ''
+ first.value = false
+ })
}
function refresh(data: any) {
@@ -438,11 +426,6 @@ onMounted(() => {})
-webkit-line-clamp: 5 !important;
height: 110px;
}
- .active-button {
- position: absolute;
- right: 16px;
- top: 16px;
- }
}
}
diff --git a/ui/src/views/knowledge/component/BaseForm.vue b/ui/src/views/knowledge/component/BaseForm.vue
index fe85b787a..c0917668e 100644
--- a/ui/src/views/knowledge/component/BaseForm.vue
+++ b/ui/src/views/knowledge/component/BaseForm.vue
@@ -44,9 +44,9 @@