You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
2.4 KiB

const schema = {
title: "通用代码",
type: "object",
properties: {
1 year ago
project: {
title: "项目",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
1 year ago
value: {
title: "值",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
1 year ago
description: {
title: "描述",
type: "string",
showForList: true,
rules: [
{
required: true,
},
],
},
},
};
1 year ago
const baseUrl = "settleaccount/CodeSetting";
const queryUrl = `${baseUrl}/GetList`;
const detailsUrl = `${baseUrl}/GET/%s`;
const createUrl = `${baseUrl}/Create`;
const updateUrl = `${baseUrl}/Update/%s`;
const deleteUrl = `${baseUrl}/DeleteList`;
const queryMethod = "POST";
const detailsMethod = "POST";
const createMethod = "POST";
1 year ago
const updateMethod = "POST";
const deleteMethod = "POST";
export default function () {
return {
query: {
1 year ago
url: queryUrl,
method: queryMethod,
schema: {
title: "通用代码",
type: "object",
properties: {
1 year ago
project: {
type: "string",
},
value: {
type: "string",
},
description: {
type: "string",
},
1 year ago
filters: {
title: "项目",
type: "array",
items: {
type: "object",
properties: {
logic: {
type: "int",
},
column: {
type: "string",
},
action: {
type: "int",
},
value: {
type: "string",
},
},
},
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
1 year ago
sorting: {
hidden: true,
},
},
},
},
table: {
schema: schema,
},
edit: {
1 year ago
detailsUrl,
createUrl,
updateUrl,
deleteUrl,
1 year ago
detailsMethod,
createMethod,
updateMethod,
deleteMethod,
schema: schema,
},
};
}