Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/FiDA_Front

This commit is contained in:
2026-03-02 11:29:10 +08:00
5 changed files with 16 additions and 16 deletions

View File

@@ -41,15 +41,15 @@
type: NODE_DATATYPE.COLOR_PALETTE, type: NODE_DATATYPE.COLOR_PALETTE,
title: 'Color Palette' title: 'Color Palette'
}, },
{
tier: NODE_DATATIER.TO_3VIEW,
type: NODE_DATATYPE.TO_3VIEW,
title: 'To 3-View'
},
{ {
tier: NODE_DATATIER.TO_3D_MODEL, tier: NODE_DATATIER.TO_3D_MODEL,
type: NODE_DATATYPE.TO_3D_MODEL, type: NODE_DATATYPE.TO_3D_MODEL,
title: 'To 3D Model' title: 'To 3D Model'
},
{
tier: NODE_DATATIER.TO_3VIEW,
type: NODE_DATATYPE.TO_3VIEW,
title: 'To 3-View'
} }
]) ])
const onClickItem = (v) => { const onClickItem = (v) => {

View File

@@ -69,17 +69,17 @@
title: 'Color Palette', title: 'Color Palette',
component: ColorPalette component: ColorPalette
}, },
{
tier: NODE_DATATIER.TO_3VIEW,
type: NODE_DATATYPE.TO_3VIEW,
title: 'To 3-View',
component: To3View
},
{ {
tier: NODE_DATATIER.TO_3D_MODEL, tier: NODE_DATATIER.TO_3D_MODEL,
type: NODE_DATATYPE.TO_3D_MODEL, type: NODE_DATATYPE.TO_3D_MODEL,
title: 'To 3D Model', title: 'To 3D Model',
component: To3DModel component: To3DModel
},
{
tier: NODE_DATATIER.TO_3VIEW,
type: NODE_DATATYPE.TO_3VIEW,
title: 'To 3-View',
component: To3View
} }
] ]
const nodeManager = inject('nodeManager') as any const nodeManager = inject('nodeManager') as any

View File

@@ -45,7 +45,7 @@
() => () =>
props.node.id === lastNode.value.id && props.node.id === lastNode.value.id &&
NODE_DATATYPE.RESULT_IMAGE === props.node.data.type && NODE_DATATYPE.RESULT_IMAGE === props.node.data.type &&
!(tier.value === NODE_DATATIER.TO_3D_MODEL) !(tier.value === NODE_DATATIER.TO_3VIEW)
) )
const onAdd = () => { const onAdd = () => {
const tier_ = tier.value + 1 const tier_ = tier.value + 1

View File

@@ -17,8 +17,8 @@ export const NODE_DATATYPE = {
SURFACE_EDIT: 'surface-edit', SURFACE_EDIT: 'surface-edit',
SCENE_COMPOSITION: 'scene-composition', SCENE_COMPOSITION: 'scene-composition',
COLOR_PALETTE: 'color-palette', COLOR_PALETTE: 'color-palette',
TO_3VIEW: 'to-3view',
TO_3D_MODEL: 'to-3d-model', TO_3D_MODEL: 'to-3d-model',
TO_3VIEW: 'to-3view',
} }
/** /**
* 节点数据层级 * 节点数据层级
@@ -30,6 +30,6 @@ export const NODE_DATATIER = {
SURFACE_EDIT: 1, SURFACE_EDIT: 1,
SCENE_COMPOSITION: 2, SCENE_COMPOSITION: 2,
COLOR_PALETTE: 2, COLOR_PALETTE: 2,
TO_3VIEW: 2, TO_3D_MODEL: 2,
TO_3D_MODEL: 3, TO_3VIEW: 3,
} }

View File

@@ -25,7 +25,7 @@ const props = defineProps<{
<!-- <div>{{ props.data.id }}</div> --> <!-- <div>{{ props.data.id }}</div> -->
<div class="item"> <div class="item">
<!-- {{ props.data.url }} --> <!-- {{ props.data.url }} -->
<img :src="props.data?.url" /> <img v-if="props.data?.url" :src="props.data?.url" />
<div class="mask"></div> <div class="mask"></div>
</div> </div>
</div> </div>