fix: 完善工作流图片参数流转
- 图片参数使用 Object 类型并过滤上游图片引用 - 试运行支持上传、URL 和素材库图片输入 - 将模型图片能力映射到运行配置
This commit is contained in:
@@ -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]"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user