refactor(backend): 统一返回的数据格式
This commit is contained in:
@@ -214,7 +214,7 @@
|
||||
elem: "#rights-table",
|
||||
id: "rights-table",
|
||||
url: "/api/v1/rights?type=treetable", // 此处为静态模拟数据,实际使用时需换成真实接口
|
||||
height: "full-35", // 最大高度减去其他容器已占有的高度差
|
||||
height: "full", // 最大高度减去其他容器已占有的高度差
|
||||
toolbar: "#rights-toolbar",
|
||||
cols: [
|
||||
[
|
||||
@@ -260,7 +260,7 @@
|
||||
templet: (d) => {
|
||||
return `<input type="checkbox" name="status" value="${
|
||||
d.id
|
||||
}" title="启用|禁用" lay-skin="switch" ${
|
||||
}" title="启用 | 禁用" lay-skin="switch" ${
|
||||
d.status ? "checked" : ""
|
||||
} lay-filter="rights-table-switch-status"/>`;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user