部分优化
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<NewCollectionReview id="collectionReview" @openCollection="openCollection"></NewCollectionReview>
|
||||
<NewCollectionReview id="collectionReview" :probjects="selectProbject" @openCollection="openCollection"></NewCollectionReview>
|
||||
</div>
|
||||
</div>
|
||||
<div v-show="isMannequinShow" class="left_info_hint">
|
||||
|
||||
@@ -135,7 +135,6 @@
|
||||
:centerBox="option.centerBox"
|
||||
:height="option.height"
|
||||
:infoTrue="option.infoTrue"
|
||||
:limitMinSize="option.limitMinSize"
|
||||
:enlarge="option.enlarge"
|
||||
@real-time="realTime"
|
||||
:autoCropArea="1"
|
||||
@@ -831,7 +830,6 @@ export default defineComponent({
|
||||
this.locationList = JSON.parse(JSON.stringify(this.oldLocationList))
|
||||
// this.locationList = JSON.parse(JSON.stringify(this.locationList))
|
||||
},
|
||||
|
||||
submitPlacement(){
|
||||
// let cropper:any = this.$refs.cropper,
|
||||
// that = this
|
||||
@@ -937,7 +935,6 @@ export default defineComponent({
|
||||
cropper.changeScale(num);
|
||||
},
|
||||
async confrimSubmit(){
|
||||
console.log(this.printObject)
|
||||
let isCovered = true
|
||||
if(this.editOrUpload == 'edit'){
|
||||
await new Promise((resolve, reject) => {
|
||||
@@ -1125,12 +1122,15 @@ export default defineComponent({
|
||||
if(boolean){
|
||||
this.slider = 50
|
||||
let url
|
||||
if(this.printObject.url){
|
||||
if(this.printObject.url && !this.printObject.url.startsWith('blob:')){
|
||||
url = this.printObject.url
|
||||
}else{
|
||||
let cropper:any = this.$refs.cropper
|
||||
await cropper.getCropData(async (value:any) => {
|
||||
url = value
|
||||
url = await new Promise<void>((resolve, reject) => {
|
||||
cropper.getCropData((value:any) => {
|
||||
this.option.img = value
|
||||
resolve(value)
|
||||
})
|
||||
})
|
||||
}
|
||||
this.getImgDetail(url)
|
||||
|
||||
@@ -118,6 +118,7 @@ export default defineComponent({
|
||||
createProbject:inject('createProbject',()=>{}) as any,
|
||||
likeDesignList:[],
|
||||
canvasSelectList:[] as any,
|
||||
videoList:[] as any,
|
||||
canvasDetailData:null as any,
|
||||
unLikeList:[],
|
||||
locale:null as any,
|
||||
@@ -159,20 +160,17 @@ export default defineComponent({
|
||||
});
|
||||
});
|
||||
}else if(value == 'relight' || value == 'poseTransfer'){
|
||||
console.log(list)
|
||||
list.forEach((item:any) => {
|
||||
if(item.childList){
|
||||
item.childList.forEach((child:any) => {
|
||||
if(child.resultType == 'ToProductImage' || child.resultType == 'Relight'){
|
||||
fileList.push(child)
|
||||
}
|
||||
console.log(fileList)
|
||||
if(child.resultType == 'Relight' && value == 'relight'){
|
||||
likeList.push(child)
|
||||
}else if(child.resultType == 'PoseTransfer' && value == 'poseTransfer'){
|
||||
likeList.push(child)
|
||||
}
|
||||
console.log(likeList)
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -187,7 +185,6 @@ export default defineComponent({
|
||||
}else if(data.openType == 'relight'){
|
||||
store.commit("setRelightList", likeData);
|
||||
}else if(data.openType == 'poseTransfer'){
|
||||
console.log(likeData)
|
||||
store.commit("setPoseTransfer", likeData);
|
||||
}
|
||||
if(dataDom[value]?.openSetData)dataDom[value]?.openSetData(fileList)
|
||||
@@ -261,7 +258,7 @@ export default defineComponent({
|
||||
let obj = {
|
||||
value:itemStr.value,
|
||||
type:data.locale == "ENGLISH"?itemStr.name:itemStr.nameCn,
|
||||
imgList:list,
|
||||
imgList:list,
|
||||
}
|
||||
if(list.length > 0){
|
||||
data.canvasSelectList.push(obj)
|
||||
@@ -274,7 +271,11 @@ export default defineComponent({
|
||||
list.push({url:item.designOutfitUrl || item.url})
|
||||
if(item.childList.length > 0){
|
||||
item.childList.forEach((childItem)=>{
|
||||
list.push({url:childItem.designOutfitUrl || childItem.url})
|
||||
if(childItem.relationType == "PoseTransfer"){
|
||||
data.videoList.push({url:childItem.videoUrl})
|
||||
}else{
|
||||
list.push({url:(childItem?.designOutfitUrl || childItem?.url)})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -348,7 +349,14 @@ export default defineComponent({
|
||||
})
|
||||
})
|
||||
}
|
||||
console.log(img)
|
||||
data.videoList.forEach((imgItem:any,index:any)=>{
|
||||
let nameTail = imgItem.url?.split(".").pop().split("?").shift();
|
||||
img.push({
|
||||
imgUrl:imgItem.url,
|
||||
name:`video${index}.${nameTail?nameTail:'mp4'}`
|
||||
})
|
||||
})
|
||||
|
||||
if(img.length>0)downImg(img);
|
||||
}
|
||||
let getImgArrayBuffer = (url) => {
|
||||
@@ -412,7 +420,6 @@ export default defineComponent({
|
||||
const share = async ()=>{
|
||||
var imageDataURL = '';
|
||||
imageDataURL = await dataDom.editCanvas.exportImage({isContainBg:true,isContainFixed:false})
|
||||
console.log(imageDataURL)
|
||||
let value = {
|
||||
imgUrl:imageDataURL,
|
||||
userlikeGroupId:'',
|
||||
|
||||
@@ -166,7 +166,7 @@ export default defineComponent({
|
||||
portfolioName:rv.portfolioDTO?.portfolioName?rv.portfolioDTO?.portfolioName:'',
|
||||
tagsDTO:rv.portfolioDTO?.tagsDTO?rv.portfolioDTO?.tagsDTO:[],
|
||||
},
|
||||
model:[]
|
||||
// model:[]
|
||||
}
|
||||
let position = []
|
||||
if(storeData.sex == "Female"){
|
||||
@@ -516,7 +516,6 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
const newProject = (value:any)=>{
|
||||
settingGetHistory()
|
||||
emit('setNewProject')
|
||||
let chatModel = false
|
||||
if(value.newMode == 'chat'){
|
||||
@@ -524,7 +523,8 @@ export default defineComponent({
|
||||
}else{
|
||||
chatModel = false
|
||||
}
|
||||
router.push(`home?history=${value.id}&create=true&chatMode=${chatModel}`)
|
||||
router.push(`home?history=${value.id}&chatMode=${chatModel}`)
|
||||
settingGetHistory()
|
||||
data.chatData = value
|
||||
|
||||
}
|
||||
|
||||
@@ -113,7 +113,7 @@ export default defineComponent({
|
||||
portfolioName:rv.portfolioDTO.portfolioName?rv.portfolioDTO.portfolioName:'',
|
||||
tagsDTO:rv.portfolioDTO.tagsDTO?rv.portfolioDTO.tagsDTO:[],
|
||||
},
|
||||
model:[]
|
||||
// model:[]
|
||||
}
|
||||
let position = []
|
||||
if(storeData.sex == "Female"){
|
||||
|
||||
@@ -227,8 +227,8 @@ export default defineComponent({
|
||||
let storeData = {
|
||||
name:rv.name,
|
||||
id:rv.id,
|
||||
type:rv.process == 'SERIES_DESIGN'?'seriesDesign':'singleProductDesign',
|
||||
httpType:rv.process,//项目类型
|
||||
// type:rv.process == 'SERIES_DESIGN'?'seriesDesign':'singleProductDesign',
|
||||
// httpType:rv.process,//项目类型
|
||||
ageGroup:rv.workspaceVO?.ageGroup,
|
||||
style:rv.workspaceVO?.style,
|
||||
styleId:rv.workspaceVO?.styleId,
|
||||
@@ -251,7 +251,11 @@ export default defineComponent({
|
||||
portfolioName:rv.portfolioDTO?.portfolioName?rv.portfolioDTO?.portfolioName:'',
|
||||
tagsDTO:rv.portfolioDTO?.tagsDTO?rv.portfolioDTO?.tagsDTO:[],
|
||||
},
|
||||
model:[]
|
||||
// model:[]
|
||||
}
|
||||
if(rv.process){
|
||||
storeData.type = rv.process == 'SERIES_DESIGN'?'seriesDesign':'singleProductDesign'
|
||||
storeData.httpType = rv.process
|
||||
}
|
||||
let position = []
|
||||
if(storeData.sex == "Female"){
|
||||
|
||||
Reference in New Issue
Block a user