菜单按钮权限设置-后台可以设置新增的按钮权限

This commit is contained in:
2026-03-17 20:30:37 +08:00
parent bdf50e61f5
commit f63616e735
15 changed files with 125 additions and 113 deletions

View File

@@ -7,6 +7,15 @@
destroy-on-close
@close="onClose"
>
<ElAlert
type="info"
:closable="false"
show-icon
class="weight-test-tip"
>
<template #title>彩金池逻辑说明</template>
playStart 抽奖逻辑一致使用 name=default 的安全线杀分开关盈利未达安全线时付费抽奖券使用玩家自身权重下方自定义档位免费抽奖券使用 killScore 配置盈利达到安全线且杀分开启时付费/免费均使用 killScore 配置
</ElAlert>
<ElForm ref="formRef" :model="form" label-width="140px">
<ElSteps :active="currentStep" finish-status="success" simple class="steps-wrap">
<ElStep title="付费抽奖券" />
@@ -123,7 +132,12 @@
<ElButton v-if="currentStep < 1" type="primary" :disabled="running" @click="currentStep++"
>下一步</ElButton
>
<ElButton v-if="currentStep === 1" type="primary" :loading="running" @click="handleStart"
<ElButton
v-if="currentStep === 1"
v-permission="'dice:reward:index:startWeightTest'"
type="primary"
:loading="running"
@click="handleStart"
>开始测试</ElButton
>
<ElButton :disabled="running" @click="visible = false">取消</ElButton>
@@ -310,6 +324,9 @@
</script>
<style lang="scss" scoped>
.weight-test-tip {
margin-bottom: 16px;
}
.steps-wrap {
margin-bottom: 16px;
}