fix: order
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m33s

This commit is contained in:
sexygoat
2026-04-30 10:39:51 +08:00
parent 1a4eb00440
commit 044c07fae6
10 changed files with 437 additions and 158 deletions

View File

@@ -112,6 +112,8 @@
filterable
clearable
style="width: 100%"
@focus="handleOwnerShopFocus"
@visible-change="handleOwnerShopVisibleChange"
@change="handleShopChange"
/>
</ElFormItem>
@@ -530,10 +532,6 @@
onMounted(() => {
getTableData()
// 只有非代理账号才需要加载店铺列表
if (!isAgentAccount.value) {
loadShopList()
}
})
onActivated(() => {
@@ -542,6 +540,8 @@
// 加载店铺列表 - 改用级联查询
const loadShopList = async () => {
if (shopLoading.value) return
shopLoading.value = true
try {
const res = await ShopService.getShopsCascade({ parent_id: undefined })
@@ -559,6 +559,16 @@
}
}
const handleOwnerShopFocus = async () => {
if (isAgentAccount.value) return
await loadShopList()
}
const handleOwnerShopVisibleChange = async (visible: boolean) => {
if (!visible) return
await handleOwnerShopFocus()
}
// 处理店铺选择变化
const handleShopChange = (value: any) => {
if (Array.isArray(value) && value.length > 0) {