feature: 按钮名称

This commit is contained in:
zhuyu 2025-05-30 11:33:26 +08:00
parent b0df16f41a
commit 8e1ef28388
2 changed files with 11 additions and 0 deletions

View File

@ -150,6 +150,8 @@ class Detail extends Backend
$result = array("total" => count($res), "rows" => $res);
$this->assignconfig("manage", $this->auth->isSuperAdmin());
return json($result);
}

View File

@ -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;