游戏-游戏配置-优化样式,增强验证
This commit is contained in:
@@ -9,12 +9,24 @@ export default {
|
||||
'weight key': 'Key',
|
||||
'weight value': 'Value',
|
||||
'weight sum must 100': 'The sum of weights for default_tier_weight / default_kill_score_weight must equal 100',
|
||||
'weight sum max 100': 'The sum of weights for default_tier_weight / default_kill_score_weight must not exceed 100',
|
||||
'weight each max 100': 'Each weight value must not exceed 100',
|
||||
'weight each max 10000': 'Weight must not exceed 10000',
|
||||
'bigwin weight must integer': 'Each big win weight must be an integer',
|
||||
'name opt game_rule': 'game_rule',
|
||||
'name opt game_rule_en': 'game_rule_en',
|
||||
'name opt default_tier_weight': 'default_tier_weight',
|
||||
'name opt default_kill_score_weight': 'default_kill_score_weight',
|
||||
'name opt default_bigwin_weight': 'default_bigwin_weight',
|
||||
default_bigwin_weight_help:
|
||||
'Big win weight range is 0–10000: 0 means never, 10000 means 100%. Totals 5 and 30 are guaranteed leopard (豹子); fixed at 10000 and cannot be changed.',
|
||||
'bigwin weight each 0 10000': 'Each weight (except fixed keys) must be between 0 and 10000',
|
||||
'bigwin weight locked 5 30': 'Weights for totals 5 and 30 are fixed at 10000',
|
||||
'weight value numeric': 'Weight values must be valid numbers',
|
||||
sort: 'sort',
|
||||
instantiation: 'instantiation',
|
||||
'instantiation 0': 'instantiation 0',
|
||||
'instantiation 1': 'instantiation 1',
|
||||
'instantiation 0': '---',
|
||||
'instantiation 1': 'YES',
|
||||
create_time: 'create_time',
|
||||
update_time: 'update_time',
|
||||
'quick Search Fields': 'ID',
|
||||
|
||||
@@ -9,11 +9,23 @@ export default {
|
||||
'weight key': '键',
|
||||
'weight value': '数值',
|
||||
'weight sum must 100': 'default_tier_weight / default_kill_score_weight 的权重之和必须等于 100',
|
||||
'weight sum max 100': 'default_tier_weight / default_kill_score_weight 的权重之和不能超过 100',
|
||||
'weight each max 100': '每项权重不能超过 100',
|
||||
'weight each max 10000': '权重不能超过10000',
|
||||
'bigwin weight must integer': '大奖权重每项必须为整数',
|
||||
'name opt game_rule': 'game_rule(游戏规则)',
|
||||
'name opt game_rule_en': 'game_rule_en(游戏规则英文)',
|
||||
'name opt default_tier_weight': 'default_tier_weight(默认档位权重)',
|
||||
'name opt default_kill_score_weight': 'default_kill_score_weight(默认击杀分权重)',
|
||||
'name opt default_bigwin_weight': 'default_bigwin_weight(默认大奖权重)',
|
||||
default_bigwin_weight_help:
|
||||
'大奖权重区间为 0~10000:0 表示不可能出现,10000 表示 100% 出现。点数 5 与 30 为豹子号必中组合,权重固定为 10000,不可修改。',
|
||||
'bigwin weight each 0 10000': '除固定项外,每项大奖权重须在 0~10000 之间',
|
||||
'bigwin weight locked 5 30': '点数 5 与 30 权重固定为 10000,不可修改',
|
||||
'weight value numeric': '权重值必须为有效数字',
|
||||
sort: '排序',
|
||||
instantiation: '实例化',
|
||||
'instantiation 0': '不需要',
|
||||
'instantiation 0': '---',
|
||||
'instantiation 1': '需要',
|
||||
create_time: '创建时间',
|
||||
update_time: '更新时间',
|
||||
|
||||
@@ -48,22 +48,21 @@ const baTable = new baTableClass(
|
||||
column: [
|
||||
{ type: 'selection', align: 'center', operator: false },
|
||||
{ label: t('game.config.ID'), prop: 'ID', align: 'center', width: 70, operator: 'RANGE', sortable: 'custom' },
|
||||
// {
|
||||
// label: t('game.config.channel_id'),
|
||||
// prop: 'channel_id',
|
||||
// align: 'center',
|
||||
// show: false,
|
||||
// enableColumnDisplayControl: false,
|
||||
// operatorPlaceholder: t('Fuzzy query'),
|
||||
// render: 'tags',
|
||||
// operator: 'LIKE',
|
||||
// comSearchRender: 'string',
|
||||
// },
|
||||
{
|
||||
label: t('game.config.channel_id'),
|
||||
prop: 'channel_id',
|
||||
align: 'center',
|
||||
show: false,
|
||||
width: 88,
|
||||
operator: 'RANGE',
|
||||
sortable: 'custom',
|
||||
},
|
||||
{
|
||||
label: t('game.config.channel__name'),
|
||||
prop: 'channel.name',
|
||||
align: 'center',
|
||||
minWidth: 100,
|
||||
sortable: 'true',
|
||||
operatorPlaceholder: t('Fuzzy query'),
|
||||
render: 'tags',
|
||||
operator: 'LIKE',
|
||||
@@ -111,6 +110,7 @@ const baTable = new baTableClass(
|
||||
label: t('game.config.instantiation'),
|
||||
prop: 'instantiation',
|
||||
align: 'center',
|
||||
custom: { 0: 'error', 1: 'primary' },
|
||||
operator: 'RANGE',
|
||||
sortable: false,
|
||||
render: 'tag',
|
||||
@@ -142,7 +142,7 @@ const baTable = new baTableClass(
|
||||
{ label: t('Operate'), align: 'center', width: 100, render: 'buttons', buttons: optButtons, operator: false },
|
||||
],
|
||||
dblClickNotEditColumn: [undefined, 'instantiation'],
|
||||
defaultOrder: { prop: 'group', order: 'desc' },
|
||||
defaultOrder: { prop: 'channel_id', order: 'desc' },
|
||||
},
|
||||
{
|
||||
defaultItems: { sort: 100 },
|
||||
|
||||
Reference in New Issue
Block a user