diff --git a/modules/core/src/main/resources/templates/modules/gen/crud/viewForm.xml b/modules/core/src/main/resources/templates/modules/gen/crud/viewForm.xml index 7c28b63c..8dd3d313 100644 --- a/modules/core/src/main/resources/templates/modules/gen/crud/viewForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/crud/viewForm.xml @@ -94,7 +94,11 @@ $('#btnDraft').click(function(){ }); // 流程按钮操作事件 BpmButton = window.BpmButton || {}; -BpmButton.init = function(task){ } +BpmButton.init = function(task){ + if (task && task.priority){ + $('#bpm_priority').val(task.priority).trigger('change'); // 设置下一个任务的优先级 + } +} BpmButton.complete = function($this, task){ $('#status').val(Global.STATUS_AUDIT); }; diff --git a/modules/core/src/main/resources/templates/modules/gen/crud_cloud/viewForm.xml b/modules/core/src/main/resources/templates/modules/gen/crud_cloud/viewForm.xml index fc72e4e4..0ca3fae1 100644 --- a/modules/core/src/main/resources/templates/modules/gen/crud_cloud/viewForm.xml +++ b/modules/core/src/main/resources/templates/modules/gen/crud_cloud/viewForm.xml @@ -94,7 +94,11 @@ $('#btnDraft').click(function(){ }); // 流程按钮操作事件 BpmButton = window.BpmButton || {}; -BpmButton.init = function(task){ } +BpmButton.init = function(task){ + if (task && task.priority){ + $('#bpm_priority').val(task.priority).trigger('change'); // 设置下一个任务的优先级 + } +} BpmButton.complete = function($this, task){ $('#status').val(Global.STATUS_AUDIT); };