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.
100 lines
2.1 KiB
100 lines
2.1 KiB
const schema = {
|
|
title: "定时任务",
|
|
type: "object",
|
|
properties: {
|
|
isDisabled: {
|
|
title: "是否禁用",
|
|
type: "boolean",
|
|
},
|
|
name: {
|
|
title: "名称",
|
|
type: "string",
|
|
},
|
|
cron: {
|
|
title: "表达式",
|
|
type: "string",
|
|
},
|
|
service: {
|
|
title: "服务",
|
|
type: "string",
|
|
},
|
|
isRunning: {
|
|
title: "运行中",
|
|
type: "boolean",
|
|
readOnly: true,
|
|
},
|
|
},
|
|
};
|
|
|
|
const queryUrl = "settleaccount/job-item/get-list";
|
|
const createUrl = "settleaccount/job-item/create";
|
|
const updateUrl = "settleaccount/job-item/update/%s";
|
|
const deleteUrl = "settleaccount/job-item/delete-list";
|
|
const detailsUrl = "settleaccount/job-item/details/%s";
|
|
const queryMethod = "POST";
|
|
const createMethod = "POST";
|
|
const updateMethod = "POST";
|
|
const deleteMethod = "POST";
|
|
const detailsMethod = "POST";
|
|
|
|
export default function () {
|
|
return {
|
|
query: {
|
|
url: queryUrl,
|
|
method: queryMethod,
|
|
schema: {
|
|
title: "定时任务",
|
|
type: "object",
|
|
properties: {
|
|
filters: {
|
|
type: "array",
|
|
hidden: true,
|
|
items: {
|
|
type: "object",
|
|
properties: {
|
|
logic: {
|
|
type: "int",
|
|
},
|
|
column: {
|
|
type: "string",
|
|
},
|
|
action: {
|
|
type: "int",
|
|
},
|
|
value: {
|
|
type: "string",
|
|
},
|
|
},
|
|
},
|
|
default: [],
|
|
},
|
|
skipCount: {
|
|
hidden: true,
|
|
default: 0,
|
|
},
|
|
maxResultCount: {
|
|
hidden: true,
|
|
default: 10,
|
|
},
|
|
sorting: {
|
|
hidden: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
table: {
|
|
schema: schema,
|
|
},
|
|
edit: {
|
|
createUrl,
|
|
updateUrl,
|
|
deleteUrl,
|
|
detailsUrl,
|
|
createMethod,
|
|
updateMethod,
|
|
deleteMethod,
|
|
detailsMethod,
|
|
schema: schema,
|
|
},
|
|
};
|
|
}
|
|
|