You've already forked guangan
巡检
This commit is contained in:
36
plugs/think-plugs-inspection/src/Service.php
Normal file
36
plugs/think-plugs-inspection/src/Service.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\inspection;
|
||||
|
||||
|
||||
use think\admin\Plugin;
|
||||
|
||||
class Service extends Plugin
|
||||
{
|
||||
protected $appName = '巡检端';
|
||||
protected $appCode = 'inspection';
|
||||
protected $package = 'jerryyan/think-plugs-inspection';
|
||||
|
||||
public static function register(): void
|
||||
{
|
||||
}
|
||||
|
||||
public static function menu(): array
|
||||
{
|
||||
$code = app(static::class)->appCode;
|
||||
return [
|
||||
[
|
||||
'name' => '巡检管理',
|
||||
'subs' => [
|
||||
['name' => '巡检记录', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/record/index"],
|
||||
]
|
||||
],
|
||||
[
|
||||
'name' => '巡检人员',
|
||||
'subs' => [
|
||||
['name' => '人员列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/user/index"],
|
||||
]
|
||||
]
|
||||
];
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user