mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
feat: simplify tool type display logic in resource index
--bug=1064279 --user=刘瑞斌 【资源管理】工具列表缺少来源字段 https://www.tapd.cn/62980211/s/1807766
This commit is contained in:
parent
d33dd458cf
commit
6d24d66b9d
|
|
@ -94,16 +94,13 @@
|
|||
<template #default="scope">
|
||||
<span v-if="scope.row.tool_type === 'MCP'"> MCP </span>
|
||||
<span v-else-if="scope.row.tool_type === 'DATA_SOURCE'"> {{ $t('views.tool.dataSource.title') }} </span>
|
||||
<span v-else-if="scope.row.template_id">{{ $t('views.tool.toolStore.title') }}</span>
|
||||
<span v-else>
|
||||
{{
|
||||
$t(
|
||||
ToolType[
|
||||
scope.row.template_id ? 'INTERNAL' : ('CUSTOM' as keyof typeof ToolType)
|
||||
],
|
||||
)
|
||||
}}
|
||||
</span>
|
||||
<span v-else> {{ $t('views.tool.title') }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="source" :label="$t('views.tool.form.source.label')">
|
||||
<template #default="scope">
|
||||
<span v-if="scope.row.template_id">{{ $t('views.tool.toolStore.title') }}</span>
|
||||
<span v-else> {{ $t( ToolType['CUSTOM'] ) }} </span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column :label="$t('common.status.label')" width="120">
|
||||
|
|
|
|||
Loading…
Reference in New Issue