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

This commit is contained in:
sexygoat
2026-04-24 18:39:39 +08:00
parent 2d6b5d7903
commit 17c299e4ce
27 changed files with 500 additions and 481 deletions

View File

@@ -209,7 +209,7 @@
<ElDialog
v-model="dialogVisible"
:title="dialogType === 'add' ? '新增代理系列授权' : '编辑代理系列授权'"
width="40%"
width="50%"
:close-on-click-modal="false"
@closed="handleDialogClosed"
>
@@ -973,13 +973,11 @@
loading: shopLoading.value,
placeholder: '请选择或搜索分配者店铺'
},
options: () => [
{ label: '平台', value: 0 },
...searchAllocatorShopOptions.value.map((s) => ({
options: () =>
searchAllocatorShopOptions.value.map((s) => ({
label: s.shop_name,
value: s.id
}))
]
},
{
@@ -1337,10 +1335,6 @@
}
onMounted(() => {
loadSeriesOptions()
loadSearchSeriesOptions()
loadSearchShopOptions()
loadSearchAllocatorShopOptions()
getTableData()
})
@@ -1647,7 +1641,7 @@
// 搜索系列(用于搜索栏)
const handleSearchSeries = async (query: string) => {
if (!query) {
loadSearchSeriesOptions()
await loadSearchSeriesOptions()
return
}
try {
@@ -1668,7 +1662,7 @@
// 搜索店铺(用于搜索栏-被分配的店铺)
const handleSearchShop = async (query: string) => {
if (!query) {
loadSearchShopOptions()
await loadSearchShopOptions()
return
}
try {
@@ -1688,7 +1682,7 @@
// 搜索分配者店铺(用于搜索栏)
const handleSearchAllocatorShop = async (query: string) => {
if (!query) {
loadSearchAllocatorShopOptions()
await loadSearchAllocatorShopOptions()
return
}
try {
@@ -1767,6 +1761,8 @@
// 每次打开对话框时重新加载店铺列表,确保获取最新的店铺数据
await loadShopListForDialog()
// 加载系列选项
await loadSeriesOptions()
if (type === 'edit' && row) {
// 编辑模式:先调用详情接口获取完整数据