更改表单模型类型逻辑
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<template>
|
||||
<template>
|
||||
<el-dialog v-model="visible" title="选择模型" width="1000px" :close-on-click-modal="false" @close="handleClose">
|
||||
<div class="model-selector-header">
|
||||
<div class="search-bar">
|
||||
@@ -127,6 +127,7 @@ interface ModelItem {
|
||||
interface Props {
|
||||
modelValue: boolean;
|
||||
defaultModel?: ModelItem | null;
|
||||
modelType?: number;
|
||||
}
|
||||
|
||||
interface Emits {
|
||||
@@ -137,6 +138,7 @@ interface Emits {
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
modelValue: false,
|
||||
defaultModel: null,
|
||||
modelType: 1,
|
||||
});
|
||||
|
||||
const emit = defineEmits<Emits>();
|
||||
@@ -207,7 +209,7 @@ const fetchModelList = async () => {
|
||||
pageNum: pagination.pageNum,
|
||||
pageSize: pagination.pageSize,
|
||||
modelName: searchParams.modelName || undefined,
|
||||
modelType: 1, // 只获取推理模型
|
||||
modelType: props.modelType, // 使用传入的 modelType
|
||||
};
|
||||
const res: any = await getModelModuleList(params);
|
||||
modelList.value = res.data?.list || [];
|
||||
|
||||
Reference in New Issue
Block a user