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
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
This commit is contained in:
@@ -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: ''
|
||||
|
||||
Reference in New Issue
Block a user