{ "type" : "page", "title" : "我的发起任务", "body" : { "type" : "crud", "api" : "/api/workflow/process/started-amis", "syncLocation" : false, "selectable" : true, "checkOnItemClick" : true, "filter" : { "title" : "查询", "body" : [ { "name" : "TITLE", "label" : "主题", "type" : "input-text" }, { "name" : "PROCESSNAME", "label" : "流程名称", "type" : "input-text" }, { "name" : "INITUSERID", "label" : "发起者", "hidden" : true, "type" : "input-text", "value" : "${currentUser}" }, { "name" : "WFSTATUS", "label" : "审批状态", "type" : "select", "clearable" : true, "source" : "/api/poc/dict/WFSTATUS" }, { "name" : "STARTTIME", "label" : "发起时间", "type" : "input-datetime-range" }, { "name" : "ENDTIME", "label" : "结束时间", "type" : "input-datetime-range" }, { "name" : "ASSIGNEENAME", "label" : "当前审批人", "type" : "input-text" } ] }, "columns" : [ { "name" : "VIEW_ACT_PROCESS_ID", "label" : "主键", "width" : 200, "toggled" : false }, { "name" : "TITLE", "label" : "主题", "width" : 300 }, { "name" : "PROCESSNAME", "label" : "流程名称", "width" : 150 }, { "name" : "INITUSERID_DISPLAY__", "label" : "发起者", "width" : 80 }, { "name" : "WFSTATUS", "label" : "审批状态", "width" : 80, "type" : "mapping", "map" : { "1" : "未提交", "2" : "处理中", "3" : "通过", "4" : "未通过", "5" : "重新提交", "6" : "作废" } }, { "name" : "STARTTIME", "label" : "发起时间", "width" : 150, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ENDTIME", "label" : "结束时间", "width" : 150, "type" : "datetime", "format" : "YYYY-MM-DD HH:mm", "inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ" }, { "name" : "ASSIGNEENAME", "label" : "当前审批人", "width" : 100 } ], "headerToolbar" : [ { "type" : "button", "id" : "查看详细", "label" : "查看详细", "icon" : "fa fa-search", "disabledOn" : "${!selectedItems || selectedItems.length !== 1}", "onEvent" : { "click" : { "actions" : [ { "actionType" : "openApprovalDrawer", "args" : { "taskName" : "${selectedItems[0].TITLE || '任务查看详细'}", "processInstanceId" : "${selectedItems[0].VIEW_ACT_PROCESS_ID}", "businessKey" : "${selectedItems[0].businessKey || selectedItems[0].BUSINESSKEY || ''}", "businessTable" : "${selectedItems[0].businessTable || selectedItems[0].BUSINESSTABLE || ''}", "businessSummary" : "${selectedItems[0].businessSummary || {}}", "readOnly" : true, "mode" : "read" } } ] } } }, { "type" : "button", "id" : "撤回", "label" : "撤回", "icon" : "fa fa-undo", "level" : "warning", "actionType" : "ajax", "disabledOn" : "${!selectedItems || selectedItems.length !== 1}", "confirmText" : "确认撤回选中的流程?", "api" : { "method" : "post", "url" : "/api/workflow/process/${selectedItems[0].VIEW_ACT_PROCESS_ID}/withdraw", "data" : { "comment" : "主动召回", "businessKey" : "${selectedItems[0].businessKey || selectedItems[0].BUSINESSKEY || ''}", "tableName" : "${selectedItems[0].businessTable || selectedItems[0].BUSINESSTABLE || ''}" } }, "reload" : "my-started-process-crud" }, "pagination" ], "primaryField" : "VIEW_ACT_PROCESS_ID", "id" : "my-started-process-crud" } }