diff --git a/application/admin/controller/salary/CustomDetail.php b/application/admin/controller/salary/CustomDetail.php index 5c65b6d..27ccd36 100644 --- a/application/admin/controller/salary/CustomDetail.php +++ b/application/admin/controller/salary/CustomDetail.php @@ -151,7 +151,9 @@ class CustomDetail extends Backend return json($result); } - $this->assignconfig("manage", $this->auth->check('salary/custom_detail/edit')); + $this->assignconfig("edit", $this->auth->check('salary/custom_detail/edit')); + $this->assignconfig("copy", $this->auth->check('salary/custom_detail/copy')); + $this->assignconfig("settle", $this->auth->check('salary/custom_detail/settle')); $this->view->assign("month", $month); $this->view->assign("salaryitem", json_encode($salaryItem)); return $this->view->fetch(); diff --git a/public/assets/js/backend/salary/custom_detail.js b/public/assets/js/backend/salary/custom_detail.js index ea3ca7f..84477ab 100644 --- a/public/assets/js/backend/salary/custom_detail.js +++ b/public/assets/js/backend/salary/custom_detail.js @@ -56,7 +56,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin }, extend: 'data-area=\'["800px", "600px"]\'', visible:function(row){ - if (!Config.manage) { + if (!Config.edit) { return false; } return true; @@ -74,7 +74,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin }, extend: 'data-area=\'["800px", "600px"]\'', visible:function(row){ - if (!Config.manage) { + if (!Config.copy) { return false; } return true; @@ -102,7 +102,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin return false; }, visible: function (row) { - if (!Config.manage) { + if (!Config.settle) { return false; } //返回true时按钮显示,返回false隐藏