优化记录菜单显示数据个数为每页100条,并且为id倒序

This commit is contained in:
2026-03-20 15:25:03 +08:00
parent 8684fdc9f0
commit ca620eb536
7 changed files with 11 additions and 0 deletions

View File

@@ -171,6 +171,7 @@
} = useTable({ } = useTable({
core: { core: {
apiFn: api.list, apiFn: api.list,
apiParams: { limit: 100 },
columnsFactory: () => [ columnsFactory: () => [
// { type: 'selection' }, // { type: 'selection' },
{ prop: 'id', label: 'page.table.id', width: 80 }, { prop: 'id', label: 'page.table.id', width: 80 },

View File

@@ -122,6 +122,7 @@
} = useTable({ } = useTable({
core: { core: {
apiFn: api.list, apiFn: api.list,
apiParams: { limit: 100 },
columnsFactory: () => { columnsFactory: () => {
const usernameFormatter = (row: Record<string, any>) => const usernameFormatter = (row: Record<string, any>) =>
row?.dicePlayer?.username ?? row?.player_id ?? '-' row?.dicePlayer?.username ?? row?.player_id ?? '-'

View File

@@ -163,6 +163,7 @@
} = useTable({ } = useTable({
core: { core: {
apiFn: api.list, apiFn: api.list,
apiParams: { limit: 100 },
columnsFactory: () => [ columnsFactory: () => [
{ type: 'selection', align: 'center' }, { type: 'selection', align: 'center' },
{ prop: 'id', label: 'page.table.id', width: 80, align: 'center' }, { prop: 'id', label: 'page.table.id', width: 80, align: 'center' },

View File

@@ -22,6 +22,8 @@ class DicePlayRecordLogic extends BaseLogic
public function __construct() public function __construct()
{ {
$this->model = new DicePlayRecord(); $this->model = new DicePlayRecord();
// 默认按主键倒序:最新数据优先展示
$this->setOrderType('DESC');
} }
/** /**

View File

@@ -22,6 +22,8 @@ class DicePlayerTicketRecordLogic extends BaseLogic
public function __construct() public function __construct()
{ {
$this->model = new DicePlayerTicketRecord(); $this->model = new DicePlayerTicketRecord();
// 默认按主键倒序:最新数据优先展示
$this->setOrderType('DESC');
} }
/** /**

View File

@@ -23,6 +23,8 @@ class DicePlayerWalletRecordLogic extends BaseLogic
public function __construct() public function __construct()
{ {
$this->model = new DicePlayerWalletRecord(); $this->model = new DicePlayerWalletRecord();
// 默认按主键倒序:最新数据优先展示
$this->setOrderType('DESC');
} }
/** /**

View File

@@ -20,6 +20,8 @@ class DiceRewardConfigRecordLogic extends BaseLogic
public function __construct() public function __construct()
{ {
$this->model = new DiceRewardConfigRecord(); $this->model = new DiceRewardConfigRecord();
// 默认按主键倒序:最新数据优先展示
$this->setOrderType('DESC');
} }
/** /**