feature: 按钮名称
This commit is contained in:
parent
b0df16f41a
commit
8e1ef28388
|
|
@ -150,6 +150,8 @@ class Detail extends Backend
|
|||
|
||||
$result = array("total" => count($res), "rows" => $res);
|
||||
|
||||
|
||||
$this->assignconfig("manage", $this->auth->isSuperAdmin());
|
||||
return json($result);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -95,6 +95,12 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
return 'salary/detail/custom_edit?target_admin_id=' + row.target_admin_id + '&month=' + row.month;
|
||||
},
|
||||
extend: 'data-area=\'["800px", "600px"]\'',
|
||||
visible:function(row){
|
||||
if (!Config.manage) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'complete',
|
||||
|
|
@ -118,6 +124,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|||
return false;
|
||||
},
|
||||
visible: function (row) {
|
||||
if (!Config.manage) {
|
||||
return false;
|
||||
}
|
||||
//返回true时按钮显示,返回false隐藏
|
||||
if (row.settle_status != 1) {
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user