fix: exercution detail
This commit is contained in:
parent
b352e495a1
commit
8a6bac396b
@ -43,7 +43,8 @@
|
|||||||
<KnowledgeSourceComponent
|
<KnowledgeSourceComponent
|
||||||
:data="chatRecord"
|
:data="chatRecord"
|
||||||
:application="application"
|
:application="application"
|
||||||
:type="application.type"
|
:type="type"
|
||||||
|
:appType="application.type"
|
||||||
:executionIsRightPanel="props.executionIsRightPanel"
|
:executionIsRightPanel="props.executionIsRightPanel"
|
||||||
@open-execution-detail="emit('openExecutionDetail')"
|
@open-execution-detail="emit('openExecutionDetail')"
|
||||||
@openParagraph="emit('openParagraph')"
|
@openParagraph="emit('openParagraph')"
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<el-scrollbar>
|
<el-scrollbar>
|
||||||
<div class="execution-details p-8">
|
<div class="execution-details p-8">
|
||||||
<template v-if="isWorkFlow(props.type)" v-for="(item, index) in arraySort(props.detail ?? [], 'index')"
|
<template v-if="isWorkFlow(props.appType)" v-for="(item, index) in arraySort(props.detail ?? [], 'index')"
|
||||||
:key="index">
|
:key="index">
|
||||||
<el-card class="mb-8" shadow="never" style="--el-card-padding: 12px 16px">
|
<el-card class="mb-8" shadow="never" style="--el-card-padding: 12px 16px">
|
||||||
<div class="flex-between cursor" @click="item['show'] = !item['show']">
|
<div class="flex-between cursor" @click="item['show'] = !item['show']">
|
||||||
@ -633,7 +633,7 @@ import { isWorkFlow } from '@/utils/application'
|
|||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
detail?: any[]
|
detail?: any[]
|
||||||
type?: string
|
appType?: string
|
||||||
}>()
|
}>()
|
||||||
|
|
||||||
console.log(props)
|
console.log(props)
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div class="chat-knowledge-source">
|
<div class="chat-knowledge-source">
|
||||||
<div
|
<div
|
||||||
class="flex align-center mt-16"
|
class="flex align-center mt-16"
|
||||||
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_source"
|
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_source"
|
||||||
>
|
>
|
||||||
<span class="mr-4 color-secondary">{{ $t('chat.KnowledgeSource.title') }}</span>
|
<span class="mr-4 color-secondary">{{ $t('chat.KnowledgeSource.title') }}</span>
|
||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical" />
|
||||||
@ -12,9 +12,10 @@
|
|||||||
{{ data.paragraph_list?.length || 0 }}</el-button
|
{{ data.paragraph_list?.length || 0 }}</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
class="mt-8"
|
class="mt-8"
|
||||||
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_source"
|
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_source"
|
||||||
>
|
>
|
||||||
<el-row :gutter="8" v-if="uniqueParagraphList?.length">
|
<el-row :gutter="8" v-if="uniqueParagraphList?.length">
|
||||||
<template v-for="(item, index) in uniqueParagraphList" :key="index">
|
<template v-for="(item, index) in uniqueParagraphList" :key="index">
|
||||||
@ -50,7 +51,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div
|
<div
|
||||||
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_exec"
|
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_exec"
|
||||||
class="execution-details border-t color-secondary flex-between mt-12"
|
class="execution-details border-t color-secondary flex-between mt-12"
|
||||||
style="padding-top: 12px; padding-bottom: 8px"
|
style="padding-top: 12px; padding-bottom: 8px"
|
||||||
>
|
>
|
||||||
@ -102,7 +103,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="mb-8">
|
<div class="mb-8">
|
||||||
<component :is="currentComponent" :detail="currentChatDetail" :type="type"></component>
|
<component :is="currentComponent" :detail="currentChatDetail" :appType="appType"></component>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
@ -125,6 +126,10 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
default: '',
|
default: '',
|
||||||
},
|
},
|
||||||
|
appType: {
|
||||||
|
type: String,
|
||||||
|
default: '',
|
||||||
|
},
|
||||||
executionIsRightPanel: {
|
executionIsRightPanel: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
required: false,
|
required: false,
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="folder-tree">
|
<div class="folder-tree">
|
||||||
<el-input
|
<el-input
|
||||||
v-model.trim="filterText"
|
v-model="filterText"
|
||||||
:placeholder="$t('common.search')"
|
:placeholder="$t('common.search')"
|
||||||
prefix-icon="Search"
|
prefix-icon="Search"
|
||||||
clearable
|
clearable
|
||||||
|
|||||||
@ -124,7 +124,6 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="nick_name"
|
prop="nick_name"
|
||||||
:label="$t('views.userManage.userForm.nick_name.label')"
|
:label="$t('views.userManage.userForm.nick_name.label')"
|
||||||
show-overflow-tooltip
|
|
||||||
/>
|
/>
|
||||||
<el-table-column prop="username" :label="$t('views.login.loginForm.username.label')" />
|
<el-table-column prop="username" :label="$t('views.login.loginForm.username.label')" />
|
||||||
<el-table-column prop="source" :label="$t('views.userManage.source.label')">
|
<el-table-column prop="source" :label="$t('views.userManage.source.label')">
|
||||||
@ -133,14 +132,14 @@
|
|||||||
row.source === 'LOCAL'
|
row.source === 'LOCAL'
|
||||||
? $t('views.userManage.source.local')
|
? $t('views.userManage.source.local')
|
||||||
: row.source === 'wecom'
|
: row.source === 'wecom'
|
||||||
? $t('views.userManage.source.wecom')
|
? $t('views.userManage.source.wecom')
|
||||||
: row.source === 'lark'
|
: row.source === 'lark'
|
||||||
? $t('views.userManage.source.lark')
|
? $t('views.userManage.source.lark')
|
||||||
: row.source === 'dingtalk'
|
: row.source === 'dingtalk'
|
||||||
? $t('views.userManage.source.dingtalk')
|
? $t('views.userManage.source.dingtalk')
|
||||||
: row.source === 'OAUTH2' || row.source === 'OAuth2'
|
: row.source === 'OAUTH2' || row.source === 'OAuth2'
|
||||||
? 'OAuth2'
|
? 'OAuth2'
|
||||||
: row.source
|
: row.source
|
||||||
}}
|
}}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -347,23 +346,24 @@ function handleSizeChange() {
|
|||||||
getList()
|
getList()
|
||||||
}
|
}
|
||||||
|
|
||||||
watch(() => current.value?.id, () => {
|
watch(
|
||||||
paginationConfig.current_page = 1
|
() => current.value?.id,
|
||||||
getList()
|
() => {
|
||||||
})
|
paginationConfig.current_page = 1
|
||||||
|
getList()
|
||||||
const allChecked = computed(() =>
|
},
|
||||||
tableData.value.length > 0 &&
|
|
||||||
tableData.value.every(item => checkedMap[item.id])
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const allIndeterminate = computed(() =>
|
const allChecked = computed(
|
||||||
!allChecked.value &&
|
() => tableData.value.length > 0 && tableData.value.every((item) => checkedMap[item.id]),
|
||||||
tableData.value.some(item => checkedMap[item.id])
|
)
|
||||||
|
|
||||||
|
const allIndeterminate = computed(
|
||||||
|
() => !allChecked.value && tableData.value.some((item) => checkedMap[item.id]),
|
||||||
)
|
)
|
||||||
|
|
||||||
const handleCheckAll = (checked: boolean) => {
|
const handleCheckAll = (checked: boolean) => {
|
||||||
tableData.value.forEach(item => {
|
tableData.value.forEach((item) => {
|
||||||
item.is_auth = checked
|
item.is_auth = checked
|
||||||
checkedMap[item.id] = checked
|
checkedMap[item.id] = checked
|
||||||
})
|
})
|
||||||
|
|||||||
@ -101,9 +101,15 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="nick_name"
|
prop="nick_name"
|
||||||
:label="$t('views.userManage.userForm.nick_name.label')"
|
:label="$t('views.userManage.userForm.nick_name.label')"
|
||||||
|
min-width="180"
|
||||||
|
show-overflow-tooltip
|
||||||
|
/>
|
||||||
|
<el-table-column
|
||||||
|
prop="username"
|
||||||
|
:label="$t('common.username')"
|
||||||
|
min-width="180"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
/>
|
/>
|
||||||
<el-table-column prop="username" :label="$t('common.username')" show-overflow-tooltip />
|
|
||||||
<el-table-column prop="is_active" :label="$t('common.status.label')" width="100">
|
<el-table-column prop="is_active" :label="$t('common.status.label')" width="100">
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<div v-if="row.is_active" class="flex align-center">
|
<div v-if="row.is_active" class="flex align-center">
|
||||||
@ -127,6 +133,7 @@
|
|||||||
prop="email"
|
prop="email"
|
||||||
:label="$t('views.login.loginForm.email.label')"
|
:label="$t('views.login.loginForm.email.label')"
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
|
min-width="180"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ row.email || '-' }}
|
{{ row.email || '-' }}
|
||||||
@ -144,7 +151,7 @@
|
|||||||
<el-table-column
|
<el-table-column
|
||||||
prop="user_group_names"
|
prop="user_group_names"
|
||||||
:label="$t('views.chatUser.group.title')"
|
:label="$t('views.chatUser.group.title')"
|
||||||
min-width="120"
|
min-width="150"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<TagGroup :tags="row.user_group_names" />
|
<TagGroup :tags="row.user_group_names" />
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user