将权限与部门的逻辑分包

This commit is contained in:
zhengxinonly
2021-06-13 15:07:40 +08:00
parent 5faf88283f
commit 9e8a5357be
19 changed files with 171 additions and 131 deletions
+2 -2
View File
@@ -88,7 +88,7 @@
dtree.renderSelect({
elem: '#selectParent',
url: '/admin/dept/tree',
url: '/dept/tree',
method: 'get',
selectInputName: { nodeId: 'parentId', context: 'parentName' },
skin: 'layui',
@@ -99,7 +99,7 @@
form.on('submit(dept-save)', function (data) {
$.ajax({
url: '/admin/dept/save',
url: '/dept/save',
data: JSON.stringify(data.field),
dataType: 'json',
contentType: 'application/json',
+1 -1
View File
@@ -99,7 +99,7 @@
form.on('submit(dept-update)', function (data) {
$.ajax({
url: '/admin/dept/update',
url: '/dept/update',
data: JSON.stringify(data.field),
dataType: 'json',
contentType: 'application/json',
+5 -4
View File
@@ -78,7 +78,7 @@
let treetable = layui.treetable
let popup = layui.popup
let MODULE_PATH = '/admin/dept/'
let MODULE_PATH = '/dept/'
window.render = function () {
treetable.render({
@@ -91,7 +91,7 @@
treeDefaultClose: false,
toolbar: '#dept-toolbar',
elem: '#dept-table',
url: '/admin/dept/data',
url: '/dept/data',
page: false,
cols: [
[
@@ -153,7 +153,8 @@
} else if (obj.event === 'refresh') {
window.refresh()
} else if (obj.event === 'batchRemove') {
window.batchRemove(obj)
{#window.batchRemove(obj)#}
console.log(table.checkStatus(obj.config.id).data)
}
})
@@ -166,7 +167,7 @@
}
let loading = layer.load()
$.ajax({
url: '/admin/dept/' + operate,
url: '/dept/' + operate,
data: JSON.stringify({ deptId: this.value }),
dataType: 'json',
contentType: 'application/json',