1.优化测试权重表单样式
This commit is contained in:
@@ -65,12 +65,12 @@
|
||||
"poolProfitRef": "Reference: default pool profit {profit}, pool config safety line {line}",
|
||||
"killModeOffHint": "When off, all draws follow paid/free settings without kill switching.",
|
||||
"sectionPaid": "Paid draws",
|
||||
"sectionFreeAfterPlayAgain": "Free draw tier odds (after play-again)",
|
||||
"tierProbHintFreeChain": "When using custom tier odds: T1–T5 below apply when a free draw runs (tier roll; combined with dice_reward row weights).",
|
||||
"sectionFreeAfterPlayAgain": "Free draws (play again)",
|
||||
"tierProbHintFreeChain": "Custom tiers: T1–T5 odds for free draws (combined with dice_reward row weights).",
|
||||
"stepPaid": "Paid ticket",
|
||||
"stepFree": "Free ticket",
|
||||
"labelLotteryTypePaid": "Test pool type",
|
||||
"labelLotteryTypeFree": "Test pool type",
|
||||
"labelLotteryTypePaid": "Paid tier pool",
|
||||
"labelLotteryTypeFree": "Free tier pool",
|
||||
"labelAnte": "Ante",
|
||||
"placeholderAnte": "Select ante config",
|
||||
"placeholderPaidPool": "Leave empty for custom tier odds below (default: default)",
|
||||
|
||||
@@ -65,12 +65,12 @@
|
||||
"poolProfitRef": "参考:当前 default 池盈利 {profit},彩金池配置安全线 {line}",
|
||||
"killModeOffHint": "关闭时全程按付费/免费配置抽档,不模拟杀分切换。",
|
||||
"sectionPaid": "付费抽奖",
|
||||
"sectionFreeAfterPlayAgain": "免费抽奖(再来一次后的档位概率)",
|
||||
"tierProbHintFreeChain": "当使用自定义档位时:以下为「免费抽奖」时 T1~T5 的档位概率(仅在有免费局时参与摇档,与 dice_reward 格子权重共同决定结果)。",
|
||||
"sectionFreeAfterPlayAgain": "免费抽奖(再来一次)",
|
||||
"tierProbHintFreeChain": "自定义档位时:免费局 T1~T5 档位概率(与 dice_reward 格子权重共同决定结果)。",
|
||||
"stepPaid": "付费抽奖券",
|
||||
"stepFree": "免费抽奖券",
|
||||
"labelLotteryTypePaid": "测试数据档位类型",
|
||||
"labelLotteryTypeFree": "测试数据档位类型",
|
||||
"labelLotteryTypePaid": "付费档位奖池",
|
||||
"labelLotteryTypeFree": "免费档位奖池",
|
||||
"labelAnte": "底注",
|
||||
"placeholderAnte": "请选择底注配置",
|
||||
"placeholderPaidPool": "不选则下方自定义档位概率(默认 default)",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<ElDialog
|
||||
v-model="visible"
|
||||
:title="$t('page.weightTest.title')"
|
||||
width="920px"
|
||||
width="960px"
|
||||
top="4vh"
|
||||
class="weight-test-dialog"
|
||||
:close-on-click-modal="false"
|
||||
@@ -51,20 +51,16 @@
|
||||
/>
|
||||
</div>
|
||||
<div v-if="form.kill_mode_enabled" class="kill-mode-body">
|
||||
<ElFormItem
|
||||
:label="$t('page.weightTest.labelTestSafetyLine')"
|
||||
prop="test_safety_line"
|
||||
class="kill-safety-item"
|
||||
label-width="96px"
|
||||
>
|
||||
<div class="kill-mode-field">
|
||||
<div class="kill-mode-field-label">{{ $t('page.weightTest.labelTestSafetyLine') }}</div>
|
||||
<ElInputNumber
|
||||
v-model="form.test_safety_line"
|
||||
:min="0"
|
||||
:step="100"
|
||||
controls-position="right"
|
||||
style="width: 100%"
|
||||
class="kill-mode-field-input"
|
||||
/>
|
||||
</ElFormItem>
|
||||
</div>
|
||||
<div class="kill-mode-hint">{{ $t('page.weightTest.testSafetyLineHint') }}</div>
|
||||
<div v-if="defaultPoolInfo" class="kill-mode-ref">
|
||||
{{ $t('page.weightTest.poolProfitRef', {
|
||||
@@ -79,6 +75,7 @@
|
||||
<ElRow :gutter="20" class="section-row">
|
||||
<ElCol :span="12">
|
||||
<div class="section-title">{{ $t('page.weightTest.sectionPaid') }}</div>
|
||||
<ElForm :model="form" label-position="top" class="section-form">
|
||||
<ElFormItem :label="$t('page.weightTest.labelLotteryTypePaid')" prop="paid_lottery_config_id">
|
||||
<ElSelect
|
||||
v-model="form.paid_lottery_config_id"
|
||||
@@ -119,6 +116,8 @@
|
||||
$t('page.weightTest.tierSumError', { sum: paidTierSum })
|
||||
}}</div>
|
||||
</template>
|
||||
<ElRow :gutter="12">
|
||||
<ElCol :span="12">
|
||||
<ElFormItem :label="$t('page.weightTest.labelCwCount')" prop="paid_s_count" required>
|
||||
<ElSelect
|
||||
v-model="form.paid_s_count"
|
||||
@@ -128,6 +127,8 @@
|
||||
<ElOption v-for="c in countOptions" :key="c" :label="String(c)" :value="c" />
|
||||
</ElSelect>
|
||||
</ElFormItem>
|
||||
</ElCol>
|
||||
<ElCol :span="12">
|
||||
<ElFormItem :label="$t('page.weightTest.labelCcwCount')" prop="paid_n_count" required>
|
||||
<ElSelect
|
||||
v-model="form.paid_n_count"
|
||||
@@ -138,9 +139,13 @@
|
||||
</ElSelect>
|
||||
</ElFormItem>
|
||||
</ElCol>
|
||||
</ElRow>
|
||||
</ElForm>
|
||||
</ElCol>
|
||||
|
||||
<ElCol :span="12">
|
||||
<div class="section-title">{{ $t('page.weightTest.sectionFreeAfterPlayAgain') }}</div>
|
||||
<ElForm :model="form" label-position="top" class="section-form">
|
||||
<ElFormItem :label="$t('page.weightTest.labelLotteryTypeFree')" prop="free_lottery_config_id">
|
||||
<ElSelect
|
||||
v-model="form.free_lottery_config_id"
|
||||
@@ -181,6 +186,7 @@
|
||||
$t('page.weightTest.tierSumError', { sum: freeTierSum })
|
||||
}}</div>
|
||||
</template>
|
||||
</ElForm>
|
||||
</ElCol>
|
||||
</ElRow>
|
||||
</ElForm>
|
||||
@@ -513,6 +519,20 @@
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
:deep(.el-form-item__label) {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
.section-form {
|
||||
:deep(.el-form-item) {
|
||||
margin-bottom: 12px;
|
||||
}
|
||||
:deep(.el-form-item__label) {
|
||||
white-space: nowrap;
|
||||
line-height: 1.4;
|
||||
padding-bottom: 4px;
|
||||
}
|
||||
}
|
||||
|
||||
.kill-mode-panel {
|
||||
@@ -543,11 +563,20 @@
|
||||
border-top: 1px dashed var(--el-border-color);
|
||||
}
|
||||
|
||||
.kill-safety-item {
|
||||
margin-bottom: 8px;
|
||||
:deep(.el-form-item__label) {
|
||||
.kill-mode-field {
|
||||
max-width: 280px;
|
||||
}
|
||||
|
||||
.kill-mode-field-label {
|
||||
font-size: 13px;
|
||||
color: var(--el-text-color-regular);
|
||||
line-height: 1.4;
|
||||
margin-bottom: 6px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.kill-mode-field-input {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.kill-mode-hint,
|
||||
@@ -574,6 +603,9 @@
|
||||
margin: 0 0 10px;
|
||||
padding-bottom: 4px;
|
||||
border-bottom: 1px solid var(--el-border-color-lighter);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.tier-label {
|
||||
|
||||
Reference in New Issue
Block a user