fix: 更新路由为后台配置,修改admim文件名称为admin

This commit is contained in:
2025-03-12 09:05:28 +08:00
parent 6735d8dedb
commit ace23e89ee
29 changed files with 2107 additions and 617 deletions

View File

@@ -0,0 +1,61 @@
import ParamsApi from "@/api/system/params";
import type { editRequest } from "@/api/system/params";
import type { IContentConfig } from "@/components/CURD/types";
const contentConfig: IContentConfig<editRequest> = {
pageName: "sys:user",
table: {
border: true,
highlightCurrentRow: true,
},
pagination: {
background: true,
layout: "prev,pager,next,jumper,total,sizes",
pageSize: 20,
pageSizes: [10, 20, 30, 50],
},
indexAction: function (params) {
return ParamsApi.getList(params);
},
// modifyAction: function (data) {
// // return ParamsApi.edit(data);
// },
pk: "id",
toolbar: ["add"],
defaultToolbar: ["refresh", "filter", "search"],
cols: [
{ type: "selection", width: 50, align: "center" },
{
label: "参数编码",
align: "center",
prop: "paramCode",
},
{
label: "参数值",
align: "center",
prop: "paramValue",
},
{
label: "参数类型",
align: "center",
prop: "paramType",
templet: "custom",
slotName: "options",
},
{
label: "备注",
align: "center",
prop: "remark",
},
{
label: "操作",
align: "center",
fixed: "right",
templet: "tool",
operat: ["edit"],
},
],
};
export default contentConfig;