refactor(backend): 统一返回的数据格式

This commit is contained in:
zhengxinonly
2025-07-08 22:16:12 +08:00
parent 65e41ac9f1
commit fa69175e65
18 changed files with 212 additions and 113 deletions
+2 -2
View File
@@ -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"/>`;
},