feat: 生成时提示上传图片
This commit is contained in:
@@ -441,7 +441,6 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const openSetData = (designList: any) => {
|
const openSetData = (designList: any) => {
|
||||||
console.log('重置页面------------')
|
|
||||||
if (props.isDesignPage) {
|
if (props.isDesignPage) {
|
||||||
//标识design页面打开的tools
|
//标识design页面打开的tools
|
||||||
data.fileList = designList
|
data.fileList = designList
|
||||||
@@ -518,7 +517,12 @@ export default defineComponent({
|
|||||||
}, 200)
|
}, 200)
|
||||||
}
|
}
|
||||||
const getgenerate = async () => {
|
const getgenerate = async () => {
|
||||||
if (!data.selectImg.minioUrl) return message.info(t('ProductImg.jsContent2'))
|
if (videoType.value === 3 && !data.lastSelectImg.minioUrl) {
|
||||||
|
message.info(t('poseTransfer.NeedLastFrame'))
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if (!data.selectImg.minioUrl) return message.info(t('poseTransfer.NeedFirstFrame'))
|
||||||
|
debugger
|
||||||
if (data.isGenerate) return
|
if (data.isGenerate) return
|
||||||
await new Promise((res, reject) => {
|
await new Promise((res, reject) => {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
@@ -952,7 +956,6 @@ export default defineComponent({
|
|||||||
lastFrameList.value = store.state.HomeStoreModule.uploadElement.filter(
|
lastFrameList.value = store.state.HomeStoreModule.uploadElement.filter(
|
||||||
item => item.frameType === 'last'
|
item => item.frameType === 'last'
|
||||||
)
|
)
|
||||||
console.log('fileList',data.fileList)
|
|
||||||
// 更新 showFirstFrameList 中项的选中状态
|
// 更新 showFirstFrameList 中项的选中状态
|
||||||
showFirstFrameList.value.forEach((listItem: any) => {
|
showFirstFrameList.value.forEach((listItem: any) => {
|
||||||
if (listItem.id == data.selectImg.id) {
|
if (listItem.id == data.selectImg.id) {
|
||||||
@@ -963,7 +966,7 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
immediate:true
|
immediate: true
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -295,6 +295,8 @@ export default {
|
|||||||
GeneratedVideo: '生成的视频',
|
GeneratedVideo: '生成的视频',
|
||||||
hint: '将这张图像转化为一张逼真、达到工作室水准的照片。在生活中真实存在的人',
|
hint: '将这张图像转化为一张逼真、达到工作室水准的照片。在生活中真实存在的人',
|
||||||
jsContent1: '生成视频预计需要三分钟,请问是否继续',
|
jsContent1: '生成视频预计需要三分钟,请问是否继续',
|
||||||
|
NeedFirstFrame:'请选择首帧图片',
|
||||||
|
NeedLastFrame:'请选择尾帧图片',
|
||||||
SingleGarment:
|
SingleGarment:
|
||||||
'专业产品摄影:服装展示于隐形模特上,模特不可见。完整保留设计细节——所有图案、颜色、质地及细节特征。', // 单品样衣
|
'专业产品摄影:服装展示于隐形模特上,模特不可见。完整保留设计细节——所有图案、颜色、质地及细节特征。', // 单品样衣
|
||||||
SingleChildTryOn:
|
SingleChildTryOn:
|
||||||
|
|||||||
@@ -305,6 +305,8 @@ export default {
|
|||||||
GeneratedVideo: 'Generated Video',
|
GeneratedVideo: 'Generated Video',
|
||||||
hint: 'Transform this image into a realistic, studio-quality photograph. To the real photo real people',
|
hint: 'Transform this image into a realistic, studio-quality photograph. To the real photo real people',
|
||||||
jsContent1: 'Video generation will take approximately 3 minutes. Continue?',
|
jsContent1: 'Video generation will take approximately 3 minutes. Continue?',
|
||||||
|
NeedFirstFrame: 'Please select the first frame image',
|
||||||
|
NeedLastFrame: 'Please select the last frame image',
|
||||||
SingleGarment:
|
SingleGarment:
|
||||||
'Professional product photo: garment on invisible mannequin, no model visible. Preserve exact design - all patterns, colors, textures, details.', // 单品样衣
|
'Professional product photo: garment on invisible mannequin, no model visible. Preserve exact design - all patterns, colors, textures, details.', // 单品样衣
|
||||||
SingleChildTryOn:
|
SingleChildTryOn:
|
||||||
@@ -332,7 +334,8 @@ export default {
|
|||||||
firstAndLastFramePlaceholder1: '[Camera Movement]',
|
firstAndLastFramePlaceholder1: '[Camera Movement]',
|
||||||
firstAndLastFrameText2: 'to follow the motion, under',
|
firstAndLastFrameText2: 'to follow the motion, under',
|
||||||
firstAndLastFramePlaceholder2: '[Light]',
|
firstAndLastFramePlaceholder2: '[Light]',
|
||||||
firstAndLastFrameText3: ', maintaining full consistency of model identity, styling, and outfit across all frames.',
|
firstAndLastFrameText3:
|
||||||
|
', maintaining full consistency of model identity, styling, and outfit across all frames.',
|
||||||
firstFrameText1: 'Set the',
|
firstFrameText1: 'Set the',
|
||||||
firstFramePlaceholder1: '[Scene]',
|
firstFramePlaceholder1: '[Scene]',
|
||||||
firstFrameText2: ', where the model',
|
firstFrameText2: ', where the model',
|
||||||
|
|||||||
Reference in New Issue
Block a user