uu
This commit is contained in:
parent
7744c81745
commit
6e573512a7
@ -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() {
|
||||
|
||||
@ -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("操作成功")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user