62 lines
1.3 KiB
TypeScript
62 lines
1.3 KiB
TypeScript
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;
|