uu
This commit is contained in:
parent
7744c81745
commit
6e573512a7
@ -141,15 +141,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
uni.$on('click', this.handleDocumentClick);
|
||||||
// document.addEventListener('click', this.handleDocumentClick)
|
// document.addEventListener('click', this.handleDocumentClick)
|
||||||
},
|
},
|
||||||
|
|
||||||
unmounted() {
|
unmounted() {
|
||||||
|
uni.$off('click', this.handleDocumentClick);
|
||||||
// document.removeEventListener('click', this.handleDocumentClick)
|
// document.removeEventListener('click', this.handleDocumentClick)
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
handleDocumentClick(){
|
handleDocumentClick(){
|
||||||
|
debugger
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
handleSelectSwitch() {
|
handleSelectSwitch() {
|
||||||
|
|||||||
@ -134,8 +134,8 @@
|
|||||||
addressNameCodeMap.map((t, index)=> {
|
addressNameCodeMap.map((t, index)=> {
|
||||||
let name = res.data[t.nameKey]
|
let name = res.data[t.nameKey]
|
||||||
let code = res.data[t.codeKey]
|
let code = res.data[t.codeKey]
|
||||||
name && (this.addressModal.values.regIds[index] = name);
|
name && (this.addressModal.values.regIds[index] = code);
|
||||||
code && (this.addressModal.values.regNames[index] = code);
|
code && (this.addressModal.values.regNames[index] = name);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -162,7 +162,7 @@
|
|||||||
if(this.queryOption.id) {
|
if(this.queryOption.id) {
|
||||||
curServiceHand = apiService.editAddress
|
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 })
|
await curServiceHand({ ...params, _loading: true })
|
||||||
this.showToast("操作成功")
|
this.showToast("操作成功")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user