fix: 更新路由为后台配置,修改admim文件名称为admin
This commit is contained in:
61
src/views/admin/system/params/config/content.ts
Normal file
61
src/views/admin/system/params/config/content.ts
Normal 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;
|
||||
Reference in New Issue
Block a user