Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
f85c2988ca
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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隐藏
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user