优化记录菜单显示数据个数为每页100条,并且为id倒序
This commit is contained in:
@@ -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 },
|
||||||
|
|||||||
@@ -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 ?? '-'
|
||||||
|
|||||||
@@ -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' },
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user