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

This commit is contained in:
2026-03-25 16:58:10 +08:00
23 changed files with 625 additions and 179 deletions

View File

@@ -5,6 +5,7 @@ import Tree from './tree/index.vue'
import { findAndAddChild, findAndRemoveChild } from '../../../../../utils/treeDiagram'
import { useProjectStore } from '@/stores'
import { versionTree } from '@/api/versitonTree'
import { downloadImage } from '@/components/Canvas/tools/tools'
const props = defineProps({
versionTreeData: {
@@ -138,7 +139,7 @@ const {} = toRefs(data)
</div>
</div>
<div class="expandBtnBox" v-if="versionsList.length > 0">
<div class="btn" @click="openTree(true)">
<div class="btn" v-if="selectItem.url" @click="downloadImage(selectItem.url,'image.png')">
<div class="versionExport">
<SvgIcon name="versionExport" size="17" color="rgba(0, 0, 0, 0.6)" />
</div>
@@ -211,8 +212,10 @@ const {} = toRefs(data)
margin-left: auto;
margin-top: 2.2rem;
margin-right: 3rem;
height: 3.3rem;
> .btn{
padding: .6rem 1.8rem;
padding: 0 1.8rem;
line-height: 3rem;
cursor: pointer;
display: flex;
align-items: center;

View File

@@ -10,12 +10,13 @@
import { computed, onMounted } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()
const url = 'https://www.minio-api.aida.com.hk/fida-test/furniture/sketches/1a48ed3a-1faa-4fcd-bf07-765dba1702c5.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260320%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260320T020948Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7dc192bac887bce7b02c99d7037c08d9d684310f00add9b0e63b74b36ee63d37'
const url =
'https://www.minio-api.aida.com.hk/fida-test/furniture/sketches/1a48ed3a-1faa-4fcd-bf07-765dba1702c5.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=admin%2F20260320%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260320T020948Z&X-Amz-Expires=604800&X-Amz-SignedHeaders=host&X-Amz-Signature=7dc192bac887bce7b02c99d7037c08d9d684310f00add9b0e63b74b36ee63d37'
const openCanvas = () => {
myEvent.emit('openFlowCanvas', { url })
}
const openDepthCanvas = () => {
myEvent.emit('openDepthCanvas', { url })
myEvent.emit('openDepthCanvas', { url, canvasId: '69c34539ce996b52f07e625f' })
}
onMounted(() => {
if (route.query.depth) {