楼栋管理员楼栋分配功能添加以及 contextpath路径添加
diff --git a/src/main/resources/templates/system/role/form.html b/src/main/resources/templates/system/role/form.html
index fcfcbf3..2595cd6 100755
--- a/src/main/resources/templates/system/role/form.html
+++ b/src/main/resources/templates/system/role/form.html
@@ -26,7 +26,7 @@
var layer = layui.layer;
var admin = layui.admin;
var form = layui.form;
- var url = '/role/add';
+ var url = '[[@{/role/add}]]';
// 回显user数据
var func = admin.getTempData('t_func');
if (func) {
diff --git a/src/main/resources/templates/system/role/func.html b/src/main/resources/templates/system/role/func.html
index 48d1ecc..fff2149 100755
--- a/src/main/resources/templates/system/role/func.html
+++ b/src/main/resources/templates/system/role/func.html
@@ -31,7 +31,7 @@
};
$.fn.zTree.init($("#funclist"), menuSetting, nodes);
}
- admin.dgo('/role/func', {
+ admin.dgo('[[@{/role/func}]]', {
roleId: func,
}, function (data) {
debugger
@@ -62,7 +62,7 @@
}
let idStr = ids.toString();
let token = $("meta[name='_csrf_token']").attr("value");
- admin.go('/role/addfunc', {
+ admin.go('[[@{/role/addfunc}]]', {
roleId: func,
funcs: idStr,
_csrf: token,
diff --git a/src/main/resources/templates/system/role/index.html b/src/main/resources/templates/system/role/index.html
index 029e3ef..f92912f 100644
--- a/src/main/resources/templates/system/role/index.html
+++ b/src/main/resources/templates/system/role/index.html
@@ -27,7 +27,7 @@
// 渲染表格
table.render({
elem: '#roletable',
- url: '/role/list',
+ url: '[[@{/role/list}]]',
page: true,
cols: [
[
@@ -60,7 +60,7 @@
admin.putTempData('t_func', data);
admin.popupCenter({
title: title,
- path: '/role/loadadd',
+ path: '[[@{/role/loadadd}]]',
finish: function () {
table.reload('roletable', {});
}
@@ -72,7 +72,7 @@
admin.popupCenter({
title: title,
area:['400px','600px'],
- path: '/role/loadfunc'
+ path: '[[@{/role/loadfunc}]]'
});
};
// 工具条点击事件
@@ -93,7 +93,7 @@
layer.close(i);
layer.load(2);
let token = $("meta[name='_csrf_token']").attr("value");
- admin.go('/role/del', {
+ admin.go('[[@{/role/del}]]', {
roleid: data.roleId,
_csrf: token
}, function (data) {
@@ -103,7 +103,7 @@
layer.msg(data.msg, {icon: 1});
} else if (data.code == 401) {
layer.msg(data.msg, {icon: 2, time: 1500}, function () {
- location.replace('/login');
+ location.replace('[[@{/login}]]');
}, 1000);
return;
} else {