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

This commit is contained in:
sexygoat
2026-04-24 09:55:44 +08:00
parent aaa648a86d
commit 62851342c3
6 changed files with 468 additions and 5 deletions

View File

@@ -467,7 +467,9 @@
</ElCol>
<ElCol
:span="12"
v-if="form.enable_force_recharge && !(form.force_recharge_locked && isAgentAccount)"
v-if="
form.enable_force_recharge && !(form.force_recharge_locked && isAgentAccount)
"
>
<ElFormItem label="强充金额(元)" prop="force_recharge_amount">
<ElInputNumber
@@ -637,7 +639,10 @@
/>
</ElFormItem>
</ElCol>
<ElCol :span="12" v-if="form.enable_force_recharge && !(form.force_recharge_locked && isAgentAccount)">
<ElCol
:span="12"
v-if="form.enable_force_recharge && !(form.force_recharge_locked && isAgentAccount)"
>
<ElFormItem label="强充金额(元)" prop="force_recharge_amount">
<ElInputNumber
v-model="form.force_recharge_amount"
@@ -1140,7 +1145,7 @@
label: '系列名称',
minWidth: 150,
formatter: (row: ShopSeriesGrantResponse) => {
const hasPermission = hasAuth('series_name_grants:detail')
const hasPermission = hasAuth('series_grants:detail')
return h(
'span',
{
@@ -1279,10 +1284,10 @@
const getActions = (row: ShopSeriesGrantResponse) => {
const actions: any[] = []
if (hasAuth('series_grants:detail')) {
if (hasAuth('series_grants:packages_list')) {
actions.push({
label: '套餐列表',
handler: () => showPackageListDialog(row),
handler: () => router.push({ name: 'SeriesGrantPackages', params: { id: row.id } }),
type: 'primary'
})
}