35 lines
1.0 KiB
PHP
35 lines
1.0 KiB
PHP
<?php
|
|
namespace app\backend\modules\finance\controllers;
|
|
|
|
use app\common\components\BaseController;
|
|
use app\common\helpers\PaginationHelper;
|
|
use app\common\models\weightValue\WeightValueLog;
|
|
|
|
class WeightValueController extends BaseController{
|
|
/**
|
|
* Common: 进入首页
|
|
* Author: wu-hui
|
|
* Time: 2023/09/27 13:44
|
|
* @return array|string
|
|
* @throws \Throwable
|
|
*/
|
|
public function index(){
|
|
//参数获取
|
|
$pageSize = request()->input('page_size',10);
|
|
$search = request()->input('search');
|
|
// 获取列表信息
|
|
$field = ['id','member_id','type','change_type','change_quantity','change_front','change_after','remark','created_at'];
|
|
$result = WeightValueLog::getList($pageSize,$search,$field);
|
|
|
|
$data = [
|
|
'list' => $result['data'],
|
|
'pager' => PaginationHelper::show($result['total'],$result['current_page'],$result['per_page']),
|
|
'search' => $search
|
|
];
|
|
|
|
return view('finance.weight.index',$data)->render();
|
|
}
|
|
|
|
|
|
|
|
} |