diff --git a/app/adminapi/controller/create_task_template/CreateTaskTemplateController.php b/app/adminapi/controller/create_task_template/CreateTaskTemplateController.php index e93b87b33..de99a88a4 100644 --- a/app/adminapi/controller/create_task_template/CreateTaskTemplateController.php +++ b/app/adminapi/controller/create_task_template/CreateTaskTemplateController.php @@ -20,6 +20,7 @@ use app\adminapi\controller\BaseAdminController; use app\adminapi\lists\create_task_template\CreateTaskTemplateLists; use app\adminapi\logic\create_task_template\CreateTaskTemplateLogic; use app\adminapi\validate\create_task_template\CreateTaskTemplateValidate; +use app\common\model\dict\DictData; /** @@ -118,4 +119,11 @@ class CreateTaskTemplateController extends BaseAdminController return $this->data($list); } + public function taskTypeInfo() + { + $type = ['town_task_type_master', 'town_task_type_marketing_director', 'town_task_type', 'village_task_type', 'task_type']; + $lists = DictData::whereIn('type_value', $type)->column('name', 'id'); + return $this->data($lists); + } + } \ No newline at end of file