wip:(重构接口实现方式2)

This commit is contained in:
zhengxinonly
2022-05-10 01:13:37 +08:00
parent 82de7b0273
commit 7e6aecc99b
8 changed files with 144 additions and 134 deletions
+1 -1
View File
@@ -110,7 +110,7 @@
treeDefaultClose: false,
toolbar: '#toolbar', /*表格的工具栏*/
elem: '#tables', /*表格挂载的对象*/
url: '/api/v1/dept/departments', /*数据来源接口*/
url: '/api/v1/dept/department', /*数据来源接口*/
page: false,
cols: get_columns(),/*表格渲染的数据*/
})
+2 -2
View File
@@ -85,7 +85,7 @@
table.render({
parseData: parserTableData,
elem: '#tables',
url: '/api/v1/roles/roles',
url: '/api/v1/roles/role',
page: true,
cols: get_columns(),
skin: 'line',
@@ -225,7 +225,7 @@
let loading = layer.load()
$.ajax({
url: '/api/v1/roles/roles',
url: '/api/v1/roles/role',
data: { ids: ids },
dataType: 'json',
type: 'delete',