This commit is contained in:
X1627315083
2023-12-30 10:02:28 +08:00
parent dc652a356d
commit 4f51479111
2 changed files with 8 additions and 5 deletions

View File

@@ -329,9 +329,9 @@ export default defineComponent({
}; };
}, },
mounted() { mounted() {
this.getPosition()
this.getworkspace() this.getworkspace()
this.getSex() this.getSex()
this.getPosition()
}, },
directives:{ directives:{
fade:{ fade:{
@@ -413,17 +413,18 @@ export default defineComponent({
this.workspaceItem.positionEnum = this.singleTypeList[0] this.workspaceItem.positionEnum = this.singleTypeList[0]
} }
}, },
getPosition(){ async getPosition(){
Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => { await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'FemalePosition'}}).then((rv: any) => {
if (rv) { if (rv) {
this.position[0].value = rv this.position[0].value = rv
} }
}) })
Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => { await Https.axiosGet(Https.httpUrls.workspaceenumValues,{params:{enumName:'MalePosition'}}).then((rv: any) => {
if (rv) { if (rv) {
this.position[1].value = rv this.position[1].value = rv
} }
}) })
// this.setPosition('')
}, },
getworkspace(){ getworkspace(){
// Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => { // Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => {

View File

@@ -662,6 +662,7 @@ export default defineComponent({
}, },
//发送请求生成图片 //发送请求生成图片
getgenerate(){ getgenerate(){
this.sketchCatecoryList = this.store.state.Workspace.workspacePosition
if(this.isTest){//试用用户禁止使用 if(this.isTest){//试用用户禁止使用
message.warning( message.warning(
this.t('isTest.available') this.t('isTest.available')
@@ -735,6 +736,7 @@ export default defineComponent({
return return
} }
} }
this.loadingShow = true this.loadingShow = true
Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then( Https.axiosPost(Https.httpUrls.sketchAndPrintGenerate, data).then(
(rv) => { (rv) => {
@@ -748,7 +750,7 @@ export default defineComponent({
category:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].name, category:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].name,
categoryValue:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].value, categoryValue:generage.level2Type?generage.level2Type:this.sketchCatecoryList[0].value,
id_:GO.id++, id_:GO.id++,
like:rv.generatedCollectionItems[index].isLiked like:v.isLiked
} }
this.generateList.push(arr) this.generateList.push(arr)
this.loadingShow = false this.loadingShow = false