fix: 完善工作流图片参数流转

- 图片参数使用 Object 类型并过滤上游图片引用

- 试运行支持上传、URL 和素材库图片输入

- 将模型图片能力映射到运行配置
This commit is contained in:
2026-07-31 14:51:07 +08:00
parent fb08424cef
commit 4a0efe8879
18 changed files with 924 additions and 50 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import { ref, watch } from 'vue';
import { computed, ref, watch } from 'vue';
import { EasyFlowPanelModal } from '@easyflow/common-ui';
@@ -18,6 +18,10 @@ const props = defineProps({
type: Boolean,
default: false,
},
resourceType: {
type: Number,
default: undefined,
},
});
const emit = defineEmits(['choose']);
@@ -26,6 +30,12 @@ const pageDataRef = ref();
const dialogVisible = ref(false);
const chooseResources = ref([]);
const currentChoose = ref<any>({});
const pageUrl = computed(() => {
const baseUrl = '/api/v1/resource/page';
return props.resourceType === undefined
? baseUrl
: `${baseUrl}?resourceType=${props.resourceType}`;
});
function openDialog() {
dialogVisible.value = true;
}
@@ -54,7 +64,7 @@ watch(
>
<PageData
ref="pageDataRef"
page-url="/api/v1/resource/page"
:page-url="pageUrl"
:page-size="8"
:page-sizes="[8, 12, 16, 20]"
>