1 Star 0 Fork 7

陈哥/Fastadmin腾讯地图电子围栏

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Tcfence.php 3.27 KB
一键复制 编辑 原始数据 按行查看 历史
as欧克 提交于 2021-06-07 13:57 . 后台内容整理
<?php
namespace addons\tcfence;
use app\common\library\Menu;
use think\Addons;
/**
* 插件
*/
class Tcfence extends Addons
{
/**
* 插件安装方法
* @return bool
*/
public function install()
{
$menu = [
[
'name' => 'tcfence',
'title' => '电子围栏',
'icon' => 'fa fa-anchor',
'sublist' => [
[
'name' => 'tcfence/areamanage',
'title' => '区域管理',
'icon' => 'fa fa-flag',
'sublist' => [
['name' => 'tcfence/areamanage/import', 'title' => '导入'],
['name' => 'tcfence/areamanage/index', 'title' => '查看'],
['name' => 'tcfence/areamanage/add', 'title' => '添加'],
['name' => 'tcfence/areamanage/edit', 'title' => '编辑'],
['name' => 'tcfence/areamanage/del', 'title' => '删除'],
['name' => 'tcfence/areamanage/mult', 'title' => '批量更新'],
]
],
[
'name' => 'tcfence/fence',
'title' => '围栏管理',
'icon' => 'fa fa-circle-o',
'sublist' => [
['name' => 'tcfence/fence/import', 'title' => '导入'],
['name' => 'tcfence/fence/index', 'title' => '查看'],
['name' => 'tcfence/fence/add', 'title' => '添加'],
['name' => 'tcfence/fence/edit', 'title' => '编辑'],
['name' => 'tcfence/fence/del', 'title' => '删除'],
['name' => 'tcfence/fence/mult', 'title' => '批量更新'],
]
],
[
'name' => 'tcfence/fencedata',
'title' => '围栏数据',
'icon' => 'fa fa-database',
'sublist' => [
['name' => 'tcfence/fencedata/import', 'title' => '导入'],
['name' => 'tcfence/fencedata/index', 'title' => '查看'],
['name' => 'tcfence/fencedata/add', 'title' => '添加'],
['name' => 'tcfence/fencedata/edit', 'title' => '编辑'],
['name' => 'tcfence/fencedata/del', 'title' => '删除'],
['name' => 'tcfence/fencedata/mult', 'title' => '批量更新'],
]
]
]
]
];
Menu::create($menu);
return true;
}
/**
* 插件卸载方法
* @return bool
*/
public function uninstall()
{
Menu::delete('tcfence');
return true;
}
/**
* 插件启用方法
*/
public function enable()
{
Menu::enable('tcfence');
return true;
}
/**
* 插件禁用方法
*/
public function disable()
{
Menu::disable('tcfence');
return true;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mygoocle/electronic-fence.git
[email protected]:mygoocle/electronic-fence.git
mygoocle
electronic-fence
Fastadmin腾讯地图电子围栏
master

搜索帮助