Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
uniplat-example
/
intent-example
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2e508714
authored
Mar 18, 2022
by
张蕴鹏
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: 添加计划任务
parent
2ddb6fc0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
111 additions
and
6 deletions
models/Example1.json
models/Example1.json
View file @
2e508714
...
...
@@ -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"
:
[{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment