任务选择负责人弹层缺少请求连接
This commit is contained in:
parent
6a093d4e3e
commit
67bac9e3b2
@ -59,6 +59,7 @@ abstract class BaseController
|
|||||||
$this->controller = strtolower($this->request->controller());
|
$this->controller = strtolower($this->request->controller());
|
||||||
$this->action = strtolower($this->request->action());
|
$this->action = strtolower($this->request->action());
|
||||||
$this->uid = 0;
|
$this->uid = 0;
|
||||||
|
$this->did = 0;
|
||||||
// 控制器初始化
|
// 控制器初始化
|
||||||
$this->initialize();
|
$this->initialize();
|
||||||
}
|
}
|
||||||
@ -86,6 +87,7 @@ abstract class BaseController
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$this->uid = Session::get($session_admin)['id'];
|
$this->uid = Session::get($session_admin)['id'];
|
||||||
|
$this->did = Session::get($session_admin)['did'];
|
||||||
View::assign('login_user', $this->uid);
|
View::assign('login_user', $this->uid);
|
||||||
// 验证用户访问权限
|
// 验证用户访问权限
|
||||||
if (($this->module == 'api') || ($this->module == 'home' && $this->controller == 'index')) {
|
if (($this->module == 'api') || ($this->module == 'home' && $this->controller == 'index')) {
|
||||||
|
@ -127,6 +127,8 @@
|
|||||||
employeepicker.init({
|
employeepicker.init({
|
||||||
ids: id_array,
|
ids: id_array,
|
||||||
names: name_array,
|
names: name_array,
|
||||||
|
department_url: "/api/index/get_department_tree",
|
||||||
|
employee_url: "/api/index/get_employee",
|
||||||
callback: function (ids, names, dids, departments) {
|
callback: function (ids, names, dids, departments) {
|
||||||
$('[name="' + ids_name + '"]').val(ids);
|
$('[name="' + ids_name + '"]').val(ids);
|
||||||
that.val(names);
|
that.val(names);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user