| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- <?php
- namespace app\admin\controller\box;
- use app\admin\logic\BoxRecordLogic;
- use app\common\model\BoxRecordModel;
- use app\admin\traits\Curd;
- use app\common\controller\AdminController;
- use EasyAdmin\annotation\ControllerAnnotation;
- use EasyAdmin\annotation\NodeAnotation;
- use think\App;
- use think\facade\Db;
- use think\Model;
- /**
- * Class Admin
- * @package app\admin\controller\system
- * @ControllerAnnotation(title="魔盒")
- */
- class AppointList extends AdminController
- {
- public function __construct(App $app)
- {
- parent::__construct($app);
- $this->model = new BoxRecordModel();
- }
- use Curd;
- /**
- * @NodeAnotation(title="预约记录")
- */
- public function index()
- {
- if ($this->request->isAjax()) {
- if (input('selectFields')) {
- return $this->selectList();
- }
- list($page, $limit, $where) = $this->buildTableParames();
- list($count, $list) = BoxRecordLogic::getList($page, $limit, $where, $this->sort);
- $data = [
- 'code' => 0,
- 'msg' => '',
- 'count' => $count,
- 'data' => $list,
- ];
- return json($data);
- }
- return $this->fetch();
- }
- }
|