File tree Expand file tree Collapse file tree 2 files changed +56
-4
lines changed
ui/src/views/system-resource-management Expand file tree Collapse file tree 2 files changed +56
-4
lines changed Original file line number Diff line number Diff line change 1616 @change =" search_type_change"
1717 >
1818 <el-option :label =" $t('common.creator')" value =" create_user" />
19-
2019 <el-option :label =" $t('common.name')" value =" name" />
20+ <el-option :label =" $t('views.system.resource_management.type')" value =" type" />
2121 </el-select >
2222 <el-input
2323 v-if =" search_type === 'name'"
3737 >
3838 <el-option v-for =" u in user_options" :key =" u.id" :value =" u.id" :label =" u.nick_name" />
3939 </el-select >
40+ <el-select
41+ v-else-if =" search_type === 'type'"
42+ v-model =" search_form.type"
43+ @change =" getList"
44+ clearable
45+ filterable
46+ style =" width : 220px "
47+ >
48+ <el-option v-for =" u in type_options" :value =" u.value" :label =" u.label" />
49+ </el-select >
4050 </div >
4151 </div >
4252
@@ -312,9 +322,23 @@ const search_type = ref('name')
312322const search_form = ref <any >({
313323 name: ' ' ,
314324 create_user: ' ' ,
325+ type: ' ' ,
315326})
316327const user_options = ref <any []>([])
317-
328+ const type_options = ref <any []>([
329+ {
330+ label: t (' views.knowledge.knowledgeType.generalKnowledge' ),
331+ value: ' 0' ,
332+ },
333+ {
334+ label: t (' views.knowledge.knowledgeType.webKnowledge' ),
335+ value: ' 1' ,
336+ },
337+ {
338+ label: t (' views.knowledge.knowledgeType.larkKnowledge' ),
339+ value: ' 2' ,
340+ },
341+ ])
318342const loading = ref (false )
319343const knowledgeList = ref <any []>([])
320344const paginationConfig = reactive ({
Original file line number Diff line number Diff line change 1616 @change =" search_type_change"
1717 >
1818 <el-option :label =" $t('common.creator')" value =" create_user" />
19-
2019 <el-option :label =" $t('views.tool.form.toolName.label')" value =" name" />
20+ <el-option :label =" $t('views.system.resource_management.type')" value =" tool_type" />
2121 </el-select >
2222 <el-input
2323 v-if =" search_type === 'name'"
3737 >
3838 <el-option v-for =" u in user_options" :key =" u.id" :value =" u.id" :label =" u.nick_name" />
3939 </el-select >
40+ <el-select
41+ v-else-if =" search_type === 'tool_type'"
42+ v-model =" search_form.tool_type"
43+ @change =" getList"
44+ clearable
45+ filterable
46+ style =" width : 220px "
47+ >
48+ <el-option v-for =" u in type_options" :value =" u.value" :label =" u.label" />
49+ </el-select >
4050 </div >
4151 </div >
4252
@@ -346,9 +356,27 @@ const search_type = ref('name')
346356const search_form = ref <any >({
347357 name: ' ' ,
348358 create_user: ' ' ,
359+ tool_type: ' ' ,
349360})
350361const user_options = ref <any []>([])
351-
362+ const type_options = ref <any []>([
363+ {
364+ label: ' MCP' ,
365+ value: ' MCP' ,
366+ },
367+ {
368+ label: t (' views.tool.toolStore.title' ),
369+ value: ' TOOL_STORE' ,
370+ },
371+ {
372+ label: t (' views.tool.toolStore.internal' ),
373+ value: ' INTERNAL' ,
374+ },
375+ {
376+ label: t (' common.custom' ),
377+ value: ' CUSTOM' ,
378+ },
379+ ])
352380const loading = ref (false )
353381const changeStateloading = ref (false )
354382const toolList = ref <any []>([])
You can’t perform that action at this time.
0 commit comments