HomeController.php 1004 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace App\Admin\Controllers;
  3. use App\Http\Controllers\Controller;
  4. use Encore\Admin\Controllers\Dashboard;
  5. use Encore\Admin\Layout\Column;
  6. use Encore\Admin\Layout\Content;
  7. use Encore\Admin\Layout\Row;
  8. use App\Facades\ScaleFacade;
  9. use Encore\Admin\Facades\Admin;
  10. class HomeController extends Controller
  11. {
  12. public function index(Content $content)
  13. {
  14. //同步量表
  15. // return ScaleFacade::createThirdScale(200, 200, '');
  16. // Admin::js('https://cdn.jsdelivr.net/npm/vue@2');
  17. // Admin::js('https://cdn.staticfile.net/jquery/2.1.4/jquery.min.js');
  18. // Admin::js('https://code.highcharts.com/highcharts.js');
  19. // Admin::js('https://unpkg.com/element-ui/lib/index.js');
  20. // Admin::css('https://unpkg.com/element-ui/lib/theme-chalk/index.css');
  21. // Admin::css('/assets/css/common.css');
  22. return $content
  23. ->title('首页')
  24. ->description('统计')
  25. ->view('admin/partials/dashboard');
  26. }
  27. }