多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
>系统后台前端框架采用PearAdmin[https://gitee.com/pear-admin/Pear-Admin-Layui] 核心配置可以在`public\assets\js\backend\index.js`文件中`pearAdmin.render`初始化参数中修改 部分配置可以在右上角更多中临时设置,清除浏览器缓存配置则失效 ### 核心配置 ``` pearAdmin.render({ "menu": { "data": Yzn.api.fixurl("index/index"), "method": "POST", "accordion": true, "collapse": false, "control": false, //菜单模式 false 为常规菜单,true 为多系统菜单 "select": 0, "async": true }, "tab": { "enable": true, "keepState": true, "session": true, "preload": true, "max": "10", "index": { "id": 0, "href": Yzn.api.fixurl("main/index"), "title": "首页" } }, "theme": { "defaultColor": "2", "defaultMenu": "dark-theme", "defaultHeader": "light-theme", "allowCustom": true, "banner": false }, "colors": [ { "id": "1", "color": "#2d8cf0", "second": "#ecf5ff" }, { "id": "2", "color": "#36b368", "second": "#f0f9eb" }, { "id": "3", "color": "#f6ad55", "second": "#fdf6ec" }, { "id": "4", "color": "#f56c6c", "second": "#fef0f0" }, { "id": "5", "color": "#3963bc", "second": "#ecf5ff" } ], "other": { "keepLoad": "1200", "autoHead": false, "footer": false } }); ``` ### 核心函数 1. 侧边状态切换 ``` pearAdmin.collapseSide() ``` 2. 刷新当前页面 ``` pearAdmin.refreshThis() ``` 3. 刷新指定页面 ``` pearAdmin.refresh(14) ``` 4. 新增选项卡 ``` pearAdmin.addTab(14,"百度一下","http://www.bing.com") ``` 5. 修改选项卡标题 ``` pearAdmin.changeTabTitle(1,"修改后的标题") ``` 6. 关闭指定选项卡 ``` pearAdmin.closeTab(14) ``` 7. 关闭当前选项卡 ``` pearAdmin.closeCurrentTab() ``` 8. 关闭所有选项卡 ``` pearAdmin.closeAllTab() ``` 9. 关闭其他选项卡 ``` pearAdmin.closeOtherTab() ``` 10. 切换 IFrame 地址 ``` pearAdmin.changeIframe(14,"百度一下","http://www.bing.com") ``` 11. 兼容跳转, 支持 Iframe 与 MuiltTab 模式 ``` pearAdmin.jump(14,"百度一下","http://www.bing.com") ``` 12. 全屏状态切换 ``` pearAdmin.fullScreen() ```