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.
 
 
 
 
 
 

86 lines
1.5 KiB

const schema = {
title: "通用代码",
type: "object",
properties: {
userName: {
title: "项目",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
userName: {
title: "值",
type: "string",
readOnly: true,
showForList: true,
rules: [
{
required: true,
},
],
},
name: {
title: "描述",
type: "string",
showForList: true,
rules: [
{
required: true,
},
],
},
},
};
const url = "base/code-settings";
const createUrl = url;
const updateUrl = url;
const deleteUrl = url;
const method = "GET";
const createMethod = "POST";
const updateMethod = "PUT";
const deleteMethod = "DELETE";
export default function () {
return {
query: {
url,
method,
schema: {
title: "通用代码",
type: "object",
properties: {
filter: {
title: "项目",
type: "string",
},
skipCount: {
hidden: true,
default: 0,
},
maxResultCount: {
hidden: true,
default: 10,
},
},
},
},
table: {
schema: schema,
},
edit: {
createUrl,
updateUrl,
deleteUrl,
createMethod,
updateMethod,
deleteMethod,
schema: schema,
},
};
}