style: 样式修改.
bugfix: customer选择页面弹窗触发错误.
This commit is contained in:
@@ -147,6 +147,7 @@ const onScroll = (e: Event) => {
|
||||
// 打开customer选择时关闭profile弹窗 如果不是点击confirem关闭则重新打开profile弹窗
|
||||
const handleShowPopup = (flag: boolean) => {
|
||||
showSwitchCustomerPopup.value = flag
|
||||
if(props.isCustomer) return
|
||||
show.value = !flag
|
||||
if (flag) {
|
||||
loadCustomers(true)
|
||||
@@ -178,15 +179,15 @@ const handleFetchCustomerList = () => {
|
||||
}
|
||||
MyEvent.add('update-customer-list', handleFetchCustomerList)
|
||||
|
||||
const openSwitchCustomerPopup = (flag = true) => {
|
||||
showSwitchCustomerPopup.value = flag
|
||||
}
|
||||
// const openSwitchCustomerPopup = (flag = true) => {
|
||||
// showSwitchCustomerPopup.value = flag
|
||||
// }
|
||||
|
||||
onMounted(() => {
|
||||
handleFetchCustomerList()
|
||||
})
|
||||
|
||||
defineExpose({ open, close, openSwitchCustomerPopup })
|
||||
defineExpose({ open, close, handleShowPopup })
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
Reference in New Issue
Block a user