From 67bac9e3b2247b87d41ddab5d3424923b1d4745a Mon Sep 17 00:00:00 2001 From: hdm Date: Sun, 3 Jul 2022 08:36:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E9=80=89=E6=8B=A9=E8=B4=9F?= =?UTF-8?q?=E8=B4=A3=E4=BA=BA=E5=BC=B9=E5=B1=82=E7=BC=BA=E5=B0=91=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E8=BF=9E=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/base/BaseController.php | 2 ++ app/project/view/task/index.html | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/base/BaseController.php b/app/base/BaseController.php index 7019631..93af6fb 100644 --- a/app/base/BaseController.php +++ b/app/base/BaseController.php @@ -59,6 +59,7 @@ abstract class BaseController $this->controller = strtolower($this->request->controller()); $this->action = strtolower($this->request->action()); $this->uid = 0; + $this->did = 0; // 控制器初始化 $this->initialize(); } @@ -86,6 +87,7 @@ abstract class BaseController } } else { $this->uid = Session::get($session_admin)['id']; + $this->did = Session::get($session_admin)['did']; View::assign('login_user', $this->uid); // 验证用户访问权限 if (($this->module == 'api') || ($this->module == 'home' && $this->controller == 'index')) { diff --git a/app/project/view/task/index.html b/app/project/view/task/index.html index 34e8585..35af0df 100644 --- a/app/project/view/task/index.html +++ b/app/project/view/task/index.html @@ -127,6 +127,8 @@ employeepicker.init({ ids: id_array, names: name_array, + department_url: "/api/index/get_department_tree", + employee_url: "/api/index/get_employee", callback: function (ids, names, dids, departments) { $('[name="' + ids_name + '"]').val(ids); that.val(names);