更新初始化文件
|
@ -33,9 +33,9 @@ public class SysLoginController {
|
|||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/welcome")
|
||||
@GetMapping("/welcome-ui")
|
||||
public String welcomeUI(Model model) {
|
||||
return "admin/welcome";
|
||||
return "welcome";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -65,4 +65,15 @@ public class SysToolController extends BaseController {
|
|||
return "system/tool/editor";
|
||||
}
|
||||
|
||||
/**
|
||||
* 颜色选择
|
||||
*
|
||||
* @param model
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/form-step-ui")
|
||||
public String formStepUI(Model model) {
|
||||
return "system/tool/formStep";
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -4,8 +4,7 @@ import com.songpeng.sparchetype.common.Result;
|
|||
import com.songpeng.sparchetype.system.config.shiro.SpUsernamePasswordToken;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authc.AuthenticationException;
|
||||
import org.apache.shiro.authc.UsernamePasswordToken;
|
||||
import org.apache.shiro.authc.*;
|
||||
import org.apache.shiro.crypto.hash.Md5Hash;
|
||||
import org.apache.shiro.subject.Subject;
|
||||
import org.springframework.stereotype.Controller;
|
||||
|
@ -57,6 +56,24 @@ public class SysLoginController {
|
|||
try {
|
||||
subject.login(token);
|
||||
return Result.success();
|
||||
} catch (LockedAccountException e) {
|
||||
log.error("锁定的帐号", e);
|
||||
return Result.failure("锁定的帐号");
|
||||
} catch (DisabledAccountException e) {
|
||||
log.error("禁用的帐号", e);
|
||||
return Result.failure("禁用的帐号");
|
||||
} catch (UnknownAccountException e) {
|
||||
log.error("错误的帐号", e);
|
||||
return Result.failure("错误的帐号");
|
||||
} catch (ExcessiveAttemptsException e) {
|
||||
log.error("登录失败次数过多", e);
|
||||
return Result.failure("登录失败次数过多");
|
||||
}catch (IncorrectCredentialsException e) {
|
||||
log.error("错误的凭证", e);
|
||||
return Result.failure("错误的凭证");
|
||||
}catch (ExpiredCredentialsException e) {
|
||||
log.error("过期的凭证", e);
|
||||
return Result.failure("过期的凭证");
|
||||
}catch (AuthenticationException e) {
|
||||
log.error("用户或密码错误", e);
|
||||
return Result.failure("用户或密码错误");
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/**
|
||||
* date:2019/08/16
|
||||
* author:Mr.Chung
|
||||
* description:此处放layui自定义扩展
|
||||
*/
|
||||
|
||||
window.rootPath = (function (src) {
|
||||
src = document.scripts[document.scripts.length - 1].src;
|
||||
return src.substring(0, src.lastIndexOf("/") + 1);
|
||||
})();
|
||||
|
||||
layui.config({
|
||||
base: rootPath + "lay-module/",
|
||||
version: true
|
||||
}).extend({
|
||||
layuimini: "layuimini/layuimini", // layuimini扩展
|
||||
step: 'step-lay/step', // 分步表单扩展
|
||||
treetable: 'treetable-lay/treetable', //table树形扩展
|
||||
tableSelect: 'tableSelect/tableSelect', // table选择扩展
|
||||
iconPickerFa: 'iconPicker/iconPickerFa', // fa图标选择扩展
|
||||
echarts: 'echarts/echarts', // echarts图表扩展
|
||||
echartsTheme: 'echarts/echartsTheme', // echarts图表主题扩展
|
||||
wangEditor: 'wangEditor/wangEditor', // wangEditor富文本扩展
|
||||
});
|
|
@ -0,0 +1,33 @@
|
|||
/**
|
||||
* date:2019/08/16
|
||||
* author:Mr.Chung
|
||||
* description:此处放layui自定义扩展
|
||||
*/
|
||||
window.rootPath = (function (src) {
|
||||
src = document.scripts[document.scripts.length - 1].src;
|
||||
return src.substring(0, src.lastIndexOf("/") + 1);
|
||||
})();
|
||||
|
||||
layui.config({
|
||||
base: rootPath,
|
||||
version: true
|
||||
}).extend({
|
||||
// layuimini扩展
|
||||
layuimini: "layuimini/layuimini",
|
||||
// 分步表单扩展
|
||||
step: 'step-lay/step',
|
||||
//table树形扩展
|
||||
treetable: 'treetable-lay/treetable',
|
||||
// table选择扩展
|
||||
tableSelect: 'tableSelect/tableSelect',
|
||||
// fa图标选择扩展
|
||||
iconPickerFa: 'iconPicker/iconPickerFa',
|
||||
// echarts图表扩展
|
||||
echarts: 'echarts/echarts',
|
||||
// echarts图表主题扩展
|
||||
echartsTheme: 'echarts/echartsTheme',
|
||||
// wangEditor富文本扩展
|
||||
wangEditor: 'wangEditor/wangEditor',
|
||||
// 自定义layer扩展组件
|
||||
spLayer: 'spLayer/spLayer'
|
||||
});
|
|
@ -3,7 +3,6 @@
|
|||
* author:Mr.Chung
|
||||
* description:layuimini 框架扩展
|
||||
*/
|
||||
|
||||
layui.define(["element", "jquery"], function (exports) {
|
||||
var element = layui.element,
|
||||
$ = layui.$,
|
||||
|
@ -27,7 +26,7 @@ layui.define(["element", "jquery"], function (exports) {
|
|||
urlHashLocation: true, // URL地址hash定位
|
||||
urlSuffixDefault: true, // URL后缀
|
||||
BgColorDefault: 0, // 默认皮肤(0开始)
|
||||
checkUrlDefault: true, // 是否判断URL有效
|
||||
checkUrlDefault: true // 是否判断URL有效
|
||||
};
|
||||
|
||||
if (name == undefined) {
|
|
@ -0,0 +1,23 @@
|
|||
/**
|
||||
* date:2019/12/24
|
||||
* author:SongPeng
|
||||
* description:扩展layui弹出框 框架扩展
|
||||
*/
|
||||
layui.define(['layer'], function (exports) {
|
||||
var $ = layui.jquery;
|
||||
var layer = layui.layer;
|
||||
|
||||
var spLayer = {
|
||||
// 渲染弹出框
|
||||
open: function (param) {
|
||||
console.log(param);
|
||||
var config = {};
|
||||
$.extend(config, param, {
|
||||
// 这里写默认配置,会覆盖自定义配置 param
|
||||
});
|
||||
layer.open(config);
|
||||
}
|
||||
};
|
||||
|
||||
exports('spLayer', spLayer);
|
||||
});
|
|
@ -1,4 +1,9 @@
|
|||
layui.define(['layer', 'carousel'], function (exports) {
|
||||
/**
|
||||
* date:2019/06/10
|
||||
* author:Mr.Chung
|
||||
* description:分步表单 框架扩展
|
||||
*/
|
||||
layui.define(['layer', 'carousel'], function (exports) {
|
||||
var $ = layui.jquery;
|
||||
var layer = layui.layer;
|
||||
var carousel = layui.carousel;
|
|
@ -0,0 +1,6 @@
|
|||
// 工具类
|
||||
var spUtil = {};
|
||||
|
||||
spUtil.open = function () {
|
||||
|
||||
};
|
|
@ -5,7 +5,7 @@
|
|||
"homeInfo": {
|
||||
"title": "首页",
|
||||
"icon": "fa fa-home",
|
||||
"href": "page/welcome-ui?mpi=m-p-i-0"
|
||||
"href": "admin/welcome-ui"
|
||||
},
|
||||
"logoInfo": {
|
||||
"title": "后台管理",
|
||||
|
@ -83,7 +83,7 @@
|
|||
},
|
||||
{
|
||||
"title": "分步表单",
|
||||
"href": "page/form-step.html",
|
||||
"href": "/admin/sys/tool/form-step-ui",
|
||||
"icon": "fa fa-navicon",
|
||||
"target": "_self"
|
||||
},
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/** layui-v2.5.4 MIT License By https://www.layui.com */
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 277 KiB After Width: | Height: | Size: 277 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 5.4 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.3 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 6.6 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.0 KiB |
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 5.1 KiB |
Before Width: | Height: | Size: 9.6 KiB After Width: | Height: | Size: 9.6 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 7.9 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.3 KiB After Width: | Height: | Size: 4.3 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 6.3 KiB |
Before Width: | Height: | Size: 5.6 KiB After Width: | Height: | Size: 5.6 KiB |
Before Width: | Height: | Size: 3.1 KiB After Width: | Height: | Size: 3.1 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 5.2 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 4.0 KiB After Width: | Height: | Size: 4.0 KiB |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 2.9 KiB After Width: | Height: | Size: 2.9 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 5.7 KiB After Width: | Height: | Size: 5.7 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 777 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |