diff --git a/.DS_Store b/.DS_Store index 86245597d..8a566649a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/ui/src/api/application.ts b/ui/src/api/application.ts index e1bf67c01..3314200fd 100644 --- a/ui/src/api/application.ts +++ b/ui/src/api/application.ts @@ -231,6 +231,21 @@ const putChatVote: ( ) } +/** + * 命中测试列表 + * @param application_id + * @param loading + * @query { query_text: string, top_number: number, similarity: number } + * @returns + */ +const getApplicationHitTest: ( + application_id: string, + data: any, + loading?: Ref +) => Promise>> = (application_id, data, loading) => { + return get(`${prefix}/${application_id}/hit_test`, data, loading) +} + export default { getAllAppilcation, getApplication, @@ -246,5 +261,6 @@ export default { putAccessToken, postAppAuthentication, getProfile, - putChatVote + putChatVote, + getApplicationHitTest } diff --git a/ui/src/assets/login.jpg b/ui/src/assets/login.jpg index 68e5a7c3e..162ebe925 100644 Binary files a/ui/src/assets/login.jpg and b/ui/src/assets/login.jpg differ diff --git a/ui/src/router/modules/application.ts b/ui/src/router/modules/application.ts index 47ebe1585..56b95bf50 100644 --- a/ui/src/router/modules/application.ts +++ b/ui/src/router/modules/application.ts @@ -50,6 +50,18 @@ const applicationRouter = { }, component: () => import('@/views/application/CreateAndSetting.vue') }, + { + path: 'hit-test', + name: 'AppHitTest', + meta: { + icon: 'app-hit-test', + title: '命中测试', + active: 'hit-test', + parentPath: '/application/:id', + parentName: 'ApplicationDetail' + }, + component: () => import('@/views/hit-test/index.vue') + }, { path: 'log', name: 'Log', diff --git a/ui/src/router/modules/dataset.ts b/ui/src/router/modules/dataset.ts index 3ebaeaedd..5b6301aee 100644 --- a/ui/src/router/modules/dataset.ts +++ b/ui/src/router/modules/dataset.ts @@ -37,18 +37,18 @@ const datasetRouter = { }, component: () => import('@/views/document/index.vue') }, - // { - // path: 'hit-test', - // name: 'HitTest', - // meta: { - // icon: 'app-hit-test', - // title: '命中测试', - // active: 'hit-test', - // parentPath: '/dataset/:id', - // parentName: 'DatasetDetail' - // }, - // component: () => import('@/views/hit-test/index.vue') - // }, + { + path: 'hit-test', + name: 'DatasetHitTest', + meta: { + icon: 'app-hit-test', + title: '命中测试', + active: 'hit-test', + parentPath: '/dataset/:id', + parentName: 'DatasetDetail' + }, + component: () => import('@/views/hit-test/index.vue') + }, { path: 'setting', name: 'DatasetSetting', diff --git a/ui/src/views/dataset/index.vue b/ui/src/views/dataset/index.vue index 8c07db81e..70e87d81a 100644 --- a/ui/src/views/dataset/index.vue +++ b/ui/src/views/dataset/index.vue @@ -126,5 +126,8 @@ onMounted(() => { color: var(--app-text-color); } } + :deep(.el-divider__text) { + background: var(--app-layout-bg-color); + } } diff --git a/ui/src/views/hit-test/index.vue b/ui/src/views/hit-test/index.vue index 1a67a9fc0..ac4f280ff 100644 --- a/ui/src/views/hit-test/index.vue +++ b/ui/src/views/hit-test/index.vue @@ -8,14 +8,14 @@
-
+
-

111111

+

{{ questionTitle }}

@@ -41,9 +41,25 @@ :showIcon="false" @click="editParagraph(item)" > +
{{ (item.similarity * 100).toFixed(2) }}%
@@ -53,7 +69,7 @@
- +
@@ -121,17 +137,13 @@