1.优化/admin/auth/admin中上级代理下拉框选项

This commit is contained in:
2026-05-29 12:09:26 +08:00
parent d8673fb2c5
commit 8e2de58765
2 changed files with 69 additions and 2 deletions

View File

@@ -74,11 +74,13 @@
v-model="baTable.form.items!.parent_admin_id"
type="remoteSelect"
prop="parent_admin_id"
:key="'parent-' + (baTable.form.items!.channel_id ?? '') + '-' + baTable.form.items!.id"
:input-attr="{
remoteUrl: '/admin/auth.Admin/index',
field: 'username',
pk: 'id',
disabled: isTopLevelGroup,
pagination: false,
params: parentSelectParams,
placeholder: t('auth.admin.Parent admin placeholder'),
}"
@@ -217,7 +219,7 @@ const showShareRateField = computed(() => {
})
const parentSelectParams = computed(() => {
const params: anyObj = { select: true, limit: 200 }
const params: anyObj = { isTree: true }
const cid = baTable.form.items?.channel_id
if (cid !== null && cid !== undefined && cid !== '') {
params['search[0][field]'] = 'channel_id'