SurfaceController.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: qiuzijian
  5. * Date: 2021-05-28
  6. * Time: 15:04
  7. */
  8. namespace Modules\Mine\Http\Controllers;
  9. use Modules\Admin\Http\Controllers\BaseController;
  10. class SurfaceController extends BaseController
  11. {
  12. /**
  13. * Display a listing of the resource.
  14. * @return Renderable
  15. */
  16. public function index()
  17. {
  18. return view('surface::index');
  19. }
  20. //工作面列表
  21. public function surfaceList(Request $request)
  22. {
  23. $this->menusActive[0] = 'adminSurface';
  24. $this->menusActive[1] = 'adminSurfaceList';
  25. $list = MineServices::getAdminMineList();
  26. $tableObj = new TreeAuxiliary('mine/list', $list);
  27. $tableObj->column('title', '矿区单位名称');
  28. $tableObj->column('sort', '排序');
  29. $tableObj->column('ip', 'ip');
  30. $tableObj->column('port', 'port');
  31. $tableObj->column('key', '请求key');
  32. $tableObj->column('secret', '请求secret');
  33. $tableObj->column('is_hak', '是否使用海康视频服务器');
  34. return $this->tree($tableObj);
  35. }
  36. }