| | |
| | | * 权限认证使用Jwt,支持多终端认证系统。 |
| | | * 支持加载动态权限菜单,多方式轻松权限控制。 |
| | | * 高效率开发,使用代码生成器可以一键生成前后端代码。 |
| | | * 提供了一个Oracle版本[RuoYi-Vue-Oracle](https://github.com/yangzongzhuan/RuoYi-Vue-Oracle),保持同步更新。 |
| | | * 感谢[Vue-Element-Admin](https://github.com/PanJiaChen/vue-element-admin),[eladmin-web](https://gitee.com/elunez/eladmin-web?_from=gitee_search)。 |
| | | * 不分离版本,请移步[RuoYi](https://gitee.com/y_project/RuoYi),微服务版本,请移步[RuoYi-Cloud](https://gitee.com/y_project/RuoYi-Cloud) |
| | | * 阿里云优惠券:[点我进入](https://www.aliyun.com/minisite/goods?userCode=brki8iof&share_source=copy_link),腾讯云优惠券:[点我领取](https://cloud.tencent.com/redirect.php?redirect=1025&cps_key=198c8df2ed259157187173bc7f4f32fd&from=console) |
| | |
| | | {
|
| | | "name": "ruoyi",
|
| | | "version": "2.2.0",
|
| | | "version": "2.3.0",
|
| | | "description": "若依管理系统",
|
| | | "author": "若依",
|
| | | "license": "MIT",
|
| | |
| | | children: [
|
| | | {
|
| | | path: '/redirect/:path(.*)',
|
| | | component: (resolve) => require(['@/views/redirect'], resolve)
|
| | | component: () => import('@/views/redirect')
|
| | | }
|
| | | ]
|
| | | },
|
| | | {
|
| | | path: '/login',
|
| | | component: (resolve) => require(['@/views/login'], resolve),
|
| | | component: () => import('@/views/login'),
|
| | | hidden: true
|
| | | },
|
| | | {
|
| | | path: '/404',
|
| | | component: (resolve) => require(['@/views/error/404'], resolve),
|
| | | component: () => import('@/views/error/404'),
|
| | | hidden: true
|
| | | },
|
| | | {
|
| | | path: '/401',
|
| | | component: (resolve) => require(['@/views/error/401'], resolve),
|
| | | component: () => import('@/views/error/401'),
|
| | | hidden: true
|
| | | },
|
| | | {
|
| | |
| | | children: [
|
| | | {
|
| | | path: 'index',
|
| | | component: (resolve) => require(['@/views/index'], resolve),
|
| | | component: () => import('@/views/index'),
|
| | | name: '首页',
|
| | | meta: { title: '首页', icon: 'dashboard', noCache: true, affix: true }
|
| | | }
|
| | |
| | | children: [
|
| | | {
|
| | | path: 'profile',
|
| | | component: (resolve) => require(['@/views/system/user/profile/index'], resolve),
|
| | | component: () => import('@/views/system/user/profile/index'),
|
| | | name: 'Profile',
|
| | | meta: { title: '个人中心', icon: 'user' }
|
| | | }
|
| | |
| | | children: [
|
| | | {
|
| | | path: 'type/data/:dictId(\\d+)',
|
| | | component: (resolve) => require(['@/views/system/dict/data'], resolve),
|
| | | component: () => import('@/views/system/dict/data'),
|
| | | name: 'Data',
|
| | | meta: { title: '字典数据', icon: '' }
|
| | | }
|
| | |
| | | children: [
|
| | | {
|
| | | path: 'log',
|
| | | component: (resolve) => require(['@/views/monitor/job/log'], resolve),
|
| | | component: () => import('@/views/monitor/job/log'),
|
| | | name: 'JobLog',
|
| | | meta: { title: '调度日志' }
|
| | | }
|
| | |
| | | children: [
|
| | | {
|
| | | path: 'edit',
|
| | | component: (resolve) => require(['@/views/tool/gen/editTable'], resolve),
|
| | | component: () => import('@/views/tool/gen/editTable'),
|
| | | name: 'GenEdit',
|
| | | meta: { title: '修改生成配置' }
|
| | | }
|
| | |
| | | }
|
| | |
|
| | | export const loadView = (view) => { // 路由懒加载
|
| | | return (resolve) => require([`@/views/${view}`], resolve)
|
| | | return () => import(`@/views/${view}`)
|
| | | }
|
| | |
|
| | | export default permission
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | clearCache().then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("清理成功");
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | clearCache().then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("清理成功");
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.openDataScope = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | resetUserPwd(row.userId, value).then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("修改成功,新密码是:" + value);
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }).catch(() => {});
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("修改成功");
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | }
|
| | | );
|
| | |
| | | this.open = false;
|
| | | this.options.img = process.env.VUE_APP_BASE_API + response.imgUrl;
|
| | | this.msgSuccess("修改成功");
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | this.$refs.cropper.clearCrop();
|
| | | });
|
| | |
| | | updateUserProfile(this.user).then(response => {
|
| | | if (response.code === 200) {
|
| | | this.msgSuccess("修改成功");
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | |
|
| | | <groupId>com.ruoyi</groupId>
|
| | | <artifactId>ruoyi</artifactId>
|
| | | <version>2.2.0</version>
|
| | | <version>2.3.0</version>
|
| | | <packaging>jar</packaging>
|
| | |
|
| | | <name>ruoyi</name>
|
| | |
| | | # 名称
|
| | | name: RuoYi
|
| | | # 版本
|
| | | version: 2.2.0
|
| | | version: 2.3.0
|
| | | # 版权年份
|
| | | copyrightYear: 2019
|
| | | # 实例演示开关
|
| | |
| | | SELECT @parentId := LAST_INSERT_ID();
|
| | |
|
| | | -- 按钮 SQL
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | values('${functionName}查询', @parentId, '1', '#', '', 1, 'F', '0', '0', '${permissionPrefix}:query', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
| | |
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | values('${functionName}新增', @parentId, '2', '#', '', 1, 'F', '0', '0', '${permissionPrefix}:add', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
| | |
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | values('${functionName}修改', @parentId, '3', '#', '', 1, 'F', '0', '0', '${permissionPrefix}:edit', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
| | |
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | values('${functionName}删除', @parentId, '4', '#', '', 1, 'F', '0', '0', '${permissionPrefix}:remove', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', '');
|
| | |
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | insert into sys_menu (menu_name, parent_id, order_num, path, component, is_frame, menu_type, visible, status, perms, icon, create_by, create_time, update_by, update_time, remark)
|
| | | values('${functionName}导出', @parentId, '5', '#', '', 1, 'F', '0', '0', '${permissionPrefix}:export', '#', 'admin', '2018-03-01', 'ry', '2018-03-01', ''); |
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|
| | |
| | | this.msgSuccess("修改成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | } else {
|
| | |
| | | this.msgSuccess("新增成功");
|
| | | this.open = false;
|
| | | this.getList();
|
| | | } else {
|
| | | this.msgError(response.msg);
|
| | | }
|
| | | });
|
| | | }
|