fix
This commit is contained in:
1
.env.dev
1
.env.dev
@@ -5,4 +5,5 @@ VUE_APP_BASE_URL = 'https://api.aida.com.hk'
|
|||||||
# VUE_APP_BASE_URL = 'http://18.167.251.121:10086'
|
# VUE_APP_BASE_URL = 'http://18.167.251.121:10086'
|
||||||
# VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
# VUE_APP_BASE_URL = 'https://develop.api.aida.com.hk'
|
||||||
# VUE_APP_BASE_URL = 'http://192.168.1.9:17088'
|
# VUE_APP_BASE_URL = 'http://192.168.1.9:17088'
|
||||||
|
VUE_APP_BASE_URL = 'http://192.168.1.9:5567'
|
||||||
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
# VUE_APP_BASE_URL = 'http://192.168.1.7:5567'
|
||||||
|
|||||||
@@ -268,20 +268,20 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'workspaceItem.id_':{
|
'workspace.id':{
|
||||||
handler(newVal:any,oldVal:any){
|
handler(newVal:any,oldVal:any){
|
||||||
this.workspace.workspaceList.forEach((v:any)=>{
|
// this.workspace.workspaceList.forEach((v:any)=>{
|
||||||
if(v.id == this.workspaceItem.id_){
|
// if(v.id == this.workspaceItem.id_){
|
||||||
this.workspaceItem = v
|
// this.workspaceItem = v
|
||||||
this.workspaceItem.id_ = v.id
|
// this.workspaceItem.id_ = v.id
|
||||||
}
|
// }
|
||||||
if(v.id == oldVal){
|
// if(v.id == oldVal){
|
||||||
delete v.isLastIndex
|
// delete v.isLastIndex
|
||||||
this.putWorkspace(v,newVal)
|
// this.putWorkspace(v,newVal)
|
||||||
this.getDetail(newVal)
|
// this.getDetail(newVal)
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
this.getMannequins()
|
this.getDetail(newVal)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'openType.workspace':{
|
'openType.workspace':{
|
||||||
@@ -341,7 +341,7 @@ export default defineComponent({
|
|||||||
// new Promise((resolve) => {
|
// new Promise((resolve) => {
|
||||||
// this.getPosition(resolve)
|
// this.getPosition(resolve)
|
||||||
// })
|
// })
|
||||||
await this.getPosition()
|
await this.getPosition()//获取衣服类型
|
||||||
this.getworkspace()
|
this.getworkspace()
|
||||||
this.getSex()
|
this.getSex()
|
||||||
},
|
},
|
||||||
@@ -469,27 +469,17 @@ export default defineComponent({
|
|||||||
|
|
||||||
Https.axiosPost(Https.httpUrls.workspaceList,data).then((rv: any) => {
|
Https.axiosPost(Https.httpUrls.workspaceList,data).then((rv: any) => {
|
||||||
if (rv) {
|
if (rv) {
|
||||||
rv.page.content.forEach((v:any) => {
|
// rv.page.content.forEach((v:any) => {
|
||||||
v.id_ = v.id
|
// v.id_ = v.id
|
||||||
if(v.position == "Overall"){
|
// if(v.position == "Overall"){
|
||||||
v.overallSingle = false
|
// v.overallSingle = false
|
||||||
}else{
|
// }else{
|
||||||
v.overallSingle = true
|
// v.overallSingle = true
|
||||||
}
|
// }
|
||||||
v.putName = false
|
// v.putName = false
|
||||||
if(v.id == (this.workspaceItem.id == -1 ?rv.id:this.workspaceItem.id)){
|
// });
|
||||||
this.workspaceItem = v
|
|
||||||
this.setMannequinsSex()
|
|
||||||
this.setPosition('')
|
|
||||||
}
|
|
||||||
});
|
|
||||||
this.total = rv.page.total
|
|
||||||
this.workspace.id = rv.id
|
this.workspace.id = rv.id
|
||||||
// if(this.workspace.workspaceList){
|
this.total = rv.page.total
|
||||||
// this.workspace.workspaceList.push(...rv.page.content)
|
|
||||||
// }else{
|
|
||||||
// this.workspace.workspaceList = rv.page.content
|
|
||||||
// }
|
|
||||||
this.workspace.workspaceList = rv.page.content
|
this.workspace.workspaceList = rv.page.content
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -497,6 +487,15 @@ export default defineComponent({
|
|||||||
getDetail(id:any){//
|
getDetail(id:any){//
|
||||||
Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:id}}).then((rv: any) => {
|
Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:id}}).then((rv: any) => {
|
||||||
if (rv) {
|
if (rv) {
|
||||||
|
if(rv.position == "Overall"){
|
||||||
|
rv.overallSingle = false
|
||||||
|
}else{
|
||||||
|
rv.overallSingle = true
|
||||||
|
}
|
||||||
|
rv.putName = false
|
||||||
|
this.workspaceItem = rv
|
||||||
|
this.setMannequinsSex()
|
||||||
|
this.setPosition('')
|
||||||
// this.getworkspace()
|
// this.getworkspace()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -524,12 +523,16 @@ export default defineComponent({
|
|||||||
if(this.workspaceItem.id == -1){
|
if(this.workspaceItem.id == -1){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
this.openType.model = false
|
||||||
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
|
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
|
||||||
if (rv) {
|
if (rv) {
|
||||||
if(index){
|
if(index){
|
||||||
// this.getDetail(index)
|
// this.getDetail(index)
|
||||||
}else{
|
}else{
|
||||||
this.getworkspace()
|
}
|
||||||
|
this.getworkspace()
|
||||||
|
if(index){
|
||||||
|
this.getDetail(index)
|
||||||
}
|
}
|
||||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||||
this.workspace.workspaceList[index].putName = false
|
this.workspace.workspaceList[index].putName = false
|
||||||
@@ -597,6 +600,7 @@ export default defineComponent({
|
|||||||
message.info(this.t('Habit.jsContent2'));
|
message.info(this.t('Habit.jsContent2'));
|
||||||
}else{
|
}else{
|
||||||
if(index == -1){
|
if(index == -1){
|
||||||
|
|
||||||
let data = {
|
let data = {
|
||||||
workSpaceName:this.workspaceItemName,
|
workSpaceName:this.workspaceItemName,
|
||||||
}
|
}
|
||||||
@@ -610,7 +614,7 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
data.workSpaceName = this.workspaceItemName
|
data.workSpaceName = this.workspaceItemName
|
||||||
this.putWorkspace(data,'')
|
this.putWorkspace(data,this.workspaceItem.id)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -632,8 +636,9 @@ export default defineComponent({
|
|||||||
this.workspace.workspaceList.forEach((v:any) => {
|
this.workspace.workspaceList.forEach((v:any) => {
|
||||||
v.putName = false
|
v.putName = false
|
||||||
});
|
});
|
||||||
|
this.putWorkspace(this.workspaceItem,'')
|
||||||
this.workspaceItem.id_ = num
|
this.workspace.id = num
|
||||||
|
// this.workspaceItem.id_ = num
|
||||||
this.openType.workspace = false
|
this.openType.workspace = false
|
||||||
},
|
},
|
||||||
//新建参数
|
//新建参数
|
||||||
|
|||||||
@@ -864,7 +864,27 @@ export default defineComponent({
|
|||||||
centered:true,
|
centered:true,
|
||||||
onOk() {
|
onOk() {
|
||||||
data.deleteModelConfirm = 1
|
data.deleteModelConfirm = 1
|
||||||
|
let id = _this.store.state.Workspace.workspace.id
|
||||||
|
Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:id}}).then((rv: any) => {
|
||||||
|
if (rv) {
|
||||||
|
if(rv.position == "Overall"){
|
||||||
|
rv.overallSingle = false
|
||||||
|
}else{
|
||||||
|
rv.overallSingle = true
|
||||||
|
}
|
||||||
|
if(rv.sexEnum.name == 'Female'){
|
||||||
|
rv.mannequinUrl = rv.femalePresignedUrl
|
||||||
|
rv.mannequinType = rv.mannequinFemaleType
|
||||||
|
rv.mannequinId = rv.mannequinFemaleId
|
||||||
|
}else if(rv.sexEnum.name == 'Male'){
|
||||||
|
rv.mannequinUrl = rv.malePresignedUrl
|
||||||
|
rv.mannequinType = rv.mannequinMaleType
|
||||||
|
rv.mannequinId = rv.mannequinMaleId
|
||||||
|
}
|
||||||
|
|
||||||
|
_this.store.commit("setWorkspace", rv);
|
||||||
|
}
|
||||||
|
})
|
||||||
_this.confirmDeletePic(data,index)
|
_this.confirmDeletePic(data,index)
|
||||||
},
|
},
|
||||||
onCancel(){
|
onCancel(){
|
||||||
|
|||||||
Reference in New Issue
Block a user