巡检人员

This commit is contained in:
2024-11-29 14:20:45 +08:00
parent b7c91c1847
commit d058cc7cc3
8 changed files with 287 additions and 8 deletions

View File

@ -4,33 +4,38 @@ namespace plugin\inspection;
use think\admin\Plugin;
use think\facade\View;
class Service extends Plugin
{
protected $appName = '巡检';
protected $appName = '巡检管理';
protected $appCode = 'inspection';
protected $package = 'jerryyan/think-plugs-inspection';
public static function register(): void
{
View::assign("_GENDER", [
'1' => '女',
'0' => '男'
]);
}
public static function menu(): array
{
$code = app(static::class)->appCode;
return [
[
'name' => '巡检人员',
'subs' => [
['name' => '人员列表', 'icon' => 'layui-icon layui-icon-template-1', 'node' => "{$code}/staff/index"],
]
],
[
'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"],
]
]
];
}
}