This commit is contained in:
aihe 2024-04-29 12:33:35 +08:00
parent 7744c81745
commit 6e573512a7
2 changed files with 6 additions and 3 deletions

View File

@ -141,15 +141,18 @@
}
},
created() {
uni.$on('click', this.handleDocumentClick);
// document.addEventListener('click', this.handleDocumentClick)
},
unmounted() {
uni.$off('click', this.handleDocumentClick);
// document.removeEventListener('click', this.handleDocumentClick)
},
methods: {
handleDocumentClick(){
debugger
this.show = false
},
handleSelectSwitch() {

View File

@ -134,8 +134,8 @@
addressNameCodeMap.map((t, index)=> {
let name = res.data[t.nameKey]
let code = res.data[t.codeKey]
name && (this.addressModal.values.regIds[index] = name);
code && (this.addressModal.values.regNames[index] = code);
name && (this.addressModal.values.regIds[index] = code);
code && (this.addressModal.values.regNames[index] = name);
})
}
},
@ -162,7 +162,7 @@
if(this.queryOption.id) {
curServiceHand = apiService.editAddress
}
params.blDefaultFlag = !!(params.blDefaultFlag && params.blDefaultFlag.length > 0);
params.blDefaultFlag = Number(!!(params.blDefaultFlag && params.blDefaultFlag.length > 0));
await curServiceHand({ ...params, _loading: true })
this.showToast("操作成功")