42 lines
1.1 KiB
PHP
42 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Admin\Controllers;
|
|
|
|
use Illuminate\Http\Request;
|
|
use Slowlyo\OwlAdmin\Controllers\AdminController;
|
|
|
|
class WarningSettingController extends AdminController
|
|
{
|
|
public function settingIndex(){
|
|
$page = $this->basePage()->body([
|
|
amisMake()->Card()->className('border-0')->body([
|
|
$this->settingForm()
|
|
]),
|
|
]);
|
|
|
|
return $this->response()->success($page);
|
|
}
|
|
|
|
private function settingForm(){
|
|
return \amisMake()->Tabs()->name('detailTab')->tabs([
|
|
[
|
|
'title' => '气象预警',
|
|
'value' => 'detail',
|
|
'tab'=>'',
|
|
'unmountOnExit' => true//每次切换tab都要销毁
|
|
],
|
|
[
|
|
'title' => '水质预警',
|
|
'value' => 'detail',
|
|
'tab'=>'',
|
|
'unmountOnExit' => true//每次切换tab都要销毁
|
|
],
|
|
[
|
|
'title' => '土壤预警',
|
|
'value' => 'detail',
|
|
'tab'=>'',
|
|
'unmountOnExit' => true//每次切换tab都要销毁
|
|
],
|
|
]);
|
|
}
|
|
} |