游戏-用户管理-优化表格和表单样式

This commit is contained in:
2026-04-01 16:37:03 +08:00
parent 3438c711f0
commit 7fc9470f45
2 changed files with 10 additions and 0 deletions

View File

@@ -167,6 +167,8 @@ class User extends Backend
return $this->error(__('No rows updated')); return $this->error(__('No rows updated'));
} }
// GET: 返回编辑数据时,剔除敏感字段
unset($row['password'], $row['salt'], $row['token'], $row['refresh_token']);
return $this->success('', [ return $this->success('', [
'row' => $row 'row' => $row
]); ]);

View File

@@ -90,10 +90,18 @@ const baTable = new baTableClass(
prop: 'admin.username', prop: 'admin.username',
align: 'center', align: 'center',
minWidth: 90, minWidth: 90,
effect: 'plain',
operatorPlaceholder: t('Fuzzy query'), operatorPlaceholder: t('Fuzzy query'),
render: 'tags', render: 'tags',
operator: 'LIKE', operator: 'LIKE',
comSearchRender: 'string', comSearchRender: 'string',
//修改tag颜色
customRenderAttr: {
tag: () => ({
color: '#e8f3ff',
style: { color: '#1677ff', borderColor: '#91caff' },
}),
},
}, },
{ {
label: t('game.user.remark'), label: t('game.user.remark'),