Merge branch 'main' of ssh://18.167.251.121:10002/aidlab/lanecarford_front
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped

This commit is contained in:
X1627315083
2025-12-23 14:20:11 +08:00
15 changed files with 279 additions and 58 deletions

View File

@@ -9,7 +9,10 @@ export const useGenerateStore = defineStore({
return {
style: {
id: '',
oldId: '' //表示从生成页面返回回来需要调整的样式id
path: '',
taskId:'',
isLike: false, //是否喜欢
status: ''
},
styleList: [{}, {}, {}, {}],
model: {
@@ -68,7 +71,7 @@ export const useGenerateStore = defineStore({
/** 进店记录id */
visitRecordId: (state) => state.customerInfo.visitRecordId,
/** 服装id */
styleId: (state) => state.style.id || state.style.oldId,
styleId: (state) => state.style.id,
/** 模特照片id */
modelPhotoId: (state) => state.model.id,
/** 原始试穿id不包含魔改id */
@@ -82,23 +85,19 @@ export const useGenerateStore = defineStore({
},
actions: {
selectStyle(data: any) {
this.style.id = data.id
},
//生成后去掉id 设置oldId来修改样式
useStyleGenerate() {
if (!this.style.id) return
this.style.oldId = this.style.id
// this.style.id = ''
},
updateStyle(data) {
if (data.id == this.style.oldId) {
this.style.oldId = ''
}
if(data.id == this.style.id) {
this.style.id = ''
this.style = {
...data,
}
console.log(this.style)
},
clearStyle() {
this.style = {
id: '',
path: '',
isLike: false,
taskId:'',
status: ''
}
},
//模特相关
selectModel(data: any) {
this.model.id = data.id
@@ -110,7 +109,10 @@ export const useGenerateStore = defineStore({
this.styleList = [{}, {}, {}, {}]
this.style = {
id: '',
oldId: ''
path: '',
isLike: false,
taskId:'',
status: ''
}
this.model = {
id: ''