fix: permission
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m11s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 6m11s
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user