任务安排-添加任务时选择任务创建模板,自动填充表单

This commit is contained in:
chenbo 2023-12-18 15:54:21 +08:00
parent 5f3e46b4a2
commit 7a3c482870

View File

@ -143,14 +143,19 @@ class CreateTaskTemplateLogic extends BaseLogic
switch ($taskRoleId) {
case 1:
$type = 'town_task_type_master';
break;
case 2:
$type = 'town_task_type_marketing_director';
break;
case 3:
$type = 'town_task_type';
break;
case 4:
$type = 'village_task_type';
break;
case 5:
$type = 'task_type';
break;
}
if ($type) {
$data = ConfigLogic::getDictByType($type);