mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
feat: Execution details record
This commit is contained in:
parent
778d379cc5
commit
d3e88eae29
|
|
@ -129,4 +129,12 @@ export default {
|
|||
variable: 'Variable',
|
||||
allCheck: 'Select All',
|
||||
type: 'Type',
|
||||
pages: {
|
||||
prev: 'Previous',
|
||||
next: 'Next',
|
||||
},
|
||||
steps: {
|
||||
prev: 'Previous',
|
||||
next: 'Next',
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@ export default {
|
|||
delete: {
|
||||
confirmTitle: 'Confirm deletion of question:',
|
||||
confirmMessage1: 'Deleting this question will cancel the association of',
|
||||
confirmMessage2: 'segments. Please proceed with caution.'
|
||||
confirmMessage2: 'segments. Please proceed with caution.',
|
||||
},
|
||||
buttons: {
|
||||
clearStrategy: 'Cleanup Strategy',
|
||||
prev: 'Previous',
|
||||
next: 'Next'
|
||||
},
|
||||
table: {
|
||||
abstract: 'Title',
|
||||
|
|
@ -18,10 +16,10 @@ export default {
|
|||
feedback: {
|
||||
label: 'User Feedback',
|
||||
star: 'Agree',
|
||||
trample: 'Disagree'
|
||||
trample: 'Disagree',
|
||||
},
|
||||
mark: 'Marks',
|
||||
recenTimes: 'Last Chat Time'
|
||||
recenTimes: 'Last Chat Time',
|
||||
},
|
||||
addToKnowledge: 'Add to Knowledge',
|
||||
daysText: 'Days ago',
|
||||
|
|
@ -33,10 +31,10 @@ export default {
|
|||
editMark: 'Edit Label',
|
||||
form: {
|
||||
content: {
|
||||
placeholder: 'Please enter the content'
|
||||
placeholder: 'Please enter the content',
|
||||
},
|
||||
title: {
|
||||
placeholder: 'Please set a title for the current content for management and viewing'
|
||||
}
|
||||
}
|
||||
placeholder: 'Please set a title for the current content for management and viewing',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,8 +92,6 @@ export default {
|
|||
},
|
||||
},
|
||||
buttons: {
|
||||
prev: 'Previous',
|
||||
next: 'Next',
|
||||
import: 'Start Import',
|
||||
preview: 'Apply',
|
||||
continueImporting: 'Continue Importing Documents',
|
||||
|
|
|
|||
|
|
@ -130,4 +130,12 @@ export default {
|
|||
variable: '变量',
|
||||
allCheck: '全选',
|
||||
type: '类型',
|
||||
pages: {
|
||||
prev: '上一条',
|
||||
next: '下一条',
|
||||
},
|
||||
steps: {
|
||||
prev: '上一步',
|
||||
next: '下一步',
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,8 +7,6 @@ export default {
|
|||
},
|
||||
buttons: {
|
||||
clearStrategy: '清除策略',
|
||||
prev: '上一条',
|
||||
next: '下一条'
|
||||
},
|
||||
table: {
|
||||
abstract: '摘要',
|
||||
|
|
|
|||
|
|
@ -88,8 +88,6 @@ export default {
|
|||
},
|
||||
},
|
||||
buttons: {
|
||||
prev: '上一步',
|
||||
next: '下一步',
|
||||
import: '开始导入',
|
||||
preview: '生成预览',
|
||||
continueImporting: '继续导入文档',
|
||||
|
|
|
|||
|
|
@ -128,4 +128,12 @@ export default {
|
|||
variable: '變量',
|
||||
allCheck: '全選',
|
||||
type: '類型',
|
||||
pages: {
|
||||
prev: '上一條',
|
||||
next: '下一條',
|
||||
},
|
||||
steps: {
|
||||
prev: '上一步',
|
||||
next: '下一步',
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,12 +3,10 @@ export default {
|
|||
delete: {
|
||||
confirmTitle: '是否刪除問題:',
|
||||
confirmMessage1: '刪除問題關聯的',
|
||||
confirmMessage2: '個分段會被取消關聯,請謹慎操作。'
|
||||
confirmMessage2: '個分段會被取消關聯,請謹慎操作。',
|
||||
},
|
||||
buttons: {
|
||||
clearStrategy: '清除策略',
|
||||
prev: '上一條',
|
||||
next: '下一條'
|
||||
},
|
||||
table: {
|
||||
abstract: '摘要',
|
||||
|
|
@ -18,10 +16,10 @@ export default {
|
|||
feedback: {
|
||||
label: '用戶反饋',
|
||||
star: '贊同',
|
||||
trample: '反對'
|
||||
trample: '反對',
|
||||
},
|
||||
mark: '改進標註',
|
||||
recenTimes: '最近對話時間'
|
||||
recenTimes: '最近對話時間',
|
||||
},
|
||||
addToKnowledge: '添加至知識庫',
|
||||
daysText: '天之前的對話記錄',
|
||||
|
|
@ -33,10 +31,10 @@ export default {
|
|||
editMark: '修改標註',
|
||||
form: {
|
||||
content: {
|
||||
placeholder: '請輸入內容'
|
||||
placeholder: '請輸入內容',
|
||||
},
|
||||
title: {
|
||||
placeholder: '請給當前內容設定一個標題,以便管理查看'
|
||||
}
|
||||
}
|
||||
placeholder: '請給當前內容設定一個標題,以便管理查看',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -90,8 +90,6 @@ export default {
|
|||
},
|
||||
},
|
||||
buttons: {
|
||||
prev: '上一步',
|
||||
next: '下一步',
|
||||
import: '開始導入',
|
||||
preview: '生成預覽',
|
||||
continueImporting: '繼續導入文檔',
|
||||
|
|
|
|||
|
|
@ -20,10 +20,10 @@
|
|||
<template #footer>
|
||||
<div>
|
||||
<el-button @click="pre" :disabled="pre_disable || loading">{{
|
||||
$t('views.chatLog.buttons.prev')
|
||||
$t('common.pages.prev')
|
||||
}}</el-button>
|
||||
<el-button @click="next" :disabled="next_disable || loading">{{
|
||||
$t('views.chatLog.buttons.next')
|
||||
$t('common.pages.next')
|
||||
}}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -33,14 +33,14 @@
|
|||
:loading="loading"
|
||||
@click="up"
|
||||
>
|
||||
{{ $t('views.document.buttons.prev') }}</el-button
|
||||
{{ $t('common.steps.prev') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 && active == 'data_source'"
|
||||
:disabled="loading"
|
||||
@click="next"
|
||||
>
|
||||
{{ $t('views.document.buttons.next') }}
|
||||
{{ $t('common.steps.next') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@
|
|||
$t('common.cancel')
|
||||
}}</el-button>
|
||||
<el-button @click="prev" v-if="active === 1" :disabled="SetRulesRef?.loading || loading">{{
|
||||
$t('views.document.buttons.prev')
|
||||
$t('common.steps.prev')
|
||||
}}</el-button>
|
||||
<el-button
|
||||
@click="next"
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
>
|
||||
{{
|
||||
documentsType === 'txt'
|
||||
? $t('views.document.buttons.next')
|
||||
? $t('common.steps.next')
|
||||
: $t('views.document.buttons.import')
|
||||
}}
|
||||
</el-button>
|
||||
|
|
|
|||
|
|
@ -30,14 +30,14 @@
|
|||
:loading="loading"
|
||||
@click="up"
|
||||
>
|
||||
{{ $t('views.document.buttons.prev') }}</el-button
|
||||
{{ $t('common.steps.prev') }}</el-button
|
||||
>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 && active == 'data_source'"
|
||||
:loading="loading"
|
||||
@click="next"
|
||||
>
|
||||
{{ $t('views.document.buttons.next') }}
|
||||
{{ $t('common.steps.next') }}
|
||||
</el-button>
|
||||
<el-button
|
||||
v-if="base_form_list.length > 0 ? active == 'knowledge_base' : active == 'data_source'"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,109 @@
|
|||
<template>
|
||||
<el-drawer v-model="visible" size="60%" @close="closeHandle">
|
||||
<template #header>
|
||||
<h4>{{ $t('views.problem.detailProblem') }}</h4>
|
||||
</template>
|
||||
<div>
|
||||
<el-scrollbar>
|
||||
<!-- <Result v-model:loading="loading" :knowledge_id="id" :id="action_id" /> -->
|
||||
</el-scrollbar>
|
||||
</div>
|
||||
<template #footer>
|
||||
<div>
|
||||
<el-button @click="pre" :disabled="pre_disable || loading">{{
|
||||
$t('common.pages.prev')
|
||||
}}</el-button>
|
||||
<el-button @click="next" :disabled="next_disable || loading">{{
|
||||
$t('common.pages.next')
|
||||
}}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-drawer>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { ref, reactive, computed, watch } from 'vue'
|
||||
import { useRoute } from 'vue-router'
|
||||
import Result from '@/views/knowledge-workflow/component/action/Result.vue'
|
||||
import { MsgSuccess, MsgConfirm, MsgError } from '@/utils/message'
|
||||
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
|
||||
import permissionMap from '@/permission'
|
||||
import { t } from '@/locales'
|
||||
const props = withDefaults(
|
||||
defineProps<{
|
||||
/**
|
||||
* 当前的id
|
||||
*/
|
||||
currentId: string
|
||||
currentContent: string
|
||||
/**
|
||||
* 下一条
|
||||
*/
|
||||
next: () => void
|
||||
/**
|
||||
* 上一条
|
||||
*/
|
||||
pre: () => void
|
||||
|
||||
pre_disable: boolean
|
||||
|
||||
next_disable: boolean
|
||||
}>(),
|
||||
{},
|
||||
)
|
||||
|
||||
const emit = defineEmits(['update:currentId', 'update:currentContent', 'refresh'])
|
||||
|
||||
const route = useRoute()
|
||||
const {
|
||||
params: { id },
|
||||
} = route
|
||||
|
||||
const apiType = computed(() => {
|
||||
if (route.path.includes('shared')) {
|
||||
return 'systemShare'
|
||||
} else if (route.path.includes('resource-management')) {
|
||||
return 'systemManage'
|
||||
} else {
|
||||
return 'workspace'
|
||||
}
|
||||
})
|
||||
|
||||
const loading = ref(false)
|
||||
const visible = ref(false)
|
||||
const action_id = ref<string>('')
|
||||
|
||||
function closeHandle() {
|
||||
action_id.value = ''
|
||||
}
|
||||
|
||||
function getRecord() {
|
||||
if (props.currentId && visible.value) {
|
||||
}
|
||||
}
|
||||
|
||||
watch(
|
||||
() => props.currentId,
|
||||
() => {
|
||||
action_id.value = ''
|
||||
},
|
||||
)
|
||||
|
||||
watch(visible, (bool) => {
|
||||
if (!bool) {
|
||||
emit('update:currentId', '')
|
||||
emit('update:currentContent', '')
|
||||
emit('refresh')
|
||||
}
|
||||
})
|
||||
|
||||
const open = (id: string) => {
|
||||
action_id.value = id
|
||||
visible.value = true
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
open,
|
||||
})
|
||||
</script>
|
||||
<style lang="scss"></style>
|
||||
|
|
@ -74,10 +74,10 @@
|
|||
$t('views.problem.relateParagraph.title')
|
||||
}}</el-button>
|
||||
<el-button @click="pre" :disabled="pre_disable || loading">{{
|
||||
$t('views.chatLog.buttons.prev')
|
||||
$t('common.pages.prev')
|
||||
}}</el-button>
|
||||
<el-button @click="next" :disabled="next_disable || loading">{{
|
||||
$t('views.chatLog.buttons.next')
|
||||
$t('common.pages.next')
|
||||
}}</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Reference in New Issue