feat: design页面高级工具转产品图的Prompt assist弹窗

This commit is contained in:
zhangyh
2025-11-20 13:47:48 +08:00
parent f28eaef252
commit e6d657eaf1

View File

@@ -379,7 +379,7 @@
<div class="mark_loading" v-show="loadingShow"> <div class="mark_loading" v-show="loadingShow">
<a-spin size="large" /> <a-spin size="large" />
</div> </div>
<Prompt v-model:showModal="showPromptAssist" :promptList="promptTextList" /> <Prompt v-model:showModal="showPromptAssist" isDesignPage />
<Product <Product
v-model:showModal="showProductList" v-model:showModal="showProductList"
:frameList="fullProductImages" :frameList="fullProductImages"
@@ -574,6 +574,13 @@ export default defineComponent({
}) })
const showPromptAssist = ref(false) const showPromptAssist = ref(false)
const handleClickAssistBtn = () => { const handleClickAssistBtn = () => {
const { httpType } = store.state.Workspace.probjects
const isSingleDesign = httpType === 'SINGLE_DESIGN'
if (!isSingleDesign) {
const promptText = t('ProductImg.Series')
productimg.productimgSearchName = promptText
return
}
showPromptAssist.value = true showPromptAssist.value = true
} }
@@ -635,9 +642,7 @@ export default defineComponent({
const params: any = { const params: any = {
poseId: productimg.selectPose, poseId: productimg.selectPose,
projectId: productimg.selectObject.id, projectId: productimg.selectObject.id,
productImage: getMinioUrl( productImage: getMinioUrl(currentImage.sourceUrl || currentImage.productImage),
currentImage.sourceUrl || currentImage.productImage
),
modelName: speed.speedData.value, modelName: speed.speedData.value,
mode: videoType.value, mode: videoType.value,
parentId: parentId:
@@ -1325,11 +1330,11 @@ export default defineComponent({
showProductList, showProductList,
fullProductImages, fullProductImages,
isPoseTransfer, isPoseTransfer,
showCompare, showCompare,
newVideoList, newVideoList,
setNewVideoRef, setNewVideoRef,
handlePlayNewVideo, handlePlayNewVideo,
isNewVideoPlaying isNewVideoPlaying
} }
}, },
data() { data() {
@@ -1826,7 +1831,7 @@ export default defineComponent({
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&.new-video-container{ &.new-video-container {
margin-left: 2rem; margin-left: 2rem;
column-gap: 2rem; column-gap: 2rem;
} }
@@ -1995,7 +2000,7 @@ export default defineComponent({
} }
} }
} }
.posetransfer{ .posetransfer {
.loadBox { .loadBox {
.imgBox { .imgBox {
overflow-x: auto; overflow-x: auto;