Skip to content

Commit 8a6bac3

Browse files
fix: exercution detail
1 parent b352e49 commit 8a6bac3

File tree

6 files changed

+43
-30
lines changed

6 files changed

+43
-30
lines changed

ui/src/components/ai-chat/component/answer-content/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@
4343
<KnowledgeSourceComponent
4444
:data="chatRecord"
4545
:application="application"
46-
:type="application.type"
46+
:type="type"
47+
:appType="application.type"
4748
:executionIsRightPanel="props.executionIsRightPanel"
4849
@open-execution-detail="emit('openExecutionDetail')"
4950
@openParagraph="emit('openParagraph')"

ui/src/components/ai-chat/component/knowledge-source-component/ExecutionDetailContent.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<el-scrollbar>
33
<div class="execution-details p-8">
4-
<template v-if="isWorkFlow(props.type)" v-for="(item, index) in arraySort(props.detail ?? [], 'index')"
4+
<template v-if="isWorkFlow(props.appType)" v-for="(item, index) in arraySort(props.detail ?? [], 'index')"
55
:key="index">
66
<el-card class="mb-8" shadow="never" style="--el-card-padding: 12px 16px">
77
<div class="flex-between cursor" @click="item['show'] = !item['show']">
@@ -633,7 +633,7 @@ import { isWorkFlow } from '@/utils/application'
633633
634634
const props = defineProps<{
635635
detail?: any[]
636-
type?: string
636+
appType?: string
637637
}>()
638638
639639
console.log(props)

ui/src/components/ai-chat/component/knowledge-source-component/index.vue

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div class="chat-knowledge-source">
33
<div
44
class="flex align-center mt-16"
5-
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_source"
5+
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_source"
66
>
77
<span class="mr-4 color-secondary">{{ $t('chat.KnowledgeSource.title') }}</span>
88
<el-divider direction="vertical" />
@@ -12,9 +12,10 @@
1212
{{ data.paragraph_list?.length || 0 }}</el-button
1313
>
1414
</div>
15+
1516
<div
1617
class="mt-8"
17-
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_source"
18+
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_source"
1819
>
1920
<el-row :gutter="8" v-if="uniqueParagraphList?.length">
2021
<template v-for="(item, index) in uniqueParagraphList" :key="index">
@@ -50,7 +51,7 @@
5051
</div>
5152

5253
<div
53-
v-if="type === 'log' || type === 'debug-ai-chat' ? true : application.show_exec"
54+
v-if="(type === 'log' || type === 'debug-ai-chat') ? true : application.show_exec"
5455
class="execution-details border-t color-secondary flex-between mt-12"
5556
style="padding-top: 12px; padding-bottom: 8px"
5657
>
@@ -102,7 +103,7 @@
102103
</div>
103104
</template>
104105
<div class="mb-8">
105-
<component :is="currentComponent" :detail="currentChatDetail" :type="type"></component>
106+
<component :is="currentComponent" :detail="currentChatDetail" :appType="appType"></component>
106107
</div>
107108
</el-dialog>
108109
</div>
@@ -125,6 +126,10 @@ const props = defineProps({
125126
type: String,
126127
default: '',
127128
},
129+
appType: {
130+
type: String,
131+
default: '',
132+
},
128133
executionIsRightPanel: {
129134
type: Boolean,
130135
required: false,

ui/src/components/folder-tree/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="folder-tree">
33
<el-input
4-
v-model.trim="filterText"
4+
v-model="filterText"
55
:placeholder="$t('common.search')"
66
prefix-icon="Search"
77
clearable

ui/src/views/chat-user/index.vue

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@
124124
<el-table-column
125125
prop="nick_name"
126126
:label="$t('views.userManage.userForm.nick_name.label')"
127-
show-overflow-tooltip
128127
/>
129128
<el-table-column prop="username" :label="$t('views.login.loginForm.username.label')" />
130129
<el-table-column prop="source" :label="$t('views.userManage.source.label')">
@@ -133,14 +132,14 @@
133132
row.source === 'LOCAL'
134133
? $t('views.userManage.source.local')
135134
: row.source === 'wecom'
136-
? $t('views.userManage.source.wecom')
137-
: row.source === 'lark'
138-
? $t('views.userManage.source.lark')
139-
: row.source === 'dingtalk'
140-
? $t('views.userManage.source.dingtalk')
141-
: row.source === 'OAUTH2' || row.source === 'OAuth2'
142-
? 'OAuth2'
143-
: row.source
135+
? $t('views.userManage.source.wecom')
136+
: row.source === 'lark'
137+
? $t('views.userManage.source.lark')
138+
: row.source === 'dingtalk'
139+
? $t('views.userManage.source.dingtalk')
140+
: row.source === 'OAUTH2' || row.source === 'OAuth2'
141+
? 'OAuth2'
142+
: row.source
144143
}}
145144
</template>
146145
</el-table-column>
@@ -347,23 +346,24 @@ function handleSizeChange() {
347346
getList()
348347
}
349348
350-
watch(() => current.value?.id, () => {
351-
paginationConfig.current_page = 1
352-
getList()
353-
})
349+
watch(
350+
() => current.value?.id,
351+
() => {
352+
paginationConfig.current_page = 1
353+
getList()
354+
},
355+
)
354356
355-
const allChecked = computed(() =>
356-
tableData.value.length > 0 &&
357-
tableData.value.every(item => checkedMap[item.id])
357+
const allChecked = computed(
358+
() => tableData.value.length > 0 && tableData.value.every((item) => checkedMap[item.id]),
358359
)
359360
360-
const allIndeterminate = computed(() =>
361-
!allChecked.value &&
362-
tableData.value.some(item => checkedMap[item.id])
361+
const allIndeterminate = computed(
362+
() => !allChecked.value && tableData.value.some((item) => checkedMap[item.id]),
363363
)
364364
365365
const handleCheckAll = (checked: boolean) => {
366-
tableData.value.forEach(item => {
366+
tableData.value.forEach((item) => {
367367
item.is_auth = checked
368368
checkedMap[item.id] = checked
369369
})

ui/src/views/system-chat-user/chat-user/index.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,15 @@
101101
<el-table-column
102102
prop="nick_name"
103103
:label="$t('views.userManage.userForm.nick_name.label')"
104+
min-width="180"
105+
show-overflow-tooltip
106+
/>
107+
<el-table-column
108+
prop="username"
109+
:label="$t('common.username')"
110+
min-width="180"
104111
show-overflow-tooltip
105112
/>
106-
<el-table-column prop="username" :label="$t('common.username')" show-overflow-tooltip />
107113
<el-table-column prop="is_active" :label="$t('common.status.label')" width="100">
108114
<template #default="{ row }">
109115
<div v-if="row.is_active" class="flex align-center">
@@ -127,6 +133,7 @@
127133
prop="email"
128134
:label="$t('views.login.loginForm.email.label')"
129135
show-overflow-tooltip
136+
min-width="180"
130137
>
131138
<template #default="{ row }">
132139
{{ row.email || '-' }}
@@ -144,7 +151,7 @@
144151
<el-table-column
145152
prop="user_group_names"
146153
:label="$t('views.chatUser.group.title')"
147-
min-width="120"
154+
min-width="150"
148155
>
149156
<template #default="{ row }">
150157
<TagGroup :tags="row.user_group_names" />

0 commit comments

Comments
 (0)