From 796bafb2cac3676f842aa19f7b7971e4c353bf53 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Mon, 19 Apr 2021 11:43:31 +0800 Subject: [PATCH] * Fix execution team info error. --- module/execution/control.php | 1 + module/execution/js/team.js | 4 ++++ module/execution/view/team.html.php | 11 ++++++++++- module/user/control.php | 2 +- module/user/lang/de.php | 3 ++- module/user/lang/en.php | 1 + module/user/lang/fr.php | 3 ++- module/user/lang/vi.php | 3 ++- module/user/lang/zh-cn.php | 1 + 9 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 module/execution/js/team.js diff --git a/module/execution/control.php b/module/execution/control.php index 2e1da26665..45b6407b93 100644 --- a/module/execution/control.php +++ b/module/execution/control.php @@ -1177,6 +1177,7 @@ class execution extends control $this->view->title = $title; $this->view->position = $position; + $this->view->deptUsers = $this->loadModel('dept')->getDeptUserPairs($this->app->user->dept, 'useid'); $this->view->canBeChanged = common::canModify('execution', $execution); // Determines whether an object is editable. $this->display(); diff --git a/module/execution/js/team.js b/module/execution/js/team.js new file mode 100644 index 0000000000..d58ba42f6b --- /dev/null +++ b/module/execution/js/team.js @@ -0,0 +1,4 @@ +function checkUserDept(userID) +{ + alert(noAccess); +} diff --git a/module/execution/view/team.html.php b/module/execution/view/team.html.php index 64c9f952c0..642471af10 100644 --- a/module/execution/view/team.html.php +++ b/module/execution/view/team.html.php @@ -12,6 +12,7 @@ ?> execution->confirmUnlinkMember)?> +user->error->noAccess)?>