Commit 2e508714 by 张蕴鹏

feat: 添加计划任务

parent 2ddb6fc0
Showing with 113 additions and 8 deletions
......@@ -4,6 +4,53 @@
"key_field": "id",
"action_defs": [
{
"name": "startPlanTask",
"when": "1",
"on": "object",
"label": "创建计划任务",
"prompt": "创建计划任务",
"container": "dialog",
"parameters": {
"server": [],
"inputs": [
{
"property": "dealer",
"label": "处理人",
"type": "search",
"joint": "auth_user",
"required": true
},
{
"property": "startTime",
"label": "任务开始时间",
"type": "date",
"required": true
},
{
"property": "endTime",
"label": "任务结束时间",
"type": "date",
"required": true
},
{
"property": "remark",
"label": "任务内容",
"type": "text"
},
{
"property": "priority",
"label": "紧急程度",
"type": "mapping",
"mapping": "taskPriorityMapping"
}
]
},
"behavior": "startPlanProcess",
"forward": "",
"tagGroups": [
]
},
{
"name": "insert",
"when": "1",
"label": "新增",
......@@ -294,10 +341,12 @@
"is_often": true
}
],
"sorts": [{
"property": "id",
"type": "desc"
}],
"sorts": [
{
"property": "id",
"type": "desc"
}
],
"prefilters": []
}
},
......@@ -343,8 +392,59 @@
}
}
],
"mapping_defs": [],
"joint_defs": [],
"mapping_defs": [
{
"name": "taskPriorityMapping",
"mapping_values": [
{
"key": "0",
"value": "未设置"
},
{
"key": "1",
"value": "A:既紧急也重要"
},
{
"key": "2",
"value": "B:重要但不紧急"
},
{
"key": "3",
"value": "C:紧急但不重要"
},
{
"key": "4",
"value": "D:既不紧急也不重要"
}
]
}
],
"joint_defs": [
{
"name": "auth_user",
"database": "(host)",
"sql": "select id,username,first_name from auth_user",
"key_field": "id",
"joint_field": "id",
"field_defs": [
{
"property": "id",
"label": "编号",
"type": "number"
},
{
"property": "username",
"label": "登录名",
"type": "text"
},
{
"property": "first_name",
"label": "姓名",
"type": "text"
}
]
}
],
"field_defs": [
{
"property": "id",
......@@ -420,7 +520,8 @@
}
],
"row_actions": [
"update"
"update",
"startPlanTask"
],
"rowIntents": [
"showDetail",
......@@ -633,5 +734,8 @@
"isExclusive": true,
"tagField": "id"
}
]
],
"workflow2": {
"enablePlanTask": true
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment