fix
This commit is contained in:
@@ -593,27 +593,29 @@ export default defineComponent({
|
||||
}
|
||||
},
|
||||
deleteFile(item: any) {
|
||||
if (item.type_ == "generate" || item.type_ == "material") {
|
||||
let maxImg = 8
|
||||
if(this.type_.type2 == 'Sketchboard'){
|
||||
maxImg = 20
|
||||
}
|
||||
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:maxImg})
|
||||
this.store.commit("addGenerateMaterialFils", item);
|
||||
} else {
|
||||
this.sketchboardList =
|
||||
this.store.state.UploadFilesModule.moodboardFiles;
|
||||
let moodboard;
|
||||
this.store.state.UploadFilesModule.moodboardFiles.forEach(
|
||||
(items: any, index: Number) => {
|
||||
if (items.id_ == item.id_) {
|
||||
moodboard = index;
|
||||
}
|
||||
}
|
||||
);
|
||||
this.sketchboardList.splice(moodboard, 1);
|
||||
this.store.commit("setSketchboardFile", this.sketchboardList);
|
||||
}
|
||||
// this.sketchboardList
|
||||
this.sketchboardList.splice(item, 1);
|
||||
// if (item.type_ == "generate" || item.type_ == "material") {
|
||||
// let maxImg = 8
|
||||
// if(this.type_.type2 == 'Sketchboard'){
|
||||
// maxImg = 20
|
||||
// }
|
||||
// item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:maxImg})
|
||||
// this.store.commit("addGenerateMaterialFils", item);
|
||||
// } else {
|
||||
// this.sketchboardList =
|
||||
// this.store.state.UploadFilesModule.moodboardFiles;
|
||||
// let moodboard;
|
||||
// this.store.state.UploadFilesModule.moodboardFiles.forEach(
|
||||
// (items: any, index: Number) => {
|
||||
// if (items.id_ == item.id_) {
|
||||
// moodboard = index;
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
// this.sketchboardList.splice(moodboard, 1);
|
||||
// this.store.commit("setSketchboardFile", this.sketchboardList);
|
||||
// }
|
||||
},
|
||||
likeFile(item:any,str:string){
|
||||
if(str == 'like'){
|
||||
|
||||
@@ -121,14 +121,14 @@ export default defineComponent({
|
||||
driverObj__.refresh();
|
||||
this.record.push({
|
||||
state:1,
|
||||
str:"Welcome to the AiDA system, your friendly fashion design assistant at your service! If you have any questions or need assistance, please don't hesitate to ask. ",
|
||||
str:"Welcome to AiDA. I am your friendly fashion design assistant. If you have any questions or need assistance, please don't hesitate to ask. ",
|
||||
driver:false,
|
||||
})
|
||||
this.textScroll()
|
||||
setTimeout(() => {
|
||||
this.record.push({
|
||||
state:1,
|
||||
str:"I see you might be new here, and I'd love to guide you through a tutorial to help you get acquainted with our new and improved AiDA system. How does that sound? Would you like to start the tutorial now?",
|
||||
str:"I see you might be new here, and I'd love to guide you through a tutorial to help you get acquainted with our new and improved AiDA system. Would you like to start the tutorial now?",
|
||||
driver:true,
|
||||
})
|
||||
this.textScroll()
|
||||
|
||||
@@ -411,7 +411,7 @@ export default defineComponent({
|
||||
return this.store?.state?.Workspace?.workspace
|
||||
})
|
||||
if(this.driver__.driver){
|
||||
this.captionGeneration = 'Exit sign, door, sunset, ocean, surreal'
|
||||
this.captionGeneration = 'A detailed sketch of an elegant blouse with a high neck, flowing sleeves, and lace trim, highlighting texture and style.'
|
||||
}else{
|
||||
this.captionGeneration = ''
|
||||
}
|
||||
|
||||
@@ -180,16 +180,31 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
},
|
||||
isPin(list:any){
|
||||
isPin(str:any){
|
||||
let _this = this
|
||||
Modal.confirm({
|
||||
title: this.t('collectionModal.jsContent5',{str:str}),
|
||||
icon: createVNode(ExclamationCircleOutlined),
|
||||
okText: 'Yes',
|
||||
cancelText: 'No',
|
||||
mask:false,
|
||||
centered:true,
|
||||
onOk() {
|
||||
return true
|
||||
},
|
||||
onCancel(){
|
||||
_this.isShowMark = false
|
||||
return false
|
||||
}
|
||||
});
|
||||
// message.warning(this.t('SketchboardUpload.jsContent1',str:str));
|
||||
},
|
||||
isPinOpen(list:any){
|
||||
this.workspace
|
||||
let numTop = 0
|
||||
let numBottom = 0
|
||||
let top:any
|
||||
let bottom:any
|
||||
console.log(this.position);
|
||||
this.position.forEach((item:any) => {
|
||||
// let str =
|
||||
});
|
||||
if(this.workspace.sexEnum.name == "Female"){
|
||||
top = ['Outwear','Dress','Blouse']
|
||||
bottom = ['Trousers','Skirt']
|
||||
@@ -197,11 +212,21 @@ export default defineComponent({
|
||||
top = ['Outwear','Tops']
|
||||
bottom = ['Bottoms']
|
||||
}
|
||||
console.log(this.workspace);
|
||||
|
||||
|
||||
let topStr:any = []
|
||||
let bottomStr:any = []
|
||||
this.position.forEach((item:any) => {
|
||||
let topBor
|
||||
let botBor
|
||||
topBor = top.includes(item.name)
|
||||
botBor = bottom.includes(item.name)
|
||||
if(topBor){
|
||||
topStr.push(item.value)
|
||||
}
|
||||
if(botBor){
|
||||
bottomStr.push(item.value)
|
||||
}
|
||||
});
|
||||
list.forEach((item:any,index:number) => {
|
||||
console.log(item);
|
||||
top.forEach((positionItem:any) => {
|
||||
if(item.category == positionItem && item.pin){
|
||||
numTop++
|
||||
@@ -210,15 +235,21 @@ export default defineComponent({
|
||||
}
|
||||
});
|
||||
});
|
||||
let str
|
||||
if(numTop >= 8){
|
||||
// let str =
|
||||
// return
|
||||
console.log(1);
|
||||
str = `top ${topStr.join(' and ')}`
|
||||
return this.isPin(str)
|
||||
}else if(numBottom >= 8){
|
||||
return
|
||||
console.log(2);
|
||||
str = `bottom ${bottomStr.join(' and ')}`
|
||||
return this.isPin(str)
|
||||
}else{
|
||||
|
||||
console.log(3);
|
||||
|
||||
return true
|
||||
}
|
||||
// message.warning(this.t('SketchboardUpload.jsContent1',str:str));
|
||||
|
||||
},
|
||||
//完成
|
||||
finishCollection(){
|
||||
@@ -236,7 +267,10 @@ export default defineComponent({
|
||||
});
|
||||
let data = {sketchBoards:arr}
|
||||
// console.log(this.position);
|
||||
this.isPin(sketchList)
|
||||
if(!this.isPinOpen(sketchList)){
|
||||
this.isShowMark = false
|
||||
return
|
||||
}
|
||||
let elList = document.querySelectorAll('.img_block_item_sketch img')
|
||||
Https.axiosPost(Https.httpUrls.sketchBoardsBoundingBox, data)
|
||||
.then((rv: any) => {
|
||||
|
||||
Reference in New Issue
Block a user