File tree Expand file tree Collapse file tree 1 file changed +22
-4
lines changed
ui/src/views/system-resource-management Expand file tree Collapse file tree 1 file changed +22
-4
lines changed Original file line number Diff line number Diff line change 1818 <el-option :label =" $t('common.creator')" value =" create_user" />
1919 <el-option :label =" $t('common.name')" value =" name" />
2020 <el-option :label =" $t('common.type')" value =" tool_type" />
21+ <el-option :label =" $t('views.tool.form.source.label')" value =" source" />
2122 </el-select >
2223 <el-input
2324 v-if =" search_type === 'name'"
4748 >
4849 <el-option v-for =" u in type_options" :key =" u.id" :value =" u.value" :label =" u.label" />
4950 </el-select >
51+ <el-select
52+ v-else-if =" search_type === 'source'"
53+ v-model =" search_form.source"
54+ @change =" getList"
55+ clearable
56+ filterable
57+ style =" width : 220px "
58+ >
59+ <el-option v-for =" u in source_options" :key =" u.id" :value =" u.value" :label =" u.label" />
60+ </el-select >
5061 </div >
5162 </div >
5263
@@ -377,6 +388,7 @@ const search_form = ref<any>({
377388 name: ' ' ,
378389 create_user: ' ' ,
379390 tool_type: ' ' ,
391+ source: ' ' ,
380392})
381393const user_options = ref <any []>([])
382394const type_options = ref <any []>([
@@ -385,12 +397,18 @@ const type_options = ref<any[]>([
385397 value: ' MCP' ,
386398 },
387399 {
388- label: t (' views.tool.toolStore .title' ),
389- value: ' TOOL_STORE ' ,
400+ label: t (' views.tool.dataSource .title' ),
401+ value: ' DATA_SOURCE ' ,
390402 },
391403 {
392- label: t (' views.tool.toolStore.internal' ),
393- value: ' INTERNAL' ,
404+ label: t (' views.tool.title' ),
405+ value: ' CUSTOM' ,
406+ },
407+ ])
408+ const source_options = ref <any []>([
409+ {
410+ label: t (' views.tool.toolStore.title' ),
411+ value: ' TOOL_STORE' ,
394412 },
395413 {
396414 label: t (' common.custom' ),
You can’t perform that action at this time.
0 commit comments